Commit dd07709a by yuanlin

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

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@26624 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent ac9922d1
......@@ -155,6 +155,7 @@ public class DaSouCheOrderServiceImpl implements DaSouCheOrderService {
List<DaSouCheDevice> addDeviceList = new ArrayList<>(addDeviceMap.values());
//如果是故障设备 多个设备也只生成多个个检修单
if (CollectionUtils.isNotEmpty(noNormalDeviceList)) {
//设置公共参数
SysOrder operatorOrder = setCommonParam(repairOrderReq, BizConstants.CREATE_ORDER_NO_NORMSAL, (byte) BizConstants.ORDER_TYPE_REPAIR);
for (DaSouCheDevice daSouCheDevice : noNormalDeviceList) {
String orderSn = orderService.getOrderSn((byte) BizConstants.ORDER_TYPE_REPAIR);
......@@ -186,6 +187,7 @@ public class DaSouCheOrderServiceImpl implements DaSouCheOrderService {
}
//如果是加装设备 单独生成一个检修单
if (CollectionUtils.isNotEmpty(addDeviceList)) {
//设置公共参数
SysOrder operatorOrder = setCommonParam(repairOrderReq, BizConstants.CREATE_ORDER_NO_NORMSAL, (byte) BizConstants.ORDER_TYPE_REPAIR);
for (DaSouCheDevice daSouCheDevice : addDeviceList) {
String orderSn = orderService.getOrderSn((byte) BizConstants.ORDER_TYPE_REPAIR);
......@@ -431,6 +433,10 @@ public class DaSouCheOrderServiceImpl implements DaSouCheOrderService {
List<String> deviceList = deviceMap.get(deviceStr);
if(CollectionUtils.isNotEmpty(deviceList)){
tempMap.put(deviceStr,deviceList);
}else{
List<String> temp = new ArrayList<>();
temp.add(device.getDevSupplier());
tempMap.put(deviceStr,temp);
}
}
addOrderDeviceSupplier(sysOrder, tempMap, orderDeviceIds,1);
......@@ -766,8 +772,10 @@ public class DaSouCheOrderServiceImpl implements DaSouCheOrderService {
}
}
}
if(CollectionUtils.isNotEmpty(suppliers)){
sysOrderDeviceSupplierMapper.insertBatchSelective(suppliers);
}
logger.info("供应商插入完成"+sysOrder.getOrderSn());
sysOrderDeviceSupplierMapper.insertBatchSelective(suppliers);
}
/**
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!