解绑鉴权卡

This commit is contained in:
2023-11-28 16:39:39 +08:00
parent 3928f4d555
commit a24398fa44
6 changed files with 22 additions and 20 deletions

View File

@@ -155,7 +155,7 @@
FROM
order_invoice_record t1
LEFT JOIN pile_merchant_info t2 ON t1.merchant_id = t2.id and t1.del_flag = '0'
where 1 = 1
where t1.del_flag = '0'
<if test="dto.merchantDeptIds != null and dto.merchantDeptIds.size() != 0">
and t2.dept_id in
<foreach collection="dto.merchantDeptIds" item="deptId" open="(" separator="," close=")">

View File

@@ -149,7 +149,7 @@
<include refid="Base_Column_List"/>
from
pile_auth_card
where 1 = 1
where del_flag = '0'
<if test="status != null and status != ''">
and status = #{status,jdbcType=VARCHAR}
</if>

View File

@@ -73,16 +73,17 @@
select
<include refid="Base_Column_List"/>
from pile_member_relation
where 1 = 1
<if test="pileSn != null and pileSn != ''">
and pile_sn = #{pileSn,jdbcType=VARCHAR}
</if>
<if test="memberId != null and memberId != ''">
and member_id = #{memberId,jdbcType=VARCHAR}
</if>
<if test="type != null and type != ''">
and type = #{type,jdbcType=VARCHAR}
</if>
<where>
<if test="pileSn != null and pileSn != ''">
and pile_sn = #{pileSn,jdbcType=VARCHAR}
</if>
<if test="memberId != null and memberId != ''">
and member_id = #{memberId,jdbcType=VARCHAR}
</if>
<if test="type != null and type != ''">
and type = #{type,jdbcType=VARCHAR}
</if>
</where>
</select>
<delete id="deleteRelationByIds">

View File

@@ -365,7 +365,7 @@
dept_id as deptId
from
pile_merchant_info
where 1 = 1
where del_flag = '0'
<if test="appId != null and appId != ''">
and app_id = #{appId,jdbcType=VARCHAR}
</if>
@@ -386,10 +386,8 @@
t1.create_time AS createTime
FROM
pile_merchant_info t1
left JOIN adapay_member_account t2 ON t1.id = t2.merchant_id
AND t1.del_flag = '0'
AND t2.del_flag = '0'
where 1 = 1
left JOIN adapay_member_account t2 ON t1.id = t2.merchant_id AND t2.del_flag = '0'
where t1.del_flag = '0'
<if test="dto.deptIds != null and dto.deptIds.size() != 0">
and t1.dept_id in
<foreach collection="dto.deptIds" item="deptId" open="(" separator="," close=")">