Commit 30ddf6ff by zhengxj

finish 优化 on 20190410 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@19469 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 784386b7
...@@ -431,9 +431,11 @@ public class OrderServiceImpl implements IOrderService { ...@@ -431,9 +431,11 @@ public class OrderServiceImpl implements IOrderService {
if (oueryOrderReq.getOrderChannel() != null) { if (oueryOrderReq.getOrderChannel() != null) {
order.setOrderChannel(orderChannelDao.selectByPrimaryKey(oueryOrderReq.getOrderChannel()).getName()); order.setOrderChannel(orderChannelDao.selectByPrimaryKey(oueryOrderReq.getOrderChannel()).getName());
} else { } else {
if(order.getShopId()!=null){
SysUser sysuser = sysUserDao.selectByPrimaryKey(order.getShopId()); SysUser sysuser = sysUserDao.selectByPrimaryKey(order.getShopId());
order.setOrderChannel(orderChannelDao.selectByPrimaryKey(sysuser.getGroupId()).getName()); order.setOrderChannel(orderChannelDao.selectByPrimaryKey(sysuser.getGroupId()).getName());
} }
}
// 技工信息 // 技工信息
if (order.getMechanicId() != null) { if (order.getMechanicId() != null) {
MachanicInfo machanicInfo = new MachanicInfo(); MachanicInfo machanicInfo = new MachanicInfo();
...@@ -1412,11 +1414,14 @@ public class OrderServiceImpl implements IOrderService { ...@@ -1412,11 +1414,14 @@ public class OrderServiceImpl implements IOrderService {
// 订单地址信息 // 订单地址信息
order.setArea(areaService.getAllChargeItems(order.getDistrict())); order.setArea(areaService.getAllChargeItems(order.getDistrict()));
// 渠道名称 // 渠道名称
if (order.getMerchantId() != null) { if (order.getShopId() != null) {
// SysMerchantExample example = new SysMerchantExample(); // SysMerchantExample example = new SysMerchantExample();
// example.createCriteria().andUserIdEqualTo(order.getMerchantId()); // example.createCriteria().andUserIdEqualTo(order.getMerchantId());
// order.setOrderChannel(sysUserDao.selectByPrimaryKey(order.getMerchantId()).getName());
SysUser sysuser = sysUserDao.selectByPrimaryKey(order.getShopId());
order.setOrderChannel(orderChannelDao.selectByPrimaryKey(sysuser.getGroupId()).getName());
order.setOrderChannel(sysUserDao.selectByPrimaryKey(order.getMerchantId()).getName());
} }
// 门店名称 // 门店名称
if (order.getShopId() != null) { if (order.getShopId() != null) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!