|
@@ -23,14 +23,13 @@
|
|
|
isReckon = #{isReckon}
|
|
|
WHERE recordID = #{recordID}
|
|
|
</update>
|
|
|
- <select id="findList" resultType="com.caimei365.tools.model.po.CmBehaviorRecordPo">
|
|
|
- SELECT * FROM cm_behavior_record where recordID between #{startId} and #{endId}
|
|
|
+ <select id="findList" resultType="com.caimei365.tools.model.po.CmUserPo">
|
|
|
+ SELECT userID, registerIP FROM USER where userID between #{startId} and #{endId}
|
|
|
</select>
|
|
|
<update id="updateOldData">
|
|
|
- UPDATE cm_behavior_record
|
|
|
- SET isReckon = #{isReckon},
|
|
|
- region = #{region}
|
|
|
- WHERE recordID = #{recordID}
|
|
|
+ UPDATE USER
|
|
|
+ SET ipAddress = #{ipAddress}
|
|
|
+ WHERE userID = #{userID}
|
|
|
</update>
|
|
|
|
|
|
|
|
@@ -203,8 +202,8 @@
|
|
|
END)AS companyType,
|
|
|
(
|
|
|
CASE WHEN b.userID = 0 THEN ''
|
|
|
- WHEN u.userIdentity = 2 THEN c.sname
|
|
|
- WHEN u.userIdentity = 4 THEN IF(c.sname != u.userName,c.sname,'')
|
|
|
+ WHEN u.userIdentity = 2 THEN c.name
|
|
|
+ WHEN u.userIdentity = 4 THEN IF(c.name != u.userName,c.name,'')
|
|
|
END)AS corporateName,
|
|
|
(
|
|
|
CASE WHEN b.userID = 0 THEN ''
|
|
@@ -234,7 +233,6 @@
|
|
|
LEFT JOIN USER u ON b.userID = u.userID
|
|
|
LEFT JOIN club c ON b.userID = c.userID
|
|
|
LEFT JOIN shop s ON b.userID = s.userID
|
|
|
- LEFT JOIN cm_roos_information cri ON b.IP = cri.IP
|
|
|
WHERE b.IP != '106.55.202.118' AND b.delFlag = 0 AND b.accessDate = #{accessDate}
|
|
|
GROUP BY b.IP, b.accessDate,b.userID, b.behaviorType ORDER BY b.accessTime DESC
|
|
|
</select>
|