不知道为什么日常清单的隐患不需要提交

dev
wangpeng 2024-07-14 17:17:10 +08:00
parent e19420c283
commit 278f4d53fd
2 changed files with 10 additions and 10 deletions

View File

@ -150,12 +150,12 @@ public class AppCheckRecordController extends BaseController {
String ArrayDATA_IDS[] = ids.split(","); String ArrayDATA_IDS[] = ids.split(",");
PageData hiddens = new PageData(); PageData hiddens = new PageData();
hiddens.put("CHECKRECORD_ID", pd.get("CHECKRECORD_ID")); hiddens.put("CHECKRECORD_ID", pd.get("CHECKRECORD_ID"));
PageData list = listmanagerService.findById(pd); // PageData list = listmanagerService.findById(pd);
if(list.getString("TYPE").equals("listType0001")){ // if(list.getString("TYPE").equals("listType0001")){
hiddens.put("STATE", "0"); // hiddens.put("STATE", "0");
}else{ // }else{
hiddens.put("STATE", "1"); hiddens.put("STATE", "1");
} // }
hiddens.put("IDS", ArrayDATA_IDS); hiddens.put("IDS", ArrayDATA_IDS);
hiddenService.updateAll(hiddens); hiddenService.updateAll(hiddens);
} }

View File

@ -142,12 +142,12 @@ public class AppCustomCheckRecordController extends BaseController {
String ArrayDATA_IDS[] = ids.split(","); String ArrayDATA_IDS[] = ids.split(",");
PageData hiddens = new PageData(); PageData hiddens = new PageData();
hiddens.put("CHECKRECORD_ID", pd.get("CHECKRECORD_ID")); hiddens.put("CHECKRECORD_ID", pd.get("CHECKRECORD_ID"));
PageData list = customService.findById(pd); // PageData list = customService.findById(pd);
if(list.getString("TYPE").equals("listType0001")){ // if(list.getString("TYPE").equals("listType0001")){
hiddens.put("STATE", "0"); // hiddens.put("STATE", "0");
}else{ // }else{
hiddens.put("STATE", "1"); hiddens.put("STATE", "1");
} // }
hiddens.put("IDS", ArrayDATA_IDS); hiddens.put("IDS", ArrayDATA_IDS);
customHiddenService.updateAll(hiddens); customHiddenService.updateAll(hiddens);
} }