|
@@ -45,7 +45,7 @@
|
|
|
AND b.IP = #{IP}
|
|
|
</if>
|
|
|
<if test="name != null and name != ''">
|
|
|
- AND c.sname = #{name} or s.name = #{name}
|
|
|
+ AND c.name = #{name} or s.name = #{name}
|
|
|
</if>
|
|
|
<if test="userIdentity != null and userIdentity != ''">
|
|
|
<if test="userIdentity == 2">
|
|
@@ -58,8 +58,8 @@
|
|
|
AND b.userID = 0
|
|
|
</if>
|
|
|
</if>
|
|
|
- <if test="linkMan != null and linkMan != ''">
|
|
|
- AND (c.linkMan = #{linkMan} or s.linkMan = #{linkMan})
|
|
|
+ <if test="userName != null and userName != ''">
|
|
|
+ AND u.userName = #{userName}
|
|
|
</if>
|
|
|
<if test="contractMobile != null and contractMobile != ''">
|
|
|
AND (c.contractMobile = #{contractMobile} or s.contractMobile = #{contractMobile})
|
|
@@ -120,8 +120,8 @@
|
|
|
AND b.userID = 0
|
|
|
</if>
|
|
|
</if>
|
|
|
- <if test="linkMan != null and linkMan != ''">
|
|
|
- AND (c.linkMan = #{linkMan} or s.linkMan = #{linkMan})
|
|
|
+ <if test="userName != null and userName != ''">
|
|
|
+ AND u.userName = #{userName}
|
|
|
</if>
|
|
|
<if test="contractMobile != null and contractMobile != ''">
|
|
|
AND (c.contractMobile = #{contractMobile} or s.contractMobile = #{contractMobile})
|
|
@@ -201,7 +201,7 @@
|
|
|
AND accessDate = #{accessDate}
|
|
|
</if>
|
|
|
</where>
|
|
|
- GROUP BY accessDate ORDER BY accessTime ASC
|
|
|
+ GROUP BY accessDate ORDER BY accessDate DESC
|
|
|
</select>
|
|
|
|
|
|
<select id="behaviorAgency" resultType="com.caimei.modules.user.entity.CmBehaviorRecord">
|