Commit 8fc579af by chaizheng

大搜车工单需求

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@26703 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent d021b4a5
......@@ -1926,11 +1926,19 @@ public class OrderServiceImpl implements IOrderService {
* 修改该订单的设备信息,移到最后,发送邮件要用到原设备信息
*/
List<SysOrderDevice> orderDeviceList = orderRepairReq.getOrderDeviceList();
if("DSC".equals(order.getChannel())&&(repairType==0||repairType==1)){
if("DSC".equals(order.getChannel())&&(repairType==0||repairType==1||repairType==3)){
if(!CollectionUtils.isEmpty(orderDeviceList)){
SysOrderDevice orderDevice = orderDeviceList.get(0);
if(orderDevice.getDeviceNo().equals(orderDevice.getOldDeviceNo())){
return new ResultObject(ResultCodeEnum.FAIL.getCode(), ResultCodeEnum.DEVICE_NOt_REPLACED.getMsg());
SysOrderDevice record = new SysOrderDevice();
record.setOrderId(orderDevice.getOrderId());
record.setSort(orderDevice.getSort());
List<SysOrderDevice> sysOrderDevices = orderDeviceDao.selectByOrderDevice(record);
if(CollectionUtils.isEmpty(sysOrderDevices)){
return new ResultObject(ResultCodeEnum.FAIL.getCode(), ResultCodeEnum.ORDER_DEVICE_NOT_EXIST.getMsg());
}
SysOrderDevice repairDevice = sysOrderDevices.get(0);
if(orderDevice.getDeviceNo().equals(repairDevice.getOldDeviceNo())){
return new ResultObject(ResultCodeEnum.FAIL.getCode(), ResultCodeEnum.DEVICE_NOT_REPLACED.getMsg());
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!