| | |
| | | <?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.yuanchu.mom.mapper.InsProductResult2Mapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="BaseResultMap" type="com.yuanchu.mom.pojo.InsProductResult2"> |
| | | <id column="id" property="id" /> |
| | |
| | | <result column="value" property="value" /> |
| | | <result column="result" property="result" /> |
| | | </resultMap> |
| | | |
| | | <insert id="saveBatch"> |
| | | INSERT INTO ins_product_result_2 (ins_product_id, equip_value, equip_name, |
| | | frequency, port, angle, value, result, often, num) |
| | | VALUES |
| | | <foreach collection="result2s" item="result2" separator=","> |
| | | ( #{result2.insProductId}, |
| | | #{result2.equipValue}, |
| | | #{result2.equipName}, |
| | | #{result2.frequency}, |
| | | #{result2.port}, |
| | | #{result2.angle}, |
| | | #{result2.value}, |
| | | #{result2.result}, |
| | | #{result2.often}, |
| | | #{result2.num}) |
| | | </foreach> |
| | | </insert> |
| | | </mapper> |