Commit 54a3a5a2 by yuanlin

提交包活干检修安装拆除审核驳回 finished by yuanlin

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@26621 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 33a9d375
......@@ -295,19 +295,19 @@ public class DaSouCheUtil {
public static String valiateInstall(DaSouCheInstallOrderReq orderReq){
StringBuffer errorStr = new StringBuffer();
if(orderReq.getWirelessDevCount() == null){
errorStr.append("无源设备数量不能为空");
errorStr.append("无源设备数量不能为空,");
}
if(orderReq.getWirelineDevCount() == null){
errorStr.append("有源设备数量不能为空");
errorStr.append("有源设备数量不能为空,");
}
if(orderReq.getTinyWirelessDevCount() == null){
errorStr.append("微型无源设备数量不能为空");
errorStr.append("微型无源设备数量不能为空,");
}
if(orderReq.getOtherDevCount() == null){
errorStr.append("其他设备数量不能为空");
errorStr.append("其他设备数量不能为空,");
}
if(orderReq.getInstallMode() == null){
errorStr.append("安装模式不能为空");
errorStr.append("安装模式不能为空,");
}
return errorStr.toString();
}
......@@ -318,22 +318,22 @@ public class DaSouCheUtil {
if(CollectionUtils.isNotEmpty(devList)){
for(DaSouCheDevice device : devList){
if(StringUtils.isBlank(device.getDevNo())){
errorStr.append("设备号不能为空");
errorStr.append("设备号不能为空,");
}
if(device.getDevType()==null){
errorStr.append("设备类型不能为空");
errorStr.append("设备类型不能为空,");
}
if(StringUtils.isBlank(device.getDevPosition())){
errorStr.append("安装位置不能为空");
errorStr.append("安装位置不能为空,");
}
if(StringUtils.isBlank(device.getDevSupplier())){
errorStr.append("供应商不能为空");
errorStr.append("供应商不能为空,");
}
if(StringUtils.isBlank(device.getInstallConfirm())){
errorStr.append("安装确认不能为空");
errorStr.append("安装确认不能为空,");
}
if(device.getRepairType()==null){
errorStr.append("检修不能为空");
errorStr.append("检修类型不能为空,");
}
}
}
......@@ -346,19 +346,19 @@ public class DaSouCheUtil {
if(CollectionUtils.isNotEmpty(devList)){
for(DaSouCheRemoveDevice device : devList){
if(StringUtils.isBlank(device.getDevNo())){
errorStr.append("设备号不能为空");
errorStr.append("设备号不能为空,");
}
if(device.getDevType()==null){
errorStr.append("设备类型不能为空");
errorStr.append("设备类型不能为空,");
}
if(StringUtils.isBlank(device.getDevPosition())){
errorStr.append("安装位置不能为空");
errorStr.append("安装位置不能为空,");
}
if(StringUtils.isBlank(device.getDevSupplier())){
errorStr.append("供应商不能为空");
errorStr.append("供应商不能为空,");
}
if(StringUtils.isBlank(device.getInstallConfirm())){
errorStr.append("安装确认不能为空");
errorStr.append("安装确认不能为空,");
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!