|
@@ -24,9 +24,9 @@
|
|
|
|
|
|
<insert id="insertRecord" parameterType="com.caimei365.tools.model.po.CmBehaviorRecordPo" useGeneratedKeys="true" keyProperty="recordID">
|
|
<insert id="insertRecord" parameterType="com.caimei365.tools.model.po.CmBehaviorRecordPo" useGeneratedKeys="true" keyProperty="recordID">
|
|
INSERT INTO cm_behavior_record (IP, userID, touristId, pagePath, pageType, pageLabel, behaviorType, productID, accessTime,
|
|
INSERT INTO cm_behavior_record (IP, userID, touristId, pagePath, pageType, pageLabel, behaviorType, productID, accessTime,
|
|
- accessDuration, accessDate, referer, accessSource, accessClient, isReckon, region, userAgent, openId, delFlag)
|
|
|
|
|
|
+ accessDuration, accessDate, referer, accessSource, accessClient, isReckon, region, userAgent, openId, delFlag,headUserId,productArchiveId)
|
|
VALUES(#{IP}, #{userId}, #{touristId}, #{pagePath}, #{pageType}, #{pageLabel}, #{behaviorType}, #{productId}, #{accessTime},
|
|
VALUES(#{IP}, #{userId}, #{touristId}, #{pagePath}, #{pageType}, #{pageLabel}, #{behaviorType}, #{productId}, #{accessTime},
|
|
- #{accessDuration}, #{accessDate}, #{referer}, #{accessSource}, #{accessClient}, #{isReckon}, #{region}, #{userAgent}, #{openId}, #{delFlag})
|
|
|
|
|
|
+ #{accessDuration}, #{accessDate}, #{referer}, #{accessSource}, #{accessClient}, #{isReckon}, #{region}, #{userAgent}, #{openId}, #{delFlag},#{headUserId},#{productArchiveId})
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
<select id="toDateRecode" resultType="com.caimei365.tools.model.po.CmBehaviorRecordPo">
|
|
<select id="toDateRecode" resultType="com.caimei365.tools.model.po.CmBehaviorRecordPo">
|
|
@@ -356,6 +356,8 @@
|
|
SUM(b.accessDuration) AS accessDuration,
|
|
SUM(b.accessDuration) AS accessDuration,
|
|
b.accessDate,
|
|
b.accessDate,
|
|
b.accessClient,
|
|
b.accessClient,
|
|
|
|
+ b.headUserId,
|
|
|
|
+ b.productArchiveId,
|
|
b.region AS region,
|
|
b.region AS region,
|
|
u.registerTime AS addTime,
|
|
u.registerTime AS addTime,
|
|
(SELECT touristId FROM cm_behavior_record WHERE accessDate = #{accessDate} and IP = b.IP ORDER BY accessTime DESC LIMIT 1) AS touristId,
|
|
(SELECT touristId FROM cm_behavior_record WHERE accessDate = #{accessDate} and IP = b.IP ORDER BY accessTime DESC LIMIT 1) AS touristId,
|
|
@@ -393,7 +395,9 @@
|
|
pageTypes,
|
|
pageTypes,
|
|
addTime,
|
|
addTime,
|
|
touristId,
|
|
touristId,
|
|
- delFlag
|
|
|
|
|
|
+ delFlag,
|
|
|
|
+ headUserId,
|
|
|
|
+ productArchiveId
|
|
) values (
|
|
) values (
|
|
#{IP},
|
|
#{IP},
|
|
#{userId},
|
|
#{userId},
|
|
@@ -418,7 +422,9 @@
|
|
#{pageTypes},
|
|
#{pageTypes},
|
|
#{addTime},
|
|
#{addTime},
|
|
#{touristId},
|
|
#{touristId},
|
|
- '0'
|
|
|
|
|
|
+ '0',
|
|
|
|
+ #{headUserId},
|
|
|
|
+ #{productArchiveId}
|
|
)
|
|
)
|
|
</select>
|
|
</select>
|
|
<select id="selTodayData" resultType="com.caimei365.tools.model.po.CmBehaviorRecordPo">
|
|
<select id="selTodayData" resultType="com.caimei365.tools.model.po.CmBehaviorRecordPo">
|
|
@@ -462,6 +468,8 @@
|
|
SUM(b.accessDuration) AS accessDuration,
|
|
SUM(b.accessDuration) AS accessDuration,
|
|
b.accessDate,
|
|
b.accessDate,
|
|
b.accessClient,
|
|
b.accessClient,
|
|
|
|
+ b.headUserId,
|
|
|
|
+ b.productArchiveId,
|
|
b.region AS region,
|
|
b.region AS region,
|
|
u.registerTime AS addTime
|
|
u.registerTime AS addTime
|
|
FROM cm_behavior_record b
|
|
FROM cm_behavior_record b
|
|
@@ -516,7 +524,9 @@
|
|
label,
|
|
label,
|
|
pageLabels,
|
|
pageLabels,
|
|
pageTypes,
|
|
pageTypes,
|
|
- addTime
|
|
|
|
|
|
+ addTime,
|
|
|
|
+ headUserId,
|
|
|
|
+ productArchiveId
|
|
) values (
|
|
) values (
|
|
#{recordID},
|
|
#{recordID},
|
|
#{IP},
|
|
#{IP},
|
|
@@ -540,7 +550,9 @@
|
|
#{label},
|
|
#{label},
|
|
#{pageLabels},
|
|
#{pageLabels},
|
|
#{pageTypes},
|
|
#{pageTypes},
|
|
- #{addTime}
|
|
|
|
|
|
+ #{addTime},
|
|
|
|
+ #{headUserId},
|
|
|
|
+ #{productArchiveId}
|
|
)
|
|
)
|
|
</insert>
|
|
</insert>
|
|
<delete id="delTodayData">
|
|
<delete id="delTodayData">
|