Commit 4b48dc4c by 林永健

fix(merchant-staff): 支持根据状态列表查询商户员工并完善相关逻辑

1 parent 933671b4
......@@ -19,4 +19,9 @@ public class MerchantStaffListRequest extends DefaultRequest implements Serializ
*/
private List<Integer> merchantIds;
/**
* 状态列表 0正常 -1删除 2禁用 (默认只查询正常数据)
*/
private List<Integer> statusList;
}
\ No newline at end of file
......@@ -513,7 +513,16 @@
<foreach collection="request.merchantIds" open="(" close=")" separator="," item="merchantNo">
#{merchantNo}
</foreach>
AND s.`del_flag` = 0 AND m.`del_flag`=0
AND m.`del_flag`=0
<if test="request.statusList != null and request.statusList.size() > 0">
AND s.`del_flag` in
<foreach collection="request.statusList" open="(" close=")" separator="," item="status">
#{status}
</foreach>
</if>
<if test="request.statusList == null or request.statusList.size() == 0">
AND s.`del_flag` = 0
</if>
</select>
<select id="selectStaffListByMerchantIdAndStaffLabels" resultMap="resultMap">
SELECT s.* FROM `platform_merchant_staff` s LEFT JOIN `platform_merchant` m ON m.`id`=s.`merchant_id`
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!