Commit 6a96f045 by chaizheng

大搜车工单需求

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@26612 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 608beb8e
......@@ -1966,6 +1966,13 @@ public class OrderServiceImpl implements IOrderService {
if (orderDeviceList != null && orderDeviceList.size() >0) {
for (SysOrderDevice sysOrderDevice : orderDeviceList) {
orderDeviceDao.updateByPrimaryKeySelective(sysOrderDevice);
SysOrderDeviceSupplier supplier = new SysOrderDeviceSupplier();
supplier.setOrderId(orderId);
supplier.setSupplierType(sysOrderDevice.getDeviceType());
supplier.setChooseSupplier(sysOrderDevice.getChooseSupplier());
supplier.setIndexNo(sysOrderDevice.getIndexNo());
supplier.setIndexNo(sysOrderDevice.getIndexNo());
sysOrderDeviceSupplierMapper.updateSupplier(supplier);
}
}
/**
......@@ -4242,7 +4249,6 @@ public class OrderServiceImpl implements IOrderService {
/*
* 插入订单设备列表
*/
int indexNo = 0;
for (SysOrderDevice sysOrderDevice : orderDeviceList) {
SysOrderDevice orderDevice = new SysOrderDevice();
orderDevice.setOrderId(orderId);
......@@ -4255,7 +4261,6 @@ public class OrderServiceImpl implements IOrderService {
supplier.setOrderId(orderId);
supplier.setSupplierType(sysOrderDevice.getDeviceType());
supplier.setChooseSupplier(sysOrderDevice.getChooseSupplier());
supplier.setIndexNo(indexNo);
supplier.setIndexNo(sysOrderDevice.getIndexNo());
sysOrderDeviceSupplierMapper.updateSupplier(supplier);
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!