INSERT INTO UnivUserHonor ( uid, totalPoint, userLevel, levelName, totalMoney, goldMedalCount, silverMedalCount, bronzeMedalCount, cupCount, flowerCount, totalScore, howmuch , studyDuration, studyNum, beFollowCount , areaid ) Values ( #{uid}, #{totalPoint}, #{userLevel}, #{levelName}, #{totalMoney}, #{goldMedalCount}, #{silverMedalCount}, #{bronzeMedalCount}, #{cupCount}, #{flowerCount}, #{totalScore}, #{howmuch} , #{studyDuration}, #{studyNum}, #{beFollowCount} , #{areaId}) UPDATE UnivUserHonor SET uid = #{uid}, totalPoint = #{totalPoint}, userLevel = #{userLevel}, levelName = #{levelName}, totalMoney = #{totalMoney}, goldMedalCount = #{goldMedalCount}, silverMedalCount = #{silverMedalCount}, bronzeMedalCount = #{bronzeMedalCount}, cupCount = #{cupCount}, flowerCount = #{flowerCount}, totalScore = #{totalScore}, howmuch = #{howmuch} , studyDuration = #{studyDuration}, studyNum = #{studyNum}, beFollowCount = #{beFollowCount} , areaid = #{areaId} where uid=#{uid} INSERT INTO UnivUserHonor ( uid, totalPoint, userLevel, levelName, totalMoney, goldMedalCount, silverMedalCount, bronzeMedalCount, cupCount, flowerCount, totalScore, howmuch, studyDuration, studyNum , beFollowCount , areaid ) Values ( #{item.uid}, #{item.totalPoint}, #{item.userLevel}, #{item.levelName}, #{item.totalMoney}, #{item.goldMedalCount}, #{item.silverMedalCount}, #{item.bronzeMedalCount}, #{item.cupCount}, #{item.flowerCount}, #{item.totalScore}, #{item.howmuch}, #{item.studyDuration}, #{item.studyNum} , #{item.beFollowCount} , #{item.areaId} ) UPDATE UnivUserHonor SET studyDuration = studyDuration + #{studyDuration}, studyNum = studyNum + 1 where uid=#{uid} and areaid = #{areaid}