Commit 579aebcc authored by lisong's avatar lisong

修改bug

parent 6ed43119
......@@ -479,7 +479,7 @@ public class EquipmentCategoryController extends BaseController {
if (!ObjectUtils.isEmpty(strings) && strings.size() != integer){
throw new BadRequest("96333码存在重复数据,请联系管理员!");
}
if (ObjectUtils.isEmpty(strings) && !map.get("size").equals(String.valueOf(integer))) {
if (ObjectUtils.isEmpty(strings) && !String.valueOf(code96333.size()).equals(String.valueOf(integer))) {
throw new BadRequest("96333码存在重复数据,请联系管理员!");
}
}
......@@ -492,7 +492,7 @@ public class EquipmentCategoryController extends BaseController {
if (!ObjectUtils.isEmpty(strings) && strings.size() != integer){
throw new BadRequest("监管码存在重复数据,请联系管理员!");
}
if (ObjectUtils.isEmpty(strings) && !map.get("size").equals(String.valueOf(integer))) {
if (ObjectUtils.isEmpty(strings) && !String.valueOf(supervisoryCode.size()).equals(String.valueOf(integer))) {
throw new BadRequest("监管码存在重复数据,请联系管理员!");
}
}
......
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