SchoolUserId , name , schoolId , areaId , code , status , deviceCode ,
ifActivity , activityTime , cpuNo,type,padCode,padActivity,padActivtime
INSERT INTO SchoolUser ( SchoolUserId, name, schoolId, areaId, code, status,
deviceCode, ifActivity, activityTime , cpuNo,type,padCode,padActivity,padActivtime )
Values ( #{SchoolUserId}, #{name}, #{schoolId}, #{areaId}, #{code}, #{status},
#{deviceCode}, #{ifActivity}, #{activityTime} , #{cpuNo},#{type}, #{padCode},#{padActivity},#{padActivtime})
UPDATE SchoolUser SET
SchoolUserId = #{SchoolUserId}, name = #{name}, schoolId = #{schoolId}, areaId = #{areaId},
code = #{code}, status = #{status}, deviceCode = #{deviceCode}, ifActivity = #{ifActivity},
activityTime = #{activityTime} , cpuNo = #{cpuNo},type=#{type},padCode = #{padCode},padActivity=#{padActivity},
padActivtime=#{padActivtime}
where SchoolUserId=#{SchoolUserId}
INSERT INTO SchoolUser ( SchoolUserId, name, schoolId, areaId, code,
status, deviceCode, ifActivity, activityTime , cpuNo ,type,padCode,padActivity,padActivtime ) Values
( #{item.SchoolUserId}, #{item.name}, #{item.schoolId},
#{item.areaId}, #{item.code}, #{item.status},
#{item.deviceCode}, #{item.ifActivity},
#{item.activityTime} , #{item.cpuNo} ,#{item.type}, #{item.padCode},#{item.padActivity},#{item.padActivtime} )