|
@@ -2,8 +2,8 @@
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.caimei365.tools.mapper.CmBehaviorRecordMapper">
|
|
|
<insert id="insertRecord">
|
|
|
- INSERT INTO cm_behavior_record (IP, userID, pagePath, pageType, pageLabel, behaviorType, productID, accessTime, accessDuration, accessDate,referer,accessSource,accessClient,isReckon)
|
|
|
- VALUES(#{IP},#{userId},#{pagePath},#{pageType},#{pageLabel},#{behaviorType},#{productId},#{accessTime},#{accessDuration},#{accessDate},#{referer},#{accessSource},#{accessClient},#{isReckon})
|
|
|
+ INSERT INTO cm_behavior_record (IP, userID, pagePath, pageType, pageLabel, behaviorType, productID, accessTime, accessDuration, accessDate,referer,accessSource,accessClient,isReckon,region)
|
|
|
+ VALUES(#{IP},#{userId},#{pagePath},#{pageType},#{pageLabel},#{behaviorType},#{productId},#{accessTime},#{accessDuration},#{accessDate},#{referer},#{accessSource},#{accessClient},#{isReckon},#{region})
|
|
|
</insert>
|
|
|
|
|
|
<select id="toDateRecode" resultType="com.caimei365.tools.model.po.CmBehaviorRecordPo">
|
|
@@ -24,5 +24,14 @@
|
|
|
region = #{region}
|
|
|
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>
|
|
|
+ <update id="updateOldData">
|
|
|
+ UPDATE cm_behavior_record
|
|
|
+ SET isReckon = #{isReckon},
|
|
|
+ region = #{region}
|
|
|
+ WHERE recordID = #{recordID}
|
|
|
+ </update>
|
|
|
</mapper>
|
|
|
|