INSERT INTO Transfer ( transferId, studentId, sourceClassId, sourceDate, targetClassId, targetDate, status , areaid ) Values ( #{transferId}, #{studentId}, #{sourceClassId}, #{sourceDate}, #{targetClassId}, #{targetDate}, #{status} , #{areaid} ) UPDATE Transfer SET transferId = #{transferId}, studentId = #{studentId}, sourceClassId = #{sourceClassId}, sourceDate = #{sourceDate}, targetClassId = #{targetClassId}, targetDate = #{targetDate}, status = #{status} , areaid = #{areaid} where transferId=#{transferId} and studentId=#{studentId} and areaid = #{areaid} INSERT INTO Transfer ( transferId, studentId, sourceClassId, sourceDate, targetClassId, targetDate, status , areaid ) Values ( #{item.transferId}, #{item.studentId}, #{item.sourceClassId}, #{item.sourceDate}, #{item.targetClassId}, #{item.targetDate}, #{item.status} , #{item.areaid} ) UPDATE Transfer SET status = 1 , targetClassId = #{targetClassId} , targetDate = current_timestamp WHERE status = 0 AND studentId in #{item} update wordachive set areaId = #{areaId} where uid=#{studentId} update userownlesson set areaId = #{areaId} where uid=#{studentId} update userhonor set areaId = #{areaId} where uid=#{studentId} update transfer set areaId = #{areaId} where studentId=#{studentId} update replymessage set areaId = #{areaId} where uid=#{studentId} update racescore set areaId = #{areaId} where uid=#{studentId} update pronostat set areaId = #{areaId} where uid=#{studentId} update pointlog set areaId = #{areaId} where uid=#{studentId} update orderowngoods set areaId = #{areaId} where orderinfoId in ( select orderinfoid from orderinfo where uid =#{studentId} ) update orderinfo set areaId = #{areaId} where uid=#{studentId} update leavemessmaster set areaId = #{areaId} where uid=#{studentId} update leavemessage set areaId = #{areaId} where uid=#{studentId} update hearanswer set areaId = #{areaId} where userId=#{studentId} update followship set areaId = #{areaId} where follower =#{studentId} update finishwordsstat set areaId = #{areaId} where uid=#{studentId} update finishlessonstat set areaId = #{areaId} where uid=#{studentId} update finishassignstat set areaId = #{areaId} where uid=#{studentId} update examanswer set areaId = #{areaId} where userId=#{studentId} update emoneylog set areaId = #{areaId} where uid=#{studentId} update deviceuselog set areaId = #{areaId} where uid=#{studentId} update connectlog set areaId = #{areaId} where uid=#{studentId} update blacklist set areaId = #{areaId} where uid=#{studentId} update bindinfo set areaId = #{areaId} where uid=#{studentId} update badgelog set areaId = #{areaId} where userId=#{studentId} update achivement set areaId = #{areaId} where uid=#{studentId} update DubCritic set areaId = #{areaId} where uid=#{studentId} update DubUserVoice set areaId = #{areaId} where uid=#{studentId}