Commit 866b407a by 叶立庆

Merge branch 'v5.5.1' into 'master'

refactor(security): 优化存量门店权限过滤逻辑

See merge request !7
2 parents 7afe1200 92c3307b
...@@ -19,6 +19,8 @@ public class CarBrandProvinceRequestDTO implements Serializable { ...@@ -19,6 +19,8 @@ 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 List<Integer> merchantNoList;
@ApiModelProperty(notes = "门店名称") @ApiModelProperty(notes = "门店名称")
private String merchantName; private String merchantName;
......
...@@ -1239,6 +1239,12 @@ ...@@ -1239,6 +1239,12 @@
<if test="merchantName != null and merchantName != '' "> <if test="merchantName != null and merchantName != '' ">
AND pm.merchant_name LIKE CONCAT('%',#{merchantName},'%') AND pm.merchant_name LIKE CONCAT('%',#{merchantName},'%')
</if> </if>
<if test="merchantNoList != null and merchantNoList.size() > 0">
AND pm.merchantNo IN
<foreach collection="merchantNoList" item="item" separator="," index="index" open="(" close=")">
#{item}
</foreach>
</if>
AND pmb.del_flag = 0 AND pmb.del_flag = 0
ORDER BY pm.id; ORDER BY pm.id;
</select> </select>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!