Commit 3369ec48 by zhengxj

finish 数据权限限制 on 20190319 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@18698 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 451e2f26
...@@ -41,12 +41,12 @@ public class ShopBizAmount implements Serializable{ ...@@ -41,12 +41,12 @@ public class ShopBizAmount implements Serializable{
private static final long serialVersionUID = -4459816057299745181L; private static final long serialVersionUID = -4459816057299745181L;
private String shopName; private String shopName;
private Long bizAmount; private Long bizAmount;
private Long shopId; private Integer shopId;
public Long getShopId() { public Integer getShopId() {
return shopId; return shopId;
} }
public void setShopId(Long shopId) { public void setShopId(Integer shopId) {
this.shopId = shopId; this.shopId = shopId;
} }
public String getShopName() { public String getShopName() {
......
...@@ -983,8 +983,13 @@ public class OrderServiceImpl implements IOrderService { ...@@ -983,8 +983,13 @@ public class OrderServiceImpl implements IOrderService {
} }
bizAmountResp.setBizAmount(bizAmount); bizAmountResp.setBizAmount(bizAmount);
List<ShopBizAmount> shopBizAmount = orderDao.countByParams(params); List<ShopBizAmount> shopBizAmounts = orderDao.countByParams(params);
bizAmountResp.setShopBizAmount(shopBizAmount); for (ShopBizAmount shopBizAmount:shopBizAmounts ) {
SysMerchantExample example=new SysMerchantExample();
example.createCriteria().andUserIdEqualTo(shopBizAmount.getShopId());
shopBizAmount.setShopName(sysMerchantDao.selectByExample(example).get(0).getShopName());
}
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!