Commit f54b9264 by yuanlin

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

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@26642 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent f5d1c8bc
package com.glsx.ordercenter.utils;
import com.alibaba.fastjson.JSON;
import com.glsx.ordercenter.constants.BizConstants;
import com.glsx.ordercenter.dto.req.*;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang.ArrayUtils;
......@@ -323,17 +324,19 @@ public class DaSouCheUtil {
if(device.getDevType()==null){
errorStr.append("设备类型不能为空,");
}
if(StringUtils.isBlank(device.getDevPosition())){
errorStr.append("安装位置不能为空,");
if(device.getRepairType()==null){
errorStr.append("检修类型不能为空,");
}
if(StringUtils.isBlank(device.getDevSupplier())){
errorStr.append("供应商不能为空,");
}
if(StringUtils.isBlank(device.getInstallConfirm())){
errorStr.append("安装确认不能为空,");
}
if(device.getRepairType()==null){
errorStr.append("检修类型不能为空,");
if(device.getRepairType()!= BizConstants.ORDER_REPAIR_ADD){
if(StringUtils.isBlank(device.getInstallConfirm())){
errorStr.append("安装确认不能为空,");
}
if(StringUtils.isBlank(device.getDevPosition())){
errorStr.append("安装位置不能为空,");
}
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!