|
@@ -132,6 +132,13 @@ public class CmmsSpotcheckContentController extends JeecgController<CmmsSpotchec
|
|
|
if (cmmsSpotcheckContent.getContentcode() == null || "".equals(cmmsSpotcheckContent.getContentcode())) {
|
|
|
cmmsSpotcheckContent.setContentcode(autoCodeUtil.genSerialCode(UserConstants.CMMSSPOTCHECKCONTENT_CODE, null));
|
|
|
}
|
|
|
+
|
|
|
+ if(cmmsSpotcheckContent.getStatus()!=null && !"".equals(cmmsSpotcheckContent.getStatus())){
|
|
|
+ if(cmmsSpotcheckContent.getStatus().equals("0")){
|
|
|
+ cmmsSpotcheckContentService.updateStatusByEquipmentid(cmmsSpotcheckContent.getEquipmentid(),"1");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
cmmsSpotcheckContentService.save(cmmsSpotcheckContent);
|
|
|
List<CmmsSpotcheckContentItem> contentItemList = dto.getSpotcheckContentItemList();
|
|
|
if (contentItemList != null && contentItemList.size() > 0) {
|