Commit c06ff132 authored by chenzhao's avatar chenzhao

修改校验

parent 8abe10a2
...@@ -1362,8 +1362,7 @@ public class WorkOrderServiceImpl extends BaseService<WorkOrderDto, WorkOrder, W ...@@ -1362,8 +1362,7 @@ public class WorkOrderServiceImpl extends BaseService<WorkOrderDto, WorkOrder, W
if (jsonObject.containsKey("items")){ if (jsonObject.containsKey("items")){
JSONArray item1 = jsonObject.getJSONArray("items"); JSONArray item1 = jsonObject.getJSONArray("items");
for (Object o : item1) { for (Object o : item1) {
Collection<Object> values1 = JSON.parseObject(JSON.toJSONString(o)).values(); if (!JSON.parseObject(JSON.toJSONString(o)).containsKey("value")){
if (values1.size()<1){
return CommonResponseNewUtil.failureMessage("整改类型及整改项不可为空"); return CommonResponseNewUtil.failureMessage("整改类型及整改项不可为空");
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment