|
@@ -48,7 +48,7 @@
|
|
FROM USER u
|
|
FROM USER u
|
|
LEFT JOIN cm_mall_operation_user cu ON cu.userID = u.userID
|
|
LEFT JOIN cm_mall_operation_user cu ON cu.userID = u.userID
|
|
WHERE u.bindMobile = #{mobile}
|
|
WHERE u.bindMobile = #{mobile}
|
|
- and u.userIdentity in (1, 2, 3, 4,7)
|
|
|
|
|
|
+ and u.userIdentity in (1, 2, 3, 4, 7)
|
|
UNION
|
|
UNION
|
|
SELECT u.userID
|
|
SELECT u.userID
|
|
FROM USER u
|
|
FROM USER u
|
|
@@ -62,7 +62,8 @@
|
|
SELECT u.userID
|
|
SELECT u.userID
|
|
FROM USER u
|
|
FROM USER u
|
|
LEFT JOIN cm_mall_operation_user cu ON cu.userID = u.userID
|
|
LEFT JOIN cm_mall_operation_user cu ON cu.userID = u.userID
|
|
- WHERE u.bindMobile = #{mobile} and u.userOrganizeID != 0
|
|
|
|
|
|
+ WHERE u.bindMobile = #{mobile}
|
|
|
|
+ and u.userOrganizeID != 0
|
|
and u.userIdentity in (1, 2, 3, 4)
|
|
and u.userIdentity in (1, 2, 3, 4)
|
|
UNION
|
|
UNION
|
|
SELECT u.userID
|
|
SELECT u.userID
|
|
@@ -70,7 +71,8 @@
|
|
LEFT JOIN cm_mall_operation_user cu ON cu.userID = u.userID
|
|
LEFT JOIN cm_mall_operation_user cu ON cu.userID = u.userID
|
|
WHERE cu.mobile = #{mobile}
|
|
WHERE cu.mobile = #{mobile}
|
|
AND cu.delFlag != 1
|
|
AND cu.delFlag != 1
|
|
- AND u.userIdentity IN (1, 2, 3, 4) and u.userOrganizeID != 0
|
|
|
|
|
|
+ AND u.userIdentity IN (1, 2, 3, 4)
|
|
|
|
+ and u.userOrganizeID != 0
|
|
LIMIT 1
|
|
LIMIT 1
|
|
</select>
|
|
</select>
|
|
<select id="getUserIdByOrganize" resultType="java.lang.Integer">
|
|
<select id="getUserIdByOrganize" resultType="java.lang.Integer">
|
|
@@ -78,7 +80,7 @@
|
|
FROM USER u
|
|
FROM USER u
|
|
LEFT JOIN cm_mall_operation_user cu ON cu.userID = u.userID
|
|
LEFT JOIN cm_mall_operation_user cu ON cu.userID = u.userID
|
|
WHERE u.userOrganizeID = #{organizeId}
|
|
WHERE u.userOrganizeID = #{organizeId}
|
|
- and u.bindMobile = #{mobile}
|
|
|
|
|
|
+ and u.bindMobile = #{mobile}
|
|
and u.userIdentity in (1, 2, 3, 4)
|
|
and u.userIdentity in (1, 2, 3, 4)
|
|
UNION
|
|
UNION
|
|
SELECT u.userID
|
|
SELECT u.userID
|
|
@@ -91,7 +93,11 @@
|
|
LIMIT 1
|
|
LIMIT 1
|
|
</select>
|
|
</select>
|
|
<select id="getServiceProvider" resultType="com.caimei365.user.model.vo.UserLoginVo">
|
|
<select id="getServiceProvider" resultType="com.caimei365.user.model.vo.UserLoginVo">
|
|
- SELECT serviceProviderID as serviceProviderId, status as operationStatus FROM serviceprovider WHERE contractMobile = #{mobile} and organizeId = 4 limit 1
|
|
|
|
|
|
+ SELECT serviceProviderID as serviceProviderId, status as operationStatus
|
|
|
|
+ FROM serviceprovider
|
|
|
|
+ WHERE contractMobile = #{mobile}
|
|
|
|
+ and organizeId = 4
|
|
|
|
+ limit 1
|
|
</select>
|
|
</select>
|
|
<select id="getUserIdByOrganizeStatus" resultType="com.caimei365.user.model.vo.UserLoginVo">
|
|
<select id="getUserIdByOrganizeStatus" resultType="com.caimei365.user.model.vo.UserLoginVo">
|
|
SELECT userId, userIdentity, (select status from club where userId = USER.userId limit 1) as clubStatus
|
|
SELECT userId, userIdentity, (select status from club where userId = USER.userId limit 1) as clubStatus
|
|
@@ -128,7 +134,8 @@
|
|
<select id="getOrganizeOperationIdByMobile" resultType="java.lang.Integer">
|
|
<select id="getOrganizeOperationIdByMobile" resultType="java.lang.Integer">
|
|
select id
|
|
select id
|
|
from cm_mall_operation_user
|
|
from cm_mall_operation_user
|
|
- where mobile = #{mobile} and userOrganizeID = #{organizeId}
|
|
|
|
|
|
+ where mobile = #{mobile}
|
|
|
|
+ and userOrganizeID = #{organizeId}
|
|
and delFlag = '0'
|
|
and delFlag = '0'
|
|
limit 1
|
|
limit 1
|
|
</select>
|
|
</select>
|
|
@@ -148,12 +155,12 @@
|
|
where townID = #{townID}
|
|
where townID = #{townID}
|
|
</select>
|
|
</select>
|
|
<select id="getUserByUserId" resultType="com.caimei365.user.model.vo.UserVo">
|
|
<select id="getUserByUserId" resultType="com.caimei365.user.model.vo.UserVo">
|
|
- select userID as userId,
|
|
|
|
- registerUserTypeID as registerUserTypeId,
|
|
|
|
|
|
+ select userID as userId,
|
|
|
|
+ registerUserTypeID as registerUserTypeId,
|
|
source,
|
|
source,
|
|
- clubID as clubId,
|
|
|
|
- shopID as shopId,
|
|
|
|
- serviceProviderID as serviceProviderId,
|
|
|
|
|
|
+ clubID as clubId,
|
|
|
|
+ shopID as shopId,
|
|
|
|
+ serviceProviderID as serviceProviderId,
|
|
name,
|
|
name,
|
|
userName,
|
|
userName,
|
|
email,
|
|
email,
|
|
@@ -168,7 +175,7 @@
|
|
auditStatus,
|
|
auditStatus,
|
|
agreeFlag,
|
|
agreeFlag,
|
|
registerTime,
|
|
registerTime,
|
|
- registerIP as registerIp,
|
|
|
|
|
|
+ registerIP as registerIp,
|
|
guideFlag,
|
|
guideFlag,
|
|
validFlag,
|
|
validFlag,
|
|
userBeans,
|
|
userBeans,
|
|
@@ -224,7 +231,10 @@
|
|
</if>
|
|
</if>
|
|
</select>
|
|
</select>
|
|
<select id="getByMobile" resultType="String">
|
|
<select id="getByMobile" resultType="String">
|
|
- select bindMobile from user where userIdentity=#{userIdentity} and userId=#{userId}
|
|
|
|
|
|
+ select bindMobile
|
|
|
|
+ from user
|
|
|
|
+ where userIdentity = #{userIdentity}
|
|
|
|
+ and userId = #{userId}
|
|
</select>
|
|
</select>
|
|
<select id="getByUserCount" resultType="java.lang.Integer">
|
|
<select id="getByUserCount" resultType="java.lang.Integer">
|
|
SELECT count(1) from user
|
|
SELECT count(1) from user
|
|
@@ -235,9 +245,11 @@
|
|
= #{userID}
|
|
= #{userID}
|
|
</if>
|
|
</if>
|
|
<if test="userID.toUpperCase().indexOf('=')!=-1">
|
|
<if test="userID.toUpperCase().indexOf('=')!=-1">
|
|
- <if test="userID.toUpperCase().indexOf('NOT')!=-1"> not </if>
|
|
|
|
- <if test="userID.toUpperCase().indexOf('IN')!=-1"> in </if>
|
|
|
|
- <foreach item="userIDIn" collection="userID.substring(userID.toUpperCase().indexOf('=')+1,userID.length()).trim().split(',')" open="(" separator="," close=")">
|
|
|
|
|
|
+ <if test="userID.toUpperCase().indexOf('NOT')!=-1">not</if>
|
|
|
|
+ <if test="userID.toUpperCase().indexOf('IN')!=-1">in</if>
|
|
|
|
+ <foreach item="userIDIn"
|
|
|
|
+ collection="userID.substring(userID.toUpperCase().indexOf('=')+1,userID.length()).trim().split(',')"
|
|
|
|
+ open="(" separator="," close=")">
|
|
#{userIDIn}
|
|
#{userIDIn}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
@@ -248,77 +260,83 @@
|
|
= #{userOrganizeID}
|
|
= #{userOrganizeID}
|
|
</if>
|
|
</if>
|
|
<if test="userOrganizeID.toUpperCase().indexOf('=')!=-1">
|
|
<if test="userOrganizeID.toUpperCase().indexOf('=')!=-1">
|
|
- <if test="userOrganizeID.toUpperCase().indexOf('NOT')!=-1"> not </if>
|
|
|
|
- <if test="userOrganizeID.toUpperCase().indexOf('IN')!=-1"> in </if>
|
|
|
|
- <foreach item="typeIn" collection="userOrganizeID.substring(userOrganizeID.toUpperCase().indexOf('=')+1,userOrganizeID.length()).trim().split(',')" open="(" separator="," close=")">
|
|
|
|
|
|
+ <if test="userOrganizeID.toUpperCase().indexOf('NOT')!=-1">not</if>
|
|
|
|
+ <if test="userOrganizeID.toUpperCase().indexOf('IN')!=-1">in</if>
|
|
|
|
+ <foreach item="typeIn"
|
|
|
|
+ collection="userOrganizeID.substring(userOrganizeID.toUpperCase().indexOf('=')+1,userOrganizeID.length()).trim().split(',')"
|
|
|
|
+ open="(" separator="," close=")">
|
|
#{typeIn}
|
|
#{typeIn}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
- <if test="account != null and account != ''"> and user.account = #{account}</if>
|
|
|
|
- <if test="mobile != null and mobile != ''"> and user.mobile = #{mobile}</if>
|
|
|
|
- <if test="bindMobile != null and bindMobile != ''"> and user.bindMobile = #{bindMobile}</if>
|
|
|
|
- <if test="userPermission != null "> and user.userPermission = #{userPermission}</if>
|
|
|
|
|
|
+ <if test="account != null and account != ''">and user.account = #{account}</if>
|
|
|
|
+ <if test="mobile != null and mobile != ''">and user.mobile = #{mobile}</if>
|
|
|
|
+ <if test="bindMobile != null and bindMobile != ''">and user.bindMobile = #{bindMobile}</if>
|
|
|
|
+ <if test="userPermission != null ">and user.userPermission = #{userPermission}</if>
|
|
<if test="userIdentity != null and userIdentity != ''">
|
|
<if test="userIdentity != null and userIdentity != ''">
|
|
and user.userIdentity
|
|
and user.userIdentity
|
|
<if test="userIdentity.toUpperCase().indexOf('=')==-1">
|
|
<if test="userIdentity.toUpperCase().indexOf('=')==-1">
|
|
= #{userIdentity}
|
|
= #{userIdentity}
|
|
</if>
|
|
</if>
|
|
<if test="userIdentity.toUpperCase().indexOf('=')!=-1">
|
|
<if test="userIdentity.toUpperCase().indexOf('=')!=-1">
|
|
- <if test="userIdentity.toUpperCase().indexOf('NOT')!=-1"> not </if>
|
|
|
|
- <if test="userIdentity.toUpperCase().indexOf('IN')!=-1"> in </if>
|
|
|
|
- <foreach item="typeIn" collection="userIdentity.substring(userIdentity.toUpperCase().indexOf('=')+1,userIdentity.length()).trim().split(',')" open="(" separator="," close=")">
|
|
|
|
|
|
+ <if test="userIdentity.toUpperCase().indexOf('NOT')!=-1">not</if>
|
|
|
|
+ <if test="userIdentity.toUpperCase().indexOf('IN')!=-1">in</if>
|
|
|
|
+ <foreach item="typeIn"
|
|
|
|
+ collection="userIdentity.substring(userIdentity.toUpperCase().indexOf('=')+1,userIdentity.length()).trim().split(',')"
|
|
|
|
+ open="(" separator="," close=")">
|
|
#{typeIn}
|
|
#{typeIn}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
- <if test="email != null and email != ''"> and user.email = #{email}</if>
|
|
|
|
- <if test="userName != null and userName != ''"> and user.userName like concat('%', #{userName}, '%')</if>
|
|
|
|
- <if test="realName != null and realName != ''"> and user.realName like concat('%', #{realName}, '%')</if>
|
|
|
|
- <if test="source != null and source != ''"> and user.source = #{source}</if>
|
|
|
|
- <if test="image != null and image != ''"> and user.image = #{image}</if>
|
|
|
|
- <if test="password != null and password != ''"> and user.password = #{password}</if>
|
|
|
|
- <if test="name != null and name != ''"> and user.name like concat('%', #{name}, '%')</if>
|
|
|
|
|
|
+ <if test="email != null and email != ''">and user.email = #{email}</if>
|
|
|
|
+ <if test="userName != null and userName != ''">and user.userName like concat('%', #{userName}, '%')</if>
|
|
|
|
+ <if test="realName != null and realName != ''">and user.realName like concat('%', #{realName}, '%')</if>
|
|
|
|
+ <if test="source != null and source != ''">and user.source = #{source}</if>
|
|
|
|
+ <if test="image != null and image != ''">and user.image = #{image}</if>
|
|
|
|
+ <if test="password != null and password != ''">and user.password = #{password}</if>
|
|
|
|
+ <if test="name != null and name != ''">and user.name like concat('%', #{name}, '%')</if>
|
|
<if test="registerUserTypeID != null and registerUserTypeID != ''">
|
|
<if test="registerUserTypeID != null and registerUserTypeID != ''">
|
|
and user.registerUserTypeID
|
|
and user.registerUserTypeID
|
|
<if test="registerUserTypeID.toUpperCase().indexOf('=')==-1">
|
|
<if test="registerUserTypeID.toUpperCase().indexOf('=')==-1">
|
|
= #{registerUserTypeID}
|
|
= #{registerUserTypeID}
|
|
</if>
|
|
</if>
|
|
<if test="registerUserTypeID.toUpperCase().indexOf('=')!=-1">
|
|
<if test="registerUserTypeID.toUpperCase().indexOf('=')!=-1">
|
|
- <if test="registerUserTypeID.toUpperCase().indexOf('NOT')!=-1"> not </if>
|
|
|
|
- <if test="registerUserTypeID.toUpperCase().indexOf('IN')!=-1"> in </if>
|
|
|
|
- <foreach item="typeIn" collection="registerUserTypeID.substring(registerUserTypeID.toUpperCase().indexOf('=')+1,registerUserTypeID.length()).trim().split(',')" open="(" separator="," close=")">
|
|
|
|
|
|
+ <if test="registerUserTypeID.toUpperCase().indexOf('NOT')!=-1">not</if>
|
|
|
|
+ <if test="registerUserTypeID.toUpperCase().indexOf('IN')!=-1">in</if>
|
|
|
|
+ <foreach item="typeIn"
|
|
|
|
+ collection="registerUserTypeID.substring(registerUserTypeID.toUpperCase().indexOf('=')+1,registerUserTypeID.length()).trim().split(',')"
|
|
|
|
+ open="(" separator="," close=")">
|
|
#{typeIn}
|
|
#{typeIn}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
- <if test="manufacturerStatus != null "> and user.manufacturerStatus = #{manufacturerStatus}</if>
|
|
|
|
- <if test="shopID != null "> and user.shopID = #{shopID}</if>
|
|
|
|
- <if test="auditStatus != null and auditStatus != ''"> and user.auditStatus = #{auditStatus}</if>
|
|
|
|
- <if test="auditTime != null and auditTime != ''"> and user.auditTime = #{auditTime}</if>
|
|
|
|
- <if test="auditNote != null and auditNote != ''"> and user.auditNote = #{auditNote}</if>
|
|
|
|
- <if test="registerTime != null and registerTime != ''"> and user.registerTime = #{registerTime}</if>
|
|
|
|
- <if test="registerIP != null and registerIP != ''"> and user.registerIP = #{registerIP}</if>
|
|
|
|
- <if test="ipAddress != null and ipAddress != ''"> and user.ipAddress = #{ipAddress}</if>
|
|
|
|
- <if test="loginTime != null and loginTime != ''"> and user.loginTime = #{loginTime}</if>
|
|
|
|
- <if test="loginIP != null and loginIP != ''"> and user.loginIP = #{loginIP}</if>
|
|
|
|
- <if test="validFlag != null and validFlag != ''"> and user.validFlag = #{validFlag}</if>
|
|
|
|
- <if test="clubStatus != null "> and user.clubStatus = #{clubStatus}</if>
|
|
|
|
- <if test="clubID != null "> and user.clubID = #{clubID}</if>
|
|
|
|
- <if test="agreeFlag != null and agreeFlag != ''"> and user.agreeFlag = #{agreeFlag}</if>
|
|
|
|
- <if test="serviceProviderStatus != null "> and user.serviceProviderStatus = #{serviceProviderStatus}</if>
|
|
|
|
- <if test="serviceProviderID != null "> and user.serviceProviderID = #{serviceProviderID}</if>
|
|
|
|
- <if test="userMoney != null "> and user.userMoney = #{userMoney}</if>
|
|
|
|
- <if test="ableUserMoney != null "> and user.ableUserMoney = #{ableUserMoney}</if>
|
|
|
|
- <if test="logoffTime != null and logoffTime != ''"> and user.logoffTime = #{logoffTime}</if>
|
|
|
|
- <if test="appKey != null and appKey != ''"> and user.appKey = #{appKey}</if>
|
|
|
|
- <if test="appSecret != null and appSecret != ''"> and user.appSecret = #{appSecret}</if>
|
|
|
|
- <if test="scanFlag != null "> and user.scanFlag = #{scanFlag}</if>
|
|
|
|
- <if test="userBeans != null "> and user.userBeans = #{userBeans}</if>
|
|
|
|
- <if test="guideFlag != null "> and user.guideFlag = #{guideFlag}</if>
|
|
|
|
- <if test="loginFailTime != null "> and user.loginFailTime = #{loginFailTime}</if>
|
|
|
|
- <if test="tipStatus != null and tipStatus != ''"> and user.tipStatus = #{tipStatus}</if>
|
|
|
|
- <if test="onlineMoney != null "> and user.onlineMoney = #{onlineMoney}</if>
|
|
|
|
|
|
+ <if test="manufacturerStatus != null ">and user.manufacturerStatus = #{manufacturerStatus}</if>
|
|
|
|
+ <if test="shopID != null ">and user.shopID = #{shopID}</if>
|
|
|
|
+ <if test="auditStatus != null and auditStatus != ''">and user.auditStatus = #{auditStatus}</if>
|
|
|
|
+ <if test="auditTime != null and auditTime != ''">and user.auditTime = #{auditTime}</if>
|
|
|
|
+ <if test="auditNote != null and auditNote != ''">and user.auditNote = #{auditNote}</if>
|
|
|
|
+ <if test="registerTime != null and registerTime != ''">and user.registerTime = #{registerTime}</if>
|
|
|
|
+ <if test="registerIP != null and registerIP != ''">and user.registerIP = #{registerIP}</if>
|
|
|
|
+ <if test="ipAddress != null and ipAddress != ''">and user.ipAddress = #{ipAddress}</if>
|
|
|
|
+ <if test="loginTime != null and loginTime != ''">and user.loginTime = #{loginTime}</if>
|
|
|
|
+ <if test="loginIP != null and loginIP != ''">and user.loginIP = #{loginIP}</if>
|
|
|
|
+ <if test="validFlag != null and validFlag != ''">and user.validFlag = #{validFlag}</if>
|
|
|
|
+ <if test="clubStatus != null ">and user.clubStatus = #{clubStatus}</if>
|
|
|
|
+ <if test="clubID != null ">and user.clubID = #{clubID}</if>
|
|
|
|
+ <if test="agreeFlag != null and agreeFlag != ''">and user.agreeFlag = #{agreeFlag}</if>
|
|
|
|
+ <if test="serviceProviderStatus != null ">and user.serviceProviderStatus = #{serviceProviderStatus}</if>
|
|
|
|
+ <if test="serviceProviderID != null ">and user.serviceProviderID = #{serviceProviderID}</if>
|
|
|
|
+ <if test="userMoney != null ">and user.userMoney = #{userMoney}</if>
|
|
|
|
+ <if test="ableUserMoney != null ">and user.ableUserMoney = #{ableUserMoney}</if>
|
|
|
|
+ <if test="logoffTime != null and logoffTime != ''">and user.logoffTime = #{logoffTime}</if>
|
|
|
|
+ <if test="appKey != null and appKey != ''">and user.appKey = #{appKey}</if>
|
|
|
|
+ <if test="appSecret != null and appSecret != ''">and user.appSecret = #{appSecret}</if>
|
|
|
|
+ <if test="scanFlag != null ">and user.scanFlag = #{scanFlag}</if>
|
|
|
|
+ <if test="userBeans != null ">and user.userBeans = #{userBeans}</if>
|
|
|
|
+ <if test="guideFlag != null ">and user.guideFlag = #{guideFlag}</if>
|
|
|
|
+ <if test="loginFailTime != null ">and user.loginFailTime = #{loginFailTime}</if>
|
|
|
|
+ <if test="tipStatus != null and tipStatus != ''">and user.tipStatus = #{tipStatus}</if>
|
|
|
|
+ <if test="onlineMoney != null ">and user.onlineMoney = #{onlineMoney}</if>
|
|
</where>
|
|
</where>
|
|
group by user.userID
|
|
group by user.userID
|
|
order by user.loginTime desc
|
|
order by user.loginTime desc
|
|
@@ -432,7 +450,9 @@
|
|
<if test="image != null and image != ''">image = #{image},</if>
|
|
<if test="image != null and image != ''">image = #{image},</if>
|
|
<if test="password != null and password != ''">password = #{password},</if>
|
|
<if test="password != null and password != ''">password = #{password},</if>
|
|
<if test="name != null and name != ''">name = #{name},</if>
|
|
<if test="name != null and name != ''">name = #{name},</if>
|
|
- <if test="registerUserTypeID != null and registerUserTypeID != ''">registerUserTypeID = #{registerUserTypeID},</if>
|
|
|
|
|
|
+ <if test="registerUserTypeID != null and registerUserTypeID != ''">registerUserTypeID =
|
|
|
|
+ #{registerUserTypeID},
|
|
|
|
+ </if>
|
|
<if test="manufacturerStatus != null">manufacturerStatus = #{manufacturerStatus},</if>
|
|
<if test="manufacturerStatus != null">manufacturerStatus = #{manufacturerStatus},</if>
|
|
<if test="shopID != null">shopID = #{shopID},</if>
|
|
<if test="shopID != null">shopID = #{shopID},</if>
|
|
<if test="auditStatus != null and auditStatus != ''">auditStatus = #{auditStatus},</if>
|
|
<if test="auditStatus != null and auditStatus != ''">auditStatus = #{auditStatus},</if>
|
|
@@ -473,94 +493,93 @@
|
|
|
|
|
|
|
|
|
|
<resultMap type="CmUser" id="UserResult">
|
|
<resultMap type="CmUser" id="UserResult">
|
|
- <result property="userID" column="userID" />
|
|
|
|
- <result property="userOrganizeID" column="userOrganizeID" />
|
|
|
|
- <result property="account" column="account" />
|
|
|
|
- <result property="mobile" column="mobile" />
|
|
|
|
- <result property="bindMobile" column="bindMobile" />
|
|
|
|
- <result property="userPermission" column="userPermission" />
|
|
|
|
- <result property="userIdentity" column="userIdentity" />
|
|
|
|
- <result property="email" column="email" />
|
|
|
|
- <result property="userName" column="userName" />
|
|
|
|
- <result property="realName" column="realName" />
|
|
|
|
- <result property="source" column="source" />
|
|
|
|
- <result property="image" column="image" />
|
|
|
|
- <result property="password" column="password" />
|
|
|
|
- <result property="name" column="name" />
|
|
|
|
- <result property="registerUserTypeID" column="registerUserTypeID" />
|
|
|
|
- <result property="manufacturerStatus" column="manufacturerStatus" />
|
|
|
|
- <result property="shopID" column="shopID" />
|
|
|
|
- <result property="auditStatus" column="auditStatus" />
|
|
|
|
- <result property="auditTime" column="auditTime" />
|
|
|
|
- <result property="auditNote" column="auditNote" />
|
|
|
|
- <result property="registerTime" column="registerTime" />
|
|
|
|
- <result property="registerIP" column="registerIP" />
|
|
|
|
- <result property="ipAddress" column="ipAddress" />
|
|
|
|
- <result property="loginTime" column="loginTime" />
|
|
|
|
- <result property="loginIP" column="loginIP" />
|
|
|
|
- <result property="validFlag" column="validFlag" />
|
|
|
|
- <result property="clubStatus" column="clubStatus" />
|
|
|
|
- <result property="clubID" column="clubID" />
|
|
|
|
- <result property="agreeFlag" column="agreeFlag" />
|
|
|
|
- <result property="serviceProviderStatus" column="serviceProviderStatus" />
|
|
|
|
- <result property="serviceProviderID" column="serviceProviderID" />
|
|
|
|
- <result property="userMoney" column="userMoney" />
|
|
|
|
- <result property="ableUserMoney" column="ableUserMoney" />
|
|
|
|
- <result property="logoffTime" column="logoffTime" />
|
|
|
|
- <result property="appKey" column="appKey" />
|
|
|
|
- <result property="appSecret" column="appSecret" />
|
|
|
|
- <result property="scanFlag" column="scanFlag" />
|
|
|
|
- <result property="userBeans" column="userBeans" />
|
|
|
|
- <result property="guideFlag" column="guideFlag" />
|
|
|
|
- <result property="loginFailTime" column="loginFailTime" />
|
|
|
|
- <result property="tipStatus" column="tipStatus" />
|
|
|
|
- <result property="onlineMoney" column="onlineMoney" />
|
|
|
|
|
|
+ <result property="userID" column="userID"/>
|
|
|
|
+ <result property="userOrganizeID" column="userOrganizeID"/>
|
|
|
|
+ <result property="account" column="account"/>
|
|
|
|
+ <result property="mobile" column="mobile"/>
|
|
|
|
+ <result property="bindMobile" column="bindMobile"/>
|
|
|
|
+ <result property="userPermission" column="userPermission"/>
|
|
|
|
+ <result property="userIdentity" column="userIdentity"/>
|
|
|
|
+ <result property="email" column="email"/>
|
|
|
|
+ <result property="userName" column="userName"/>
|
|
|
|
+ <result property="realName" column="realName"/>
|
|
|
|
+ <result property="source" column="source"/>
|
|
|
|
+ <result property="image" column="image"/>
|
|
|
|
+ <result property="password" column="password"/>
|
|
|
|
+ <result property="name" column="name"/>
|
|
|
|
+ <result property="registerUserTypeID" column="registerUserTypeID"/>
|
|
|
|
+ <result property="manufacturerStatus" column="manufacturerStatus"/>
|
|
|
|
+ <result property="shopID" column="shopID"/>
|
|
|
|
+ <result property="auditStatus" column="auditStatus"/>
|
|
|
|
+ <result property="auditTime" column="auditTime"/>
|
|
|
|
+ <result property="auditNote" column="auditNote"/>
|
|
|
|
+ <result property="registerTime" column="registerTime"/>
|
|
|
|
+ <result property="registerIP" column="registerIP"/>
|
|
|
|
+ <result property="ipAddress" column="ipAddress"/>
|
|
|
|
+ <result property="loginTime" column="loginTime"/>
|
|
|
|
+ <result property="loginIP" column="loginIP"/>
|
|
|
|
+ <result property="validFlag" column="validFlag"/>
|
|
|
|
+ <result property="clubStatus" column="clubStatus"/>
|
|
|
|
+ <result property="clubID" column="clubID"/>
|
|
|
|
+ <result property="agreeFlag" column="agreeFlag"/>
|
|
|
|
+ <result property="serviceProviderStatus" column="serviceProviderStatus"/>
|
|
|
|
+ <result property="serviceProviderID" column="serviceProviderID"/>
|
|
|
|
+ <result property="userMoney" column="userMoney"/>
|
|
|
|
+ <result property="ableUserMoney" column="ableUserMoney"/>
|
|
|
|
+ <result property="logoffTime" column="logoffTime"/>
|
|
|
|
+ <result property="appKey" column="appKey"/>
|
|
|
|
+ <result property="appSecret" column="appSecret"/>
|
|
|
|
+ <result property="scanFlag" column="scanFlag"/>
|
|
|
|
+ <result property="userBeans" column="userBeans"/>
|
|
|
|
+ <result property="guideFlag" column="guideFlag"/>
|
|
|
|
+ <result property="loginFailTime" column="loginFailTime"/>
|
|
|
|
+ <result property="tipStatus" column="tipStatus"/>
|
|
|
|
+ <result property="onlineMoney" column="onlineMoney"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectUserVo">
|
|
<sql id="selectUserVo">
|
|
- select
|
|
|
|
- user.userID,
|
|
|
|
- user.userOrganizeID,
|
|
|
|
- user.account,
|
|
|
|
- user.mobile,
|
|
|
|
- user.bindMobile,
|
|
|
|
- user.userPermission,
|
|
|
|
- user.userIdentity,
|
|
|
|
- user.email,
|
|
|
|
- user.userName,
|
|
|
|
- user.realName,
|
|
|
|
- user.source,
|
|
|
|
- user.image,
|
|
|
|
- user.password,
|
|
|
|
- user.name,
|
|
|
|
- user.registerUserTypeID,
|
|
|
|
- user.manufacturerStatus,
|
|
|
|
- user.shopID,
|
|
|
|
- user.auditStatus,
|
|
|
|
- user.auditTime,
|
|
|
|
- user.auditNote,
|
|
|
|
- user.registerTime,
|
|
|
|
- user.registerIP,
|
|
|
|
- user.ipAddress,
|
|
|
|
- user.loginTime,
|
|
|
|
- user.loginIP,
|
|
|
|
- user.validFlag,
|
|
|
|
- user.clubStatus,
|
|
|
|
- user.clubID,
|
|
|
|
- user.agreeFlag,
|
|
|
|
- user.serviceProviderStatus,
|
|
|
|
- user.serviceProviderID,
|
|
|
|
- ifnull(user.userMoney,0) AS userMoney,
|
|
|
|
- ifnull(user.ableUserMoney,0) AS ableUserMoney,
|
|
|
|
- user.logoffTime,
|
|
|
|
- user.appKey,
|
|
|
|
- user.appSecret,
|
|
|
|
- user.scanFlag,
|
|
|
|
- user.userBeans,
|
|
|
|
- user.guideFlag,
|
|
|
|
- user.loginFailTime,
|
|
|
|
- user.tipStatus,
|
|
|
|
- ifnull(user.onlineMoney,0) AS onlineMoney
|
|
|
|
|
|
+ select user.userID,
|
|
|
|
+ user.userOrganizeID,
|
|
|
|
+ user.account,
|
|
|
|
+ user.mobile,
|
|
|
|
+ user.bindMobile,
|
|
|
|
+ user.userPermission,
|
|
|
|
+ user.userIdentity,
|
|
|
|
+ user.email,
|
|
|
|
+ user.userName,
|
|
|
|
+ user.realName,
|
|
|
|
+ user.source,
|
|
|
|
+ user.image,
|
|
|
|
+ user.password,
|
|
|
|
+ user.name,
|
|
|
|
+ user.registerUserTypeID,
|
|
|
|
+ user.manufacturerStatus,
|
|
|
|
+ user.shopID,
|
|
|
|
+ user.auditStatus,
|
|
|
|
+ user.auditTime,
|
|
|
|
+ user.auditNote,
|
|
|
|
+ user.registerTime,
|
|
|
|
+ user.registerIP,
|
|
|
|
+ user.ipAddress,
|
|
|
|
+ user.loginTime,
|
|
|
|
+ user.loginIP,
|
|
|
|
+ user.validFlag,
|
|
|
|
+ user.clubStatus,
|
|
|
|
+ user.clubID,
|
|
|
|
+ user.agreeFlag,
|
|
|
|
+ user.serviceProviderStatus,
|
|
|
|
+ user.serviceProviderID,
|
|
|
|
+ ifnull(user.userMoney, 0) AS userMoney,
|
|
|
|
+ ifnull(user.ableUserMoney, 0) AS ableUserMoney,
|
|
|
|
+ user.logoffTime,
|
|
|
|
+ user.appKey,
|
|
|
|
+ user.appSecret,
|
|
|
|
+ user.scanFlag,
|
|
|
|
+ user.userBeans,
|
|
|
|
+ user.guideFlag,
|
|
|
|
+ user.loginFailTime,
|
|
|
|
+ user.tipStatus,
|
|
|
|
+ ifnull(user.onlineMoney, 0) AS onlineMoney
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="getByUser" parameterType="CmUser" resultMap="UserResult">
|
|
<select id="getByUser" parameterType="CmUser" resultMap="UserResult">
|
|
@@ -573,9 +592,11 @@
|
|
= #{userID}
|
|
= #{userID}
|
|
</if>
|
|
</if>
|
|
<if test="userID.toUpperCase().indexOf('=')!=-1">
|
|
<if test="userID.toUpperCase().indexOf('=')!=-1">
|
|
- <if test="userID.toUpperCase().indexOf('NOT')!=-1"> not </if>
|
|
|
|
- <if test="userID.toUpperCase().indexOf('IN')!=-1"> in </if>
|
|
|
|
- <foreach item="userIDIn" collection="userID.substring(userID.toUpperCase().indexOf('=')+1,userID.length()).trim().split(',')" open="(" separator="," close=")">
|
|
|
|
|
|
+ <if test="userID.toUpperCase().indexOf('NOT')!=-1">not</if>
|
|
|
|
+ <if test="userID.toUpperCase().indexOf('IN')!=-1">in</if>
|
|
|
|
+ <foreach item="userIDIn"
|
|
|
|
+ collection="userID.substring(userID.toUpperCase().indexOf('=')+1,userID.length()).trim().split(',')"
|
|
|
|
+ open="(" separator="," close=")">
|
|
#{userIDIn}
|
|
#{userIDIn}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
@@ -586,72 +607,78 @@
|
|
= #{userOrganizeID}
|
|
= #{userOrganizeID}
|
|
</if>
|
|
</if>
|
|
<if test="userOrganizeID.toUpperCase().indexOf('=')!=-1">
|
|
<if test="userOrganizeID.toUpperCase().indexOf('=')!=-1">
|
|
- <if test="userOrganizeID.toUpperCase().indexOf('NOT')!=-1"> not </if>
|
|
|
|
- <if test="userOrganizeID.toUpperCase().indexOf('IN')!=-1"> in </if>
|
|
|
|
- <foreach item="typeIn" collection="userOrganizeID.substring(userOrganizeID.toUpperCase().indexOf('=')+1,userOrganizeID.length()).trim().split(',')" open="(" separator="," close=")">
|
|
|
|
|
|
+ <if test="userOrganizeID.toUpperCase().indexOf('NOT')!=-1">not</if>
|
|
|
|
+ <if test="userOrganizeID.toUpperCase().indexOf('IN')!=-1">in</if>
|
|
|
|
+ <foreach item="typeIn"
|
|
|
|
+ collection="userOrganizeID.substring(userOrganizeID.toUpperCase().indexOf('=')+1,userOrganizeID.length()).trim().split(',')"
|
|
|
|
+ open="(" separator="," close=")">
|
|
#{typeIn}
|
|
#{typeIn}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
- <if test="account != null and account != ''"> and user.account = #{account}</if>
|
|
|
|
- <if test="mobile != null and mobile != ''"> and user.mobile = #{mobile}</if>
|
|
|
|
- <if test="bindMobile != null and bindMobile != ''"> and user.bindMobile = #{bindMobile}</if>
|
|
|
|
- <if test="userPermission != null "> and user.userPermission = #{userPermission}</if>
|
|
|
|
|
|
+ <if test="account != null and account != ''">and user.account = #{account}</if>
|
|
|
|
+ <if test="mobile != null and mobile != ''">and user.mobile = #{mobile}</if>
|
|
|
|
+ <if test="bindMobile != null and bindMobile != ''">and user.bindMobile = #{bindMobile}</if>
|
|
|
|
+ <if test="userPermission != null ">and user.userPermission = #{userPermission}</if>
|
|
<if test="userIdentity != null and userIdentity != ''">
|
|
<if test="userIdentity != null and userIdentity != ''">
|
|
and user.userIdentity
|
|
and user.userIdentity
|
|
<if test="userIdentity.toUpperCase().indexOf('=')==-1">
|
|
<if test="userIdentity.toUpperCase().indexOf('=')==-1">
|
|
= #{userIdentity}
|
|
= #{userIdentity}
|
|
</if>
|
|
</if>
|
|
<if test="userIdentity.toUpperCase().indexOf('=')!=-1">
|
|
<if test="userIdentity.toUpperCase().indexOf('=')!=-1">
|
|
- <if test="userIdentity.toUpperCase().indexOf('NOT')!=-1"> not </if>
|
|
|
|
- <if test="userIdentity.toUpperCase().indexOf('IN')!=-1"> in </if>
|
|
|
|
- <foreach item="typeIn" collection="userIdentity.substring(userIdentity.toUpperCase().indexOf('=')+1,userIdentity.length()).trim().split(',')" open="(" separator="," close=")">
|
|
|
|
|
|
+ <if test="userIdentity.toUpperCase().indexOf('NOT')!=-1">not</if>
|
|
|
|
+ <if test="userIdentity.toUpperCase().indexOf('IN')!=-1">in</if>
|
|
|
|
+ <foreach item="typeIn"
|
|
|
|
+ collection="userIdentity.substring(userIdentity.toUpperCase().indexOf('=')+1,userIdentity.length()).trim().split(',')"
|
|
|
|
+ open="(" separator="," close=")">
|
|
#{typeIn}
|
|
#{typeIn}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
- <if test="email != null and email != ''"> and user.email = #{email}</if>
|
|
|
|
- <if test="userName != null and userName != ''"> and user.userName like concat('%', #{userName}, '%')</if>
|
|
|
|
- <if test="realName != null and realName != ''"> and user.realName like concat('%', #{realName}, '%')</if>
|
|
|
|
- <if test="source != null and source != ''"> and user.source = #{source}</if>
|
|
|
|
- <if test="image != null and image != ''"> and user.image = #{image}</if>
|
|
|
|
- <if test="password != null and password != ''"> and user.password = #{password}</if>
|
|
|
|
- <if test="name != null and name != ''"> and user.name like concat('%', #{name}, '%')</if>
|
|
|
|
|
|
+ <if test="email != null and email != ''">and user.email = #{email}</if>
|
|
|
|
+ <if test="userName != null and userName != ''">and user.userName like concat('%', #{userName}, '%')</if>
|
|
|
|
+ <if test="realName != null and realName != ''">and user.realName like concat('%', #{realName}, '%')</if>
|
|
|
|
+ <if test="source != null and source != ''">and user.source = #{source}</if>
|
|
|
|
+ <if test="image != null and image != ''">and user.image = #{image}</if>
|
|
|
|
+ <if test="password != null and password != ''">and user.password = #{password}</if>
|
|
|
|
+ <if test="name != null and name != ''">and user.name like concat('%', #{name}, '%')</if>
|
|
<if test="registerUserTypeID != null and registerUserTypeID != ''">
|
|
<if test="registerUserTypeID != null and registerUserTypeID != ''">
|
|
and user.registerUserTypeID
|
|
and user.registerUserTypeID
|
|
<if test="registerUserTypeID.toUpperCase().indexOf('=')==-1">
|
|
<if test="registerUserTypeID.toUpperCase().indexOf('=')==-1">
|
|
= #{registerUserTypeID}
|
|
= #{registerUserTypeID}
|
|
</if>
|
|
</if>
|
|
<if test="registerUserTypeID.toUpperCase().indexOf('=')!=-1">
|
|
<if test="registerUserTypeID.toUpperCase().indexOf('=')!=-1">
|
|
- <if test="registerUserTypeID.toUpperCase().indexOf('NOT')!=-1"> not </if>
|
|
|
|
- <if test="registerUserTypeID.toUpperCase().indexOf('IN')!=-1"> in </if>
|
|
|
|
- <foreach item="typeIn" collection="registerUserTypeID.substring(registerUserTypeID.toUpperCase().indexOf('=')+1,registerUserTypeID.length()).trim().split(',')" open="(" separator="," close=")">
|
|
|
|
|
|
+ <if test="registerUserTypeID.toUpperCase().indexOf('NOT')!=-1">not</if>
|
|
|
|
+ <if test="registerUserTypeID.toUpperCase().indexOf('IN')!=-1">in</if>
|
|
|
|
+ <foreach item="typeIn"
|
|
|
|
+ collection="registerUserTypeID.substring(registerUserTypeID.toUpperCase().indexOf('=')+1,registerUserTypeID.length()).trim().split(',')"
|
|
|
|
+ open="(" separator="," close=")">
|
|
#{typeIn}
|
|
#{typeIn}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
- <if test="manufacturerStatus != null "> and user.manufacturerStatus = #{manufacturerStatus}</if>
|
|
|
|
- <if test="shopID != null "> and user.shopID = #{shopID}</if>
|
|
|
|
- <if test="auditStatus != null and auditStatus != ''"> and user.auditStatus = #{auditStatus}</if>
|
|
|
|
- <if test="auditTime != null and auditTime != ''"> and user.auditTime = #{auditTime}</if>
|
|
|
|
- <if test="auditNote != null and auditNote != ''"> and user.auditNote = #{auditNote}</if>
|
|
|
|
- <if test="registerTime != null and registerTime != ''"> and user.registerTime = #{registerTime}</if>
|
|
|
|
- <if test="registerIP != null and registerIP != ''"> and user.registerIP = #{registerIP}</if>
|
|
|
|
- <if test="ipAddress != null and ipAddress != ''"> and user.ipAddress = #{ipAddress}</if>
|
|
|
|
- <if test="loginTime != null and loginTime != ''"> and user.loginTime = #{loginTime}</if>
|
|
|
|
- <if test="loginIP != null and loginIP != ''"> and user.loginIP = #{loginIP}</if>
|
|
|
|
- <if test="validFlag != null and validFlag != ''"> and user.validFlag = #{validFlag}</if>
|
|
|
|
- <if test="clubStatus != null "> and user.clubStatus = #{clubStatus}</if>
|
|
|
|
- <if test="clubID != null "> and user.clubID = #{clubID}</if>
|
|
|
|
- <if test="agreeFlag != null and agreeFlag != ''"> and user.agreeFlag = #{agreeFlag}</if>
|
|
|
|
- <if test="serviceProviderStatus != null "> and user.serviceProviderStatus = #{serviceProviderStatus}</if>
|
|
|
|
- <if test="serviceProviderID != null "> and user.serviceProviderID = #{serviceProviderID}</if>
|
|
|
|
- <if test="userMoney != null "> and user.userMoney = #{userMoney}</if>
|
|
|
|
- <if test="ableUserMoney != null "> and user.ableUserMoney = #{ableUserMoney}</if>
|
|
|
|
- <if test="logoffTime != null and logoffTime != ''"> and user.logoffTime = #{logoffTime}</if>
|
|
|
|
- <if test="appKey != null and appKey != ''"> and user.appKey = #{appKey}</if>
|
|
|
|
- <if test="appSecret != null and appSecret != ''"> and user.appSecret = #{appSecret}</if>
|
|
|
|
- <if test="scanFlag != null "> and user.scanFlag = #{scanFlag}</if>
|
|
|
|
|
|
+ <if test="manufacturerStatus != null ">and user.manufacturerStatus = #{manufacturerStatus}</if>
|
|
|
|
+ <if test="shopID != null ">and user.shopID = #{shopID}</if>
|
|
|
|
+ <if test="auditStatus != null and auditStatus != ''">and user.auditStatus = #{auditStatus}</if>
|
|
|
|
+ <if test="auditTime != null and auditTime != ''">and user.auditTime = #{auditTime}</if>
|
|
|
|
+ <if test="auditNote != null and auditNote != ''">and user.auditNote = #{auditNote}</if>
|
|
|
|
+ <if test="registerTime != null and registerTime != ''">and user.registerTime = #{registerTime}</if>
|
|
|
|
+ <if test="registerIP != null and registerIP != ''">and user.registerIP = #{registerIP}</if>
|
|
|
|
+ <if test="ipAddress != null and ipAddress != ''">and user.ipAddress = #{ipAddress}</if>
|
|
|
|
+ <if test="loginTime != null and loginTime != ''">and user.loginTime = #{loginTime}</if>
|
|
|
|
+ <if test="loginIP != null and loginIP != ''">and user.loginIP = #{loginIP}</if>
|
|
|
|
+ <if test="validFlag != null and validFlag != ''">and user.validFlag = #{validFlag}</if>
|
|
|
|
+ <if test="clubStatus != null ">and user.clubStatus = #{clubStatus}</if>
|
|
|
|
+ <if test="clubID != null ">and user.clubID = #{clubID}</if>
|
|
|
|
+ <if test="agreeFlag != null and agreeFlag != ''">and user.agreeFlag = #{agreeFlag}</if>
|
|
|
|
+ <if test="serviceProviderStatus != null ">and user.serviceProviderStatus = #{serviceProviderStatus}</if>
|
|
|
|
+ <if test="serviceProviderID != null ">and user.serviceProviderID = #{serviceProviderID}</if>
|
|
|
|
+ <if test="userMoney != null ">and user.userMoney = #{userMoney}</if>
|
|
|
|
+ <if test="ableUserMoney != null ">and user.ableUserMoney = #{ableUserMoney}</if>
|
|
|
|
+ <if test="logoffTime != null and logoffTime != ''">and user.logoffTime = #{logoffTime}</if>
|
|
|
|
+ <if test="appKey != null and appKey != ''">and user.appKey = #{appKey}</if>
|
|
|
|
+ <if test="appSecret != null and appSecret != ''">and user.appSecret = #{appSecret}</if>
|
|
|
|
+ <if test="scanFlag != null ">and user.scanFlag = #{scanFlag}</if>
|
|
<if test="userBeans != null ">and user.userBeans = #{userBeans}</if>
|
|
<if test="userBeans != null ">and user.userBeans = #{userBeans}</if>
|
|
<if test="guideFlag != null ">and user.guideFlag = #{guideFlag}</if>
|
|
<if test="guideFlag != null ">and user.guideFlag = #{guideFlag}</if>
|
|
<if test="loginFailTime != null ">and user.loginFailTime = #{loginFailTime}</if>
|
|
<if test="loginFailTime != null ">and user.loginFailTime = #{loginFailTime}</if>
|
|
@@ -708,6 +735,9 @@
|
|
<if test="type != null and type == 4">
|
|
<if test="type != null and type == 4">
|
|
miniProgramOpenId,
|
|
miniProgramOpenId,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="type != null and type == 5">
|
|
|
|
+ secondOpenid,
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="unionId != null and unionId != ''">#{unionId},</if>
|
|
<if test="unionId != null and unionId != ''">#{unionId},</if>
|
|
@@ -717,7 +747,8 @@
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
<insert id="insertTicket">
|
|
<insert id="insertTicket">
|
|
- INSERT INTO cm_zyl_ticket (ticketId) values(#{s})
|
|
|
|
|
|
+ INSERT INTO cm_zyl_ticket (ticketId)
|
|
|
|
+ values (#{s})
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
<update id="updateWxUnion" parameterType="WxUnion">
|
|
<update id="updateWxUnion" parameterType="WxUnion">
|
|
@@ -735,6 +766,9 @@
|
|
<if test="type != null and type == 4">
|
|
<if test="type != null and type == 4">
|
|
miniProgramOpenId = #{openid},
|
|
miniProgramOpenId = #{openid},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="type != null and type == 5">
|
|
|
|
+ secondOpenid = #{openid},
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
where unionId = #{unionId}
|
|
where unionId = #{unionId}
|
|
</update>
|
|
</update>
|
|
@@ -763,6 +797,9 @@
|
|
<if test="type != null and type == 4">
|
|
<if test="type != null and type == 4">
|
|
and wx_union.miniProgramOpenId = #{openid}
|
|
and wx_union.miniProgramOpenId = #{openid}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="type != null and type == 5">
|
|
|
|
+ and wx_union.secondOpenid = #{openid}
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
limit 1
|
|
limit 1
|
|
</select>
|
|
</select>
|
|
@@ -771,30 +808,33 @@
|
|
select
|
|
select
|
|
cm_related_image.image
|
|
cm_related_image.image
|
|
from cm_related_image AS cm_related_image
|
|
from cm_related_image AS cm_related_image
|
|
- <where> cm_related_image.delFlag = 0
|
|
|
|
- <if test="id != null and id != ''"> and cm_related_image.id = #{id}</if>
|
|
|
|
|
|
+ <where>cm_related_image.delFlag = 0
|
|
|
|
+ <if test="id != null and id != ''">and cm_related_image.id = #{id}</if>
|
|
<if test="type != null and type != ''">
|
|
<if test="type != null and type != ''">
|
|
and cm_related_image.type
|
|
and cm_related_image.type
|
|
<if test="type.toUpperCase().indexOf('=')==-1">
|
|
<if test="type.toUpperCase().indexOf('=')==-1">
|
|
= #{type}
|
|
= #{type}
|
|
</if>
|
|
</if>
|
|
<if test="type.toUpperCase().indexOf('=')!=-1">
|
|
<if test="type.toUpperCase().indexOf('=')!=-1">
|
|
- <if test="type.toUpperCase().indexOf('NOT')!=-1"> not </if>
|
|
|
|
- <if test="type.toUpperCase().indexOf('IN')!=-1"> in </if>
|
|
|
|
- <foreach item="typeIn" collection="type.substring(type.toUpperCase().indexOf('=')+1,type.length()).trim().split(',')" open="(" separator="," close=")">
|
|
|
|
|
|
+ <if test="type.toUpperCase().indexOf('NOT')!=-1">not</if>
|
|
|
|
+ <if test="type.toUpperCase().indexOf('IN')!=-1">in</if>
|
|
|
|
+ <foreach item="typeIn"
|
|
|
|
+ collection="type.substring(type.toUpperCase().indexOf('=')+1,type.length()).trim().split(',')"
|
|
|
|
+ open="(" separator="," close=")">
|
|
#{typeIn}
|
|
#{typeIn}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
- <if test="authorId != null and authorId != ''"> and cm_related_image.authorId = #{authorId}</if>
|
|
|
|
- <if test="image != null and image != ''"> and cm_related_image.image = #{image}</if>
|
|
|
|
|
|
+ <if test="authorId != null and authorId != ''">and cm_related_image.authorId = #{authorId}</if>
|
|
|
|
+ <if test="image != null and image != ''">and cm_related_image.image = #{image}</if>
|
|
</where>
|
|
</where>
|
|
group by cm_related_image.id
|
|
group by cm_related_image.id
|
|
order by cm_related_image.createTime desc
|
|
order by cm_related_image.createTime desc
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="findTicket" resultType="java.lang.Integer">
|
|
<select id="findTicket" resultType="java.lang.Integer">
|
|
- select id from cm_zyl_ticket
|
|
|
|
|
|
+ select id
|
|
|
|
+ from cm_zyl_ticket
|
|
where ticketId = #{s}
|
|
where ticketId = #{s}
|
|
</select>
|
|
</select>
|
|
|
|
|