Commit 755af192 by zhengxj

finish 修复订单列表中已取消单不展示 on 20190307 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@18305 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent f86b39b2
...@@ -85,7 +85,6 @@ import com.glsx.ordercenter.pojo.SysOrderStatus; ...@@ -85,7 +85,6 @@ import com.glsx.ordercenter.pojo.SysOrderStatus;
import com.glsx.ordercenter.pojo.SysResourceMatching; import com.glsx.ordercenter.pojo.SysResourceMatching;
import com.glsx.ordercenter.pojo.user.SysMechanic; import com.glsx.ordercenter.pojo.user.SysMechanic;
import com.glsx.ordercenter.pojo.user.SysMechanicExample; import com.glsx.ordercenter.pojo.user.SysMechanicExample;
import com.glsx.ordercenter.pojo.user.SysMerchant;
import com.glsx.ordercenter.pojo.user.SysMerchantExample; import com.glsx.ordercenter.pojo.user.SysMerchantExample;
import com.glsx.ordercenter.pojo.user.SysUser; import com.glsx.ordercenter.pojo.user.SysUser;
import com.glsx.ordercenter.pojo.user.SysUserExample; import com.glsx.ordercenter.pojo.user.SysUserExample;
...@@ -374,9 +373,9 @@ public class OrderServiceImpl implements IOrderService { ...@@ -374,9 +373,9 @@ public class OrderServiceImpl implements IOrderService {
order.setArea(areaService.getAllChargeItems(order.getDistrict())); order.setArea(areaService.getAllChargeItems(order.getDistrict()));
// 渠道名称 // 渠道名称
if (order.getMerchantId() != null) { if (order.getMerchantId() != null) {
SysMerchantExample sysMerchantExample = new SysMerchantExample(); // SysMerchantExample sysMerchantExample = new SysMerchantExample();
example.createCriteria().andIdEqualTo(order.getMerchantId()); // example.createCriteria().andIdEqualTo(order.getMerchantId());
order.setOrderChannel(sysMerchantDao.selectByExample(sysMerchantExample).get(0).getShopName()); order.setOrderChannel(sysUserDao.selectByPrimaryKey(order.getMerchantId()).getName());
} }
// 技工信息 // 技工信息
if (order.getMechanicId() != null) { if (order.getMechanicId() != null) {
...@@ -743,11 +742,11 @@ public class OrderServiceImpl implements IOrderService { ...@@ -743,11 +742,11 @@ public class OrderServiceImpl implements IOrderService {
int userType = sysUser.getUserType(); int userType = sysUser.getUserType();
// 当前用户:服务商或者门店 // 当前用户:服务商或者门店
if (userType == 1) { if (userType == 1) {
SysMerchantExample merExample = new SysMerchantExample(); // SysMerchantExample merExample = new SysMerchantExample();
merExample.createCriteria().andUserIdEqualTo(userId); // merExample.createCriteria().andUserIdEqualTo(userId);
SysMerchant merchant = sysMerchantDao.selectByExample(merExample).get(0); // SysMerchant merchant = sysMerchantDao.selectByExample(merExample).get(0);
criteria.andMerchantIdEqualTo(merchant.getId()); criteria.andMerchantIdEqualTo(userId);
params.put("merchantId", merchant.getId()); params.put("merchantId", userId);
// 按照小时计算 // 按照小时计算
if (startDate == null && endDate == null) { if (startDate == null && endDate == null) {
Date currentTime = DateUtil.getCurrentTime(); Date currentTime = DateUtil.getCurrentTime();
...@@ -1135,9 +1134,9 @@ public class OrderServiceImpl implements IOrderService { ...@@ -1135,9 +1134,9 @@ public class OrderServiceImpl implements IOrderService {
order.setArea(areaService.getAllChargeItems(order.getDistrict())); order.setArea(areaService.getAllChargeItems(order.getDistrict()));
// 渠道名称 // 渠道名称
if (order.getMerchantId() != null) { if (order.getMerchantId() != null) {
SysMerchantExample example = new SysMerchantExample(); // SysMerchantExample example = new SysMerchantExample();
example.createCriteria().andUserIdEqualTo(order.getMerchantId()); // example.createCriteria().andUserIdEqualTo(order.getMerchantId());
order.setOrderChannel(sysMerchantDao.selectByExample(example).get(0).getShopName()); order.setOrderChannel(sysUserDao.selectByPrimaryKey(id).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!