Merge branch 'hotfix_order_违规记录' into test6.9.3
Showing
3 changed files
with
17 additions
and
0 deletions
@@ -35,4 +35,6 @@ public interface BuyerOrderMapper { | @@ -35,4 +35,6 @@ public interface BuyerOrderMapper { | ||
35 | // 修改订单的卖家发货 已处理 | 35 | // 修改订单的卖家发货 已处理 |
36 | int updateSellerDeliveryDealAgainByOrderCode(@Param("orderCode")long orderCode, @Param("uid")int uid); | 36 | int updateSellerDeliveryDealAgainByOrderCode(@Param("orderCode")long orderCode, @Param("uid")int uid); |
37 | 37 | ||
38 | + // 根据sellerUid 和状态查询订单数目 | ||
39 | + int selectCountByUidStatus(@Param("statusList")List<Integer> statusList, @Param("sellerUid")int sellerUid); | ||
38 | } | 40 | } |
@@ -268,4 +268,14 @@ | @@ -268,4 +268,14 @@ | ||
268 | where uid = #{uid,jdbcType=INTEGER} and order_code = #{orderCode,jdbcType=BIGINT} | 268 | where uid = #{uid,jdbcType=INTEGER} and order_code = #{orderCode,jdbcType=BIGINT} |
269 | </update> | 269 | </update> |
270 | 270 | ||
271 | + <select id="selectCountByUidStatus"> | ||
272 | + select count(1) | ||
273 | + from buyer_order where seller_uid = #{sellerUid, jdbcType=INTEGER} | ||
274 | + <if test="statusList != null and statusList.size() > 0"> | ||
275 | + and status in | ||
276 | + <foreach collection="statusList" item="status" open="(" close=")" separator=","> | ||
277 | + #{status} | ||
278 | + </foreach> | ||
279 | + </if> | ||
280 | + </select> | ||
271 | </mapper> | 281 | </mapper> |
@@ -1701,9 +1701,14 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { | @@ -1701,9 +1701,14 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { | ||
1701 | 1701 | ||
1702 | querySecondInfo(resp, skup, buyerOrder.getAttributes()); // 查询二手信息 | 1702 | querySecondInfo(resp, skup, buyerOrder.getAttributes()); // 查询二手信息 |
1703 | 1703 | ||
1704 | + queryAberrationNum(resp, buyerOrder.getSellerUid()); // 查询违规记录数 | ||
1705 | + | ||
1704 | return resp; | 1706 | return resp; |
1705 | } | 1707 | } |
1706 | 1708 | ||
1709 | + private void queryAberrationNum(QcOrderDetailResp resp, Integer sellerUid) { | ||
1710 | + resp.setAberrationNum(buyerOrderMapper.selectCountByUidStatus(Lists.newArrayList(OrderStatus.CHECKING_FAKE.getCode()), sellerUid)); | ||
1711 | + } | ||
1707 | 1712 | ||
1708 | 1713 | ||
1709 | @Override | 1714 | @Override |
-
Please register or login to post a comment