You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
2.7 KiB
35 lines
2.7 KiB
<?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.xujie.sys.modules.reader.dao.GetInformationForExcelMapper">
|
|
<resultMap id="BaseResultMap" type="com.xujie.sys.modules.reader.entity.EquipmentDataDetail">
|
|
<result column="site" jdbcType="VARCHAR" property="site" />
|
|
<result column="bu_no" jdbcType="VARCHAR" property="buNo" />
|
|
<result column="equipment_no" jdbcType="VARCHAR" property="equipmentNo" />
|
|
<result column="item_no" jdbcType="VARCHAR" property="itemNo" />
|
|
<result column="value0" jdbcType="VARCHAR" property="value0" />
|
|
<result column="value1" jdbcType="VARCHAR" property="value1" />
|
|
<result column="value2" jdbcType="VARCHAR" property="value2" />
|
|
<result column="value3" jdbcType="VARCHAR" property="value3" />
|
|
<result column="value4" jdbcType="VARCHAR" property="value4" />
|
|
<result column="value5" jdbcType="VARCHAR" property="value5" />
|
|
<result column="value6" jdbcType="VARCHAR" property="value6" />
|
|
<result column="value7" jdbcType="VARCHAR" property="value7" />
|
|
<result column="value8" jdbcType="VARCHAR" property="value8" />
|
|
<result column="value9" jdbcType="VARCHAR" property="value9" />
|
|
<result column="create_date" jdbcType="VARCHAR" property="createDate" />
|
|
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
|
|
<result column="batch_no" jdbcType="INTEGER" property="batchNo" />
|
|
<result column="file_no" jdbcType="VARCHAR" property="fileNo" />
|
|
<result column="photo_value1" jdbcType="VARCHAR" property="fileNo" />
|
|
<result column="num" jdbcType="INTEGER" property="num" />
|
|
<result column="file_value1" jdbcType="INTEGER" property="fileValue1" />
|
|
<result column="group_value" jdbcType="INTEGER" property="groupValue" />
|
|
</resultMap>
|
|
<insert id="saveByExcels" parameterType="com.xujie.sys.modules.reader.entity.EquipmentDataDetail">
|
|
insert into Equipment_data_detail(site,bu_no,equipment_no,item_no,value0,value1,value2,value3,value4,value5,value6,value7,value8,value9,create_date,create_by,batch_no,file_no,photo_value1,num,file_value1,group_value)
|
|
values
|
|
<foreach collection="list" item="item" index="index" separator=",">
|
|
(#{item.site},#{item.buNo},#{item.equipmentNo},#{item.itemNo},#{item.value0},#{item.value1},#{item.value2},#{item.value3},#{item.value4},#{item.value5},#{item.value6},#{item.value7},#{item.value8},#{item.value9},#{item.createDate},#{item.createBy},#{item.batchNo},#{item.fileNo},#{item.photoValue1},#{item.num},#{item.fileValue1},#{item.groupValue})
|
|
</foreach>
|
|
</insert>
|
|
</mapper>
|