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,8 +431,10 @@ public class OrderServiceImpl implements IOrderService {
if (oueryOrderReq.getOrderChannel() != null) {
order.setOrderChannel(orderChannelDao.selectByPrimaryKey(oueryOrderReq.getOrderChannel()).getName());
} else {
SysUser sysuser = sysUserDao.selectByPrimaryKey(order.getShopId());
order.setOrderChannel(orderChannelDao.selectByPrimaryKey(sysuser.getGroupId()).getName());
if(order.getShopId()!=null){
SysUser sysuser = sysUserDao.selectByPrimaryKey(order.getShopId());
order.setOrderChannel(orderChannelDao.selectByPrimaryKey(sysuser.getGroupId()).getName());
}
}
// 技工信息
if (order.getMechanicId() != null) {
......@@ -1412,11 +1414,14 @@ public class OrderServiceImpl implements IOrderService {
// 订单地址信息
order.setArea(areaService.getAllChargeItems(order.getDistrict()));
// 渠道名称
if (order.getMerchantId() != null) {
if (order.getShopId() != null) {
// SysMerchantExample example = new SysMerchantExample();
// 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) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!