INSERT INTO cm_behavior_record (IP, userID, pagePath, pageType, pageLabel, behaviorType, productID, accessTime, accessDuration, accessDate,referer,accessSource,accessClient,isReckon,region,userAgent,delFlag) VALUES(#{IP},#{userId},#{pagePath},#{pageType},#{pageLabel},#{behaviorType},#{productId},#{accessTime},#{accessDuration},#{accessDate},#{referer},#{accessSource},#{accessClient},#{isReckon},#{region},#{userAgent},#{delFlag}) UPDATE cm_behavior_record SET accessDuration = #{accessDuration}, isReckon = #{isReckon} WHERE recordID = #{recordID} UPDATE USER SET ipAddress = #{ipAddress} WHERE userID = #{userID} UPDATE cm_svip_coupon_month SET delFlag = 0 WHERE id = #{id} INSERT INTO cm_svip_coupon_month (useTime, updateTime, status,delFlag) VALUES (#{useTime}, #{updateTime}, #{status}, #{delFlag}) UPDATE cm_coupon SET configure = #{configure} WHERE id = #{id} INSERT INTO cm_coupon( name, couponPayWay, couponAmount, touchPrice, startDate, endDate, receivePeriod, receiveFlag, useTimeFlag, usePeriod, status, couponType, vipFlag, userId, shopId, productType, pcBanner, appletsBanner, categoryType, couponsMode, createDate, moneyCouponPrice, moneyCouponFlag, moneyCouponType, delFlag, configure ) VALUES ( #{name}, #{couponPayWay}, #{couponAmount}, #{touchPrice}, #{startDate}, #{endDate}, #{receivePeriod}, #{receiveFlag}, #{useTimeFlag}, #{usePeriod}, #{status}, #{couponType}, #{vipFlag}, #{userId}, #{shopId}, #{productType}, #{pcBanner}, #{appletsBanner}, #{categoryType}, #{couponsMode}, #{createDate}, #{moneyCouponPrice}, #{moneyCouponFlag}, #{moneyCouponType}, #{delFlag}, #{configure} ) INSERT INTO `cm_coupon_product` ( `couponId`, `productId`, `pcStatus`, `appletsStatus`, `sort`, `addTime`, `delFlag` ) VALUES ( #{couponId}, #{productId}, #{pcStatus}, #{appletsStatus}, #{sort}, #{addTime}, #{delFlag} ) INSERT INTO cm_svip_coupon(couponId, montId, updateTime,delFlag) VALUES(#{couponId}, #{montId}, #{updateTime},#{delFlag}) UPDATE cm_behavior_record SET IP = #{IP}, userID = #{userId} WHERE recordID = #{recordID}