update 会员区分运营商

This commit is contained in:
Lemon
2023-08-25 13:17:30 +08:00
parent 914380b3ea
commit 454022c553
10 changed files with 622 additions and 471 deletions

View File

@@ -197,6 +197,8 @@
<select id="selectMemberList" resultType="com.jsowell.pile.vo.uniapp.MemberVO">
SELECT
t1.merchant_id as merchantId,
t3.merchant_name as merchantName,
t1.member_id as memberId,
t1.STATUS as status,
t1.nick_name as nickName,
@@ -207,12 +209,35 @@
FROM
member_basic_info t1
JOIN member_wallet_info t2 ON t1.member_id = t2.member_id and t2.del_flag = '0'
JOIN pile_merchant_info t3 ON t1.merchant_id = t3.id and t3.del_flag = '0'
where
t1.del_flag = '0'
<if test="dto.mobileNumber != null and dto.mobileNumber != ''">and t1.mobile_number like '%${dto.mobileNumber}%'</if>
<if test="dto.nickName != null and dto.nickName != ''">and t1.nick_name like '%${dto.nickName}%'</if>
<if test="dto.memberId != null and dto.memberId != ''">and t1.member_id like '%${dto.memberId}%'</if>
<if test="dto.merchantId != null and dto.merchantId != ''">and t1.merchant_id like '%${dto.merchantId}%'</if>
<if test="dto.merchantDeptIds != null and dto.merchantDeptIds.size() != 0">
and t3.dept_id in
<foreach collection="dto.merchantDeptIds" item="deptId" open="(" separator="," close=")">
#{deptId,jdbcType=VARCHAR}
</foreach>
</if>
</select>
<select id="getMerchantListByAuth" resultType="com.jsowell.pile.vo.base.MerchantInfoVO">
SELECT DISTINCT
( t1.merchant_id ) as merchantId,
t2.merchant_name as merchantName
FROM
member_basic_info t1
JOIN pile_merchant_info t2 ON t1.merchant_id = t2.id and t1.del_flag = '0'
<where>
<if test="deptIds != null and deptIds.size() != 0">
t2.dept_id in
<foreach collection="deptIds" item="deptid" open="(" separator="," close=")">
#{deptid,jdbcType=VARCHAR}
</foreach>
</if>
</where>
</select>
</mapper>