Commit 37f58d4f by 张富康

门店列表

1 parent e7a48614
......@@ -19,5 +19,7 @@ public class CarBrandProvinceRequestDTO implements Serializable {
private List<Integer> firstBrandIdList;
@ApiModelProperty(notes = "省份")
private List<Integer> provinceIds;
@ApiModelProperty(notes = "门店名称")
private String merchantName;
}
......@@ -1216,8 +1216,7 @@
from platform_merchant_brand where merchant_id =#{merchantId} and del_flag = 0
</select>
<select id="findMerchantListByBrandIdsProvince"
resultType="cn.com.glsx.merchants.model.response.MerchantProvinceDTO">
<select id="findMerchantListByBrandIdsProvince" resultType="cn.com.glsx.merchants.model.response.MerchantProvinceDTO">
SELECT DISTINCT pm.merchantNo as merchantId,
pm.merchant_name as merchantName,
pm.province_code as provinceCode,
......@@ -1237,12 +1236,14 @@
#{item}
</foreach>
</if>
<if test="merchantName != null and merchantName != '' ">
AND pm.merchant_name LIKE CONCAT('%',#{merchantName},'%')
</if>
AND pmb.del_flag = 0
ORDER BY pm.id;
</select>
<select id="findMerchantProvinceListByIds"
resultType="cn.com.glsx.merchants.model.response.MerchantProvinceDTO">
<select id="findMerchantProvinceListByIds" resultType="cn.com.glsx.merchants.model.response.MerchantProvinceDTO">
SELECT distinct merchantNo merchantId,
province_code provinceCode,
merchant_name merchantName
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!