Commit 106c0423 by zhengxj

finish 服务商用户不做数据权限处理 on 20190321 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@18749 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent e9d795f9
...@@ -893,7 +893,9 @@ public class OrderServiceImpl implements IOrderService { ...@@ -893,7 +893,9 @@ public class OrderServiceImpl implements IOrderService {
bizAmountResp.setType(selectType); bizAmountResp.setType(selectType);
return bizAmountResp; return bizAmountResp;
} }
params.put("ids", userId); params.put("ids", dataRight);
} else{
params.put("merchantId", userId);
} }
// SysOrderExample orderExample = new SysOrderExample(); // SysOrderExample orderExample = new SysOrderExample();
// Criteria criteria = orderExample.createCriteria(); // Criteria criteria = orderExample.createCriteria();
...@@ -1090,12 +1092,15 @@ public class OrderServiceImpl implements IOrderService { ...@@ -1090,12 +1092,15 @@ public class OrderServiceImpl implements IOrderService {
params.put("endTime", endDate); params.put("endTime", endDate);
} }
bizAmountResp.setBizAmount(bizAmount); bizAmountResp.setBizAmount(bizAmount);
// 商户订单量排名统计
List<ShopBizAmount> shopBizAmounts = orderDao.countByParams(params); List<ShopBizAmount> shopBizAmounts = orderDao.countByParams(params);
for (ShopBizAmount shopBizAmount : shopBizAmounts) { for (ShopBizAmount shopBizAmount : shopBizAmounts) {
SysMerchantExample example = new SysMerchantExample(); SysMerchantExample example = new SysMerchantExample();
example.createCriteria().andUserIdEqualTo(shopBizAmount.getShopId()); example.createCriteria().andUserIdEqualTo(shopBizAmount.getShopId());
shopBizAmount.setShopName(sysMerchantDao.selectByExample(example).get(0).getShopName()); shopBizAmount.setShopName(sysMerchantDao.selectByExample(example).get(0).getShopName());
} }
bizAmountResp.setShopBizAmount(shopBizAmounts); bizAmountResp.setShopBizAmount(shopBizAmounts);
return bizAmountResp; return bizAmountResp;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!