Authored by mali

Merge branch 'hotfix_order_违规记录' into test6.9.3

... ... @@ -35,4 +35,6 @@ public interface BuyerOrderMapper {
// 修改订单的卖家发货 已处理
int updateSellerDeliveryDealAgainByOrderCode(@Param("orderCode")long orderCode, @Param("uid")int uid);
// 根据sellerUid 和状态查询订单数目
int selectCountByUidStatus(@Param("statusList")List<Integer> statusList, @Param("sellerUid")int sellerUid);
}
... ...
... ... @@ -268,4 +268,14 @@
where uid = #{uid,jdbcType=INTEGER} and order_code = #{orderCode,jdbcType=BIGINT}
</update>
<select id="selectCountByUidStatus">
select count(1)
from buyer_order where seller_uid = #{sellerUid, jdbcType=INTEGER}
<if test="statusList != null and statusList.size() > 0">
and status in
<foreach collection="statusList" item="status" open="(" close=")" separator=",">
#{status}
</foreach>
</if>
</select>
</mapper>
\ No newline at end of file
... ...
... ... @@ -1701,9 +1701,14 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService {
querySecondInfo(resp, skup, buyerOrder.getAttributes()); // 查询二手信息
queryAberrationNum(resp, buyerOrder.getSellerUid()); // 查询违规记录数
return resp;
}
private void queryAberrationNum(QcOrderDetailResp resp, Integer sellerUid) {
resp.setAberrationNum(buyerOrderMapper.selectCountByUidStatus(Lists.newArrayList(OrderStatus.CHECKING_FAKE.getCode()), sellerUid));
}
@Override
... ...