Commit e72b9e72 by 章家宝

工资绩效:自测发现bug,修复

1 parent 7973697a
......@@ -175,5 +175,5 @@ public interface MerchantMapper extends CommonBaseMapper<Merchant> {
List<Integer> pageListMerchantIds(RpcPagination<MerchantPageWithBrandDTO> pagination);
List<MerchantPageWithBrandDTO> listMerchantWithBrandByMerchantIds(Page<Integer> idPage);
List<MerchantPageWithBrandDTO> listMerchantWithBrandByMerchantIds(@Param("merchantIds") List<Integer> merchantIds);
}
\ No newline at end of file
......@@ -1290,13 +1290,13 @@
AND m.del_flag = 0
<if test="condition.brandIdList != null and condition.brandIdList.size() > 0">
AND m.first_brand_id IN
<foreach collection="brandIdList" item="brandId" open="(" separator="," close=")">
<foreach collection="condition.brandIdList" item="brandId" open="(" separator="," close=")">
#{brandId}
</foreach>
</if>
<if test="condition.merchantIds != null and condition.merchantIds.size() > 0">
AND s.merchantNo IN
<foreach collection="merchantIds" item="merchantId" open="(" separator="," close=")">
<foreach collection="condition.merchantIds" item="merchantId" open="(" separator="," close=")">
#{merchantId}
</foreach>
</if>
......@@ -1305,7 +1305,7 @@
<!-- 2. 根据商户ID列表查询带品牌的详情 -->
<select id="listMerchantWithBrandByMerchantIds" parameterType="map" resultMap="MerchantPageWithBrandDTOMap">
SELECT DISTINCT s.merchantNo,
SELECT DISTINCT s.merchantNo as merchant_id,
s.merchant_name,
IFNULL(m.first_brand_id, 0) AS brand_id,
IFNULL(m.sec_brand_id, 0) AS child_id
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!