gaodd 3 years ago
parent
commit
be65a5df42

+ 4 - 4
src/main/java/com/unissoft/ventilation/service/impl/ProcessAuditServiceImpl.java

@@ -1207,16 +1207,16 @@ public class ProcessAuditServiceImpl extends ServiceImpl<ProcessAuditMapper, Pro
1207 1207
         Integer depotId = jsStr.optInt("depotId");//库id
1208 1208
         Integer auditState = jsStr.optInt("auditState");//状态
1209 1209
         JSONArray jsonArray = jsStr.optJSONArray("subList");//子流程数据
1210
-        QueryWrapper<ProcessAudit> ew1 = new QueryWrapper<>();
1211
-        ew1.eq("process_id", processId);
1212
-        ew1.eq("type", type);
1213
-        List<ProcessAudit> list = processAuditMapper.selectList(ew1);
1214 1210
         JSONObject row = null;
1215 1211
         for (int i = 0; i < jsonArray.length(); i++) {
1216 1212
             row = jsonArray.getJSONObject(i);
1217 1213
             Integer subData = row.optInt("subData");//子流程数据
1218 1214
             String operationTime = row.optString("operationTime");//子流程的操作时间
1219 1215
             Integer subId = row.optInt("subId");//子流程id
1216
+            QueryWrapper<ProcessAudit> ew1 = new QueryWrapper<>();
1217
+            ew1.eq("process_id", processId);
1218
+            ew1.eq("type", type);
1219
+            List<ProcessAudit> list = processAuditMapper.selectList(ew1);
1220 1220
             if(list.size() > 0){
1221 1221
             	for (ProcessAudit processAudit : list) {
1222 1222
             		if(processAudit.getSubId().equals(subId) && !processAudit.getSubData().equals(subData)){