Commit 2fe022a8 authored by chenzhao's avatar chenzhao

修改校验整改项

parent ee9877b6
......@@ -364,8 +364,7 @@ public class AcceptanceCheckServiceImpl extends BaseService<AcceptanceCheckDto,A
if (jsonObject.containsKey("items")){
JSONArray item1 = jsonObject.getJSONArray("items");
for (Object o : item1) {
Collection<Object> values1 = JSON.parseObject(JSON.toJSONString(o)).values();
if (values1.size()<1){
if (!JSON.parseObject(JSON.toJSONString(o)).containsKey("value")){
return CommonResponseNewUtil.failureMessage("整改类型及整改项不可为空");
}
}
......
......@@ -652,8 +652,7 @@ public class BasicGridAcceptanceServiceImpl
if (jsonObject.containsKey("items")){
JSONArray item1 = jsonObject.getJSONArray("items");
for (Object o : item1) {
Collection<Object> values1 = JSON.parseObject(JSON.toJSONString(o)).values();
if (values1.size()<1){
if (!JSON.parseObject(JSON.toJSONString(o)).containsKey("value")){
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