diff --git a/src/main/java/com/zcloud/controller/keyProjects/AIWarningController.java b/src/main/java/com/zcloud/controller/keyProjects/AIWarningController.java index a401c3e5..e16b6d2a 100644 --- a/src/main/java/com/zcloud/controller/keyProjects/AIWarningController.java +++ b/src/main/java/com/zcloud/controller/keyProjects/AIWarningController.java @@ -111,19 +111,21 @@ public class AIWarningController extends BaseController { pd.put("ISDELETE", 0); //是否删除 aiwarningService.addPeople(pd); PageData pdList = new PageData(); - pd.put("AIWARNING_PEOPLE", listperson.get(i)); - pd.put("CONTRACT_PIC_ID", this.get32UUID()); //主键 - pd.put("CREATTIME", DateUtil.date2Str(new Date())); //添加时间 - pd.put("CREATOR", DateUtil.date2Str(new Date())); //添加人 - pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //修改时间 - pd.put("OPERATOR", DateUtil.date2Str(new Date())); //修改人 - pd.put("ISDELETE", 0); //是否删除 + pdList.put("AIWARNING_PEOPLE", listperson.get(i)); + pdList.put("CONTRACT_PIC_ID", this.get32UUID()); //主键 + pdList.put("CREATTIME", DateUtil.date2Str(new Date())); //添加时间 + pdList.put("CREATOR", DateUtil.date2Str(new Date())); //添加人 + pdList.put("OPERATTIME", DateUtil.date2Str(new Date())); //修改时间 + pdList.put("OPERATOR", DateUtil.date2Str(new Date())); //修改人 + pdList.put("ISDELETE", 0); //是否删除 + pdListmap.put("pdList"+i,JSON.toJSONString(pdList)); } + pd.put("pdListmap",JSON.toJSONString(pdListmap)); } else { map.put("state", "1"); map.put("msg", "报警人有重复数据"); } - + map.put("dockData",JSON.toJSONString(pd)); map.put("result", errInfo); return map; }