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