Commit ae8f4141 authored by zhangsen's avatar zhangsen

少括号

parent 4a6f0597
...@@ -259,10 +259,11 @@ public class EquipmentDetailController extends AbstractBaseController { ...@@ -259,10 +259,11 @@ public class EquipmentDetailController extends AbstractBaseController {
if (exists > 0) { if (exists > 0) {
throw new BadRequest("设备物联编码重复"); throw new BadRequest("设备物联编码重复");
} }
if(StringUtils.isNotEmpty(sysCode) && StringUtils.isNotEmpty(sysCode.trim())){ if(StringUtils.isNotEmpty(sysCode) && StringUtils.isNotEmpty(sysCode.trim())) {
if(sysCode.startsWith("20210003")||sysCode.startsWith("20210004")||sysCode.startsWith("20210005")){ if (sysCode.startsWith("20210003") || sysCode.startsWith("20210004") || sysCode.startsWith("20210005")) {
throw new BadRequest("物联编码航班已占用"); throw new BadRequest("物联编码航班已占用");
} }
}
} }
//1.更新装备实例Detail数据 //1.更新装备实例Detail数据
EquipmentDetail equipmentDetail = equipmentDate.getEquipmentDetail(); EquipmentDetail equipmentDetail = equipmentDate.getEquipmentDetail();
......
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