O
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

2 years ago
2 years ago
2 years ago
2 years ago
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.xujie.sys.modules.reader.dao.GetInformationForExcelMapper">
  4. <resultMap id="BaseResultMap" type="com.xujie.sys.modules.reader.entity.EquipmentDataDetail">
  5. <result column="site" jdbcType="VARCHAR" property="site" />
  6. <result column="bu_no" jdbcType="VARCHAR" property="buNo" />
  7. <result column="equipment_no" jdbcType="VARCHAR" property="equipmentNo" />
  8. <result column="item_no" jdbcType="VARCHAR" property="itemNo" />
  9. <result column="value0" jdbcType="VARCHAR" property="value0" />
  10. <result column="value1" jdbcType="VARCHAR" property="value1" />
  11. <result column="value2" jdbcType="VARCHAR" property="value2" />
  12. <result column="value3" jdbcType="VARCHAR" property="value3" />
  13. <result column="value4" jdbcType="VARCHAR" property="value4" />
  14. <result column="value5" jdbcType="VARCHAR" property="value5" />
  15. <result column="value6" jdbcType="VARCHAR" property="value6" />
  16. <result column="value7" jdbcType="VARCHAR" property="value7" />
  17. <result column="value8" jdbcType="VARCHAR" property="value8" />
  18. <result column="value9" jdbcType="VARCHAR" property="value9" />
  19. <result column="create_date" jdbcType="VARCHAR" property="createDate" />
  20. <result column="create_by" jdbcType="VARCHAR" property="createBy" />
  21. <result column="batch_no" jdbcType="INTEGER" property="batchNo" />
  22. <result column="file_no" jdbcType="VARCHAR" property="fileNo" />
  23. <result column="photo_value1" jdbcType="VARCHAR" property="fileNo" />
  24. <result column="num" jdbcType="INTEGER" property="num" />
  25. <result column="file_value1" jdbcType="INTEGER" property="fileValue1" />
  26. <result column="group_value" jdbcType="INTEGER" property="groupValue" />
  27. </resultMap>
  28. <insert id="saveByExcels" parameterType="com.xujie.sys.modules.reader.entity.EquipmentDataDetail">
  29. 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)
  30. values
  31. <foreach collection="list" item="item" index="index" separator=",">
  32. (#{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})
  33. </foreach>
  34. </insert>
  35. </mapper>