Commit 37f58d4f by 张富康

门店列表

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