houzhongjian
2024-07-23 a6de490948278991e47952e90671ddba4555e9a2
1
2
3
4
5
6
7
8
9
10
11
12
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.iailab.module.device.dao.DeviceHealthReportDataDao">
    <insert id="migration"
            parameterType="java.util.List">
        INSERT INTO `t_device_health_report_data` (id, `report_id`, `sort`, `data_name`, `data_value`, `data_max`, `data_min`, `data_avg`, `grade_code`, `grade_name`, `solution`, `remark`, `create_date`, `fault_code`)
        VALUES
        <foreach item="item" collection="list" separator=",">
            (#{item.id},#{item.reportId},#{item.sort},#{item.dataName},#{item.dataValue},#{item.dataMax},#{item.dataMin},#{item.dataAvg},#{item.gradeCode},#{item.gradeName},#{item.solution},#{item.remark},#{item.createDate},#{item.faultCode})
        </foreach>
    </insert>
</mapper>