|
@@ -26,6 +26,10 @@
|
|
LEFT JOIN town t ON c.townId = t.townID
|
|
LEFT JOIN town t ON c.townId = t.townID
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
+ <select id="get" resultType="CmOrganizeStore">
|
|
|
|
+ select * from cm_mall_operation_user where id = #{id}
|
|
|
|
+ </select>
|
|
|
|
+
|
|
<select id="findList" resultType="CmOrganizeStore">
|
|
<select id="findList" resultType="CmOrganizeStore">
|
|
SELECT
|
|
SELECT
|
|
<include refid="cmOrganizeUserinfo"/>,
|
|
<include refid="cmOrganizeUserinfo"/>,
|
|
@@ -54,6 +58,9 @@
|
|
<if test="dbName == 'mssql'">'%'+#{mobile}+'%'</if>
|
|
<if test="dbName == 'mssql'">'%'+#{mobile}+'%'</if>
|
|
<if test="dbName == 'mysql'">concat('%',#{mobile},'%')</if>
|
|
<if test="dbName == 'mysql'">concat('%',#{mobile},'%')</if>
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="serviceName != null and serviceName != ''">
|
|
|
|
+ AND ser.linkMan like concat('%',#{serviceName},'%')
|
|
|
|
+ </if>
|
|
<if test="status != null and status != ''">
|
|
<if test="status != null and status != ''">
|
|
AND c.status = #{status}
|
|
AND c.status = #{status}
|
|
</if>
|
|
</if>
|
|
@@ -134,6 +141,7 @@
|
|
cmou.id,
|
|
cmou.id,
|
|
cmou.userOrganizeID as organizeId,
|
|
cmou.userOrganizeID as organizeId,
|
|
cmou.clubId,
|
|
cmou.clubId,
|
|
|
|
+ cmou.linkName,
|
|
u.userName AS name,
|
|
u.userName AS name,
|
|
u.bindMobile AS mobile,
|
|
u.bindMobile AS mobile,
|
|
cmou.status,
|
|
cmou.status,
|
|
@@ -143,13 +151,14 @@
|
|
LEFT JOIN USER u ON cmou.userId = u.userId
|
|
LEFT JOIN USER u ON cmou.userId = u.userId
|
|
<where>
|
|
<where>
|
|
cmou.delFlag = 0 AND cmou.userOrganizeID = #{organizeId} AND cmou.clubId = #{clubId}
|
|
cmou.delFlag = 0 AND cmou.userOrganizeID = #{organizeId} AND cmou.clubId = #{clubId}
|
|
- <if test="name != null and name != ''">
|
|
|
|
- and u.userName like concat('%',#{name},'%')
|
|
|
|
|
|
+ <if test="linkName != null and linkName != ''">
|
|
|
|
+ and cmou.linkName like concat('%',#{linkName},'%')
|
|
</if>
|
|
</if>
|
|
<if test="mobile != null and mobile != ''">
|
|
<if test="mobile != null and mobile != ''">
|
|
and u.bindMobile like concat('%',#{mobile},'%')
|
|
and u.bindMobile like concat('%',#{mobile},'%')
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
|
|
+ ORDER BY cmou.addTime DESC
|
|
</select>
|
|
</select>
|
|
<select id="getClubName" resultType="java.lang.String">
|
|
<select id="getClubName" resultType="java.lang.String">
|
|
select name from club where clubId = #{clubId}
|
|
select name from club where clubId = #{clubId}
|