...
|
...
|
@@ -37,6 +37,7 @@ |
|
|
from union_share_user usu
|
|
|
<if test="identityStatus != null">
|
|
|
left join union_share_user_identity_card usui on usu.uid = usui.uid
|
|
|
and usui.id =(select max(id) from union_share_user_identity_card where uid = usu.uid)
|
|
|
</if>
|
|
|
where usu.status=1
|
|
|
<if test="uid!=null" >
|
...
|
...
|
@@ -49,18 +50,23 @@ |
|
|
and usu.special_status = #{specialStatus,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
<if test="identityStatus != null" >
|
|
|
and usui.status = #{identityStatus,jdbcType=INTEGER}
|
|
|
and usui.status = 1
|
|
|
<if test="identityStatus == 1">
|
|
|
and usui.status = #{identityStatus,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
<if test="identityStatus == 0">
|
|
|
and usui.status = #{identityStatus,jdbcType=INTEGER} or usui.status is null
|
|
|
</if>
|
|
|
</if>
|
|
|
</select>
|
|
|
<select id="selectByCondition" resultType="com.yoho.service.model.union.response.UnionShareUserRspBo" parameterType="com.yoho.service.model.union.request.UnionShareUserReqBO" >
|
|
|
select id, uid, union_type unionType, update_time updateTime,create_time createTime,status,apply_id applyId,special_status specialStatus,cps_activity_id cpsActivityId
|
|
|
select usu.id, usu.uid, usu.union_type unionType, usu.update_time updateTime,usu.create_time createTime,usu.status,usu.apply_id applyId,usu.special_status specialStatus,usu.cps_activity_id cpsActivityId
|
|
|
<if test="identityStatus != null">
|
|
|
,usui.status as identityStatus
|
|
|
</if>
|
|
|
from union_share_user usu
|
|
|
<if test="identityStatus != null">
|
|
|
left join union_share_user_identity_card usui on usu.uid = usui.uid
|
|
|
and usui.id =(select max(id) from union_share_user_identity_card where uid = usu.uid)
|
|
|
</if>
|
|
|
where usu.status=1
|
|
|
<if test="uid != null" >
|
...
|
...
|
@@ -73,8 +79,12 @@ |
|
|
and usu.special_status = #{specialStatus,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
<if test="identityStatus != null" >
|
|
|
and usui.status = #{identityStatus,jdbcType=INTEGER}
|
|
|
and usui.status = 1
|
|
|
<if test="identityStatus == 1">
|
|
|
and usui.status = #{identityStatus,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
<if test="identityStatus == 0">
|
|
|
and usui.status = #{identityStatus,jdbcType=INTEGER} or usui.status is null
|
|
|
</if>
|
|
|
</if>
|
|
|
order by usu.create_time desc
|
|
|
limit #{start},#{size}
|
...
|
...
|
|