|
@@ -396,7 +396,7 @@
|
|
|
|
|
|
|
|
<!-- 保存 商户用户信息 instance add by wuxw 2018-07-03 -->
|
|
<!-- 保存 商户用户信息 instance add by wuxw 2018-07-03 -->
|
|
|
<insert id="saveStoreUserInstance" parameterType="Map">
|
|
<insert id="saveStoreUserInstance" parameterType="Map">
|
|
|
- insert into p_store_user(store_user_id,b_id,store_id,user_id,rel_cd,status_cd)
|
|
|
|
|
|
|
+ insert into s_store_user(store_user_id,b_id,store_id,user_id,rel_cd,status_cd)
|
|
|
select sc.store_user_id,sc.b_id,sc.store_id,sc.user_id,sc.rel_cd,'0'
|
|
select sc.store_user_id,sc.b_id,sc.store_id,sc.user_id,sc.rel_cd,'0'
|
|
|
from business_store_user sc
|
|
from business_store_user sc
|
|
|
where sc.operate = 'ADD' and sc.b_id=#{bId}
|
|
where sc.operate = 'ADD' and sc.b_id=#{bId}
|
|
@@ -405,7 +405,7 @@
|
|
|
<!-- 查询商户证件信息 add by wuxw 2018-07-03 -->
|
|
<!-- 查询商户证件信息 add by wuxw 2018-07-03 -->
|
|
|
<select id="getStoreUser" parameterType="Map" resultType="Map">
|
|
<select id="getStoreUser" parameterType="Map" resultType="Map">
|
|
|
select sc.store_user_id,sc.b_id,sc.store_id,sc.user_id,sc.rel_cd,sc.status_cd
|
|
select sc.store_user_id,sc.b_id,sc.store_id,sc.user_id,sc.rel_cd,sc.status_cd
|
|
|
- from p_store_user sc
|
|
|
|
|
|
|
+ from s_store_user sc
|
|
|
where 1=1
|
|
where 1=1
|
|
|
<if test="statusCd != null and statusCd != ''">
|
|
<if test="statusCd != null and statusCd != ''">
|
|
|
and sc.status_cd = #{statusCd}
|
|
and sc.status_cd = #{statusCd}
|
|
@@ -420,7 +420,7 @@
|
|
|
|
|
|
|
|
<!-- 修改商户用户信息 add by wuxw 2018-07-03 -->
|
|
<!-- 修改商户用户信息 add by wuxw 2018-07-03 -->
|
|
|
<update id="updateStoreUserInstance" parameterType="Map">
|
|
<update id="updateStoreUserInstance" parameterType="Map">
|
|
|
- update p_store_user sc set sc.status_cd = #{statusCd}
|
|
|
|
|
|
|
+ update s_store_user sc set sc.status_cd = #{statusCd}
|
|
|
<if test="newBId != null and newBId != ''">
|
|
<if test="newBId != null and newBId != ''">
|
|
|
,sc.b_id = #{newBId}
|
|
,sc.b_id = #{newBId}
|
|
|
</if>
|
|
</if>
|