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{
private static final long serialVersionUID = -4459816057299745181L;
private String shopName;
private Long bizAmount;
private Long shopId;
private Integer shopId;
public Long getShopId() {
public Integer getShopId() {
return shopId;
}
public void setShopId(Long shopId) {
public void setShopId(Integer shopId) {
this.shopId = shopId;
}
public String getShopName() {
......
......@@ -983,8 +983,13 @@ public class OrderServiceImpl implements IOrderService {
}
bizAmountResp.setBizAmount(bizAmount);
List<ShopBizAmount> shopBizAmount = orderDao.countByParams(params);
bizAmountResp.setShopBizAmount(shopBizAmount);
List<ShopBizAmount> shopBizAmounts = orderDao.countByParams(params);
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;
}
......
......@@ -581,7 +581,7 @@
</where>
</select>
<select id="countByParams" parameterType="java.util.Map" resultMap="OrderCountResultMap">
<select id="countByParams" parameterType="java.util.Map" resultMap="OrderCountResultMap">
SELECT
sm.shop_name,so.shop_id,
count(1) AS biz_amount
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!