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})
UPDATE cm_behavior_record
SET accessDuration = #{accessDuration},
isReckon = #{isReckon}
WHERE recordID = #{recordID}
UPDATE cm_behavior_record
SET isReckon = #{isReckon},
region = #{region}
WHERE recordID = #{recordID}