| | |
| | | <result column="update_time" property="updateTime"/> |
| | | <result column="frequency" property="frequency"/> |
| | | <result column="often" property="often"/> |
| | | <result column="ask" property="ask"/> |
| | | <result column="port" property="port"/> |
| | | <result column="angle" property="angle"/> |
| | | <result column="value" property="value"/> |
| | |
| | | </resultMap> |
| | | <insert id="saveBatch"> |
| | | INSERT INTO ins_product_result_2 (ins_product_id, equip_value, equip_name, |
| | | frequency, port, angle, value, result, often, num) |
| | | frequency, port,ask, 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}) |
| | | #{result2.equipValue}, |
| | | #{result2.equipName}, |
| | | #{result2.frequency}, |
| | | #{result2.port}, |
| | | #{result2.ask}, |
| | | #{result2.angle}, |
| | | #{result2.value}, |
| | | #{result2.result}, |
| | | #{result2.often}, |
| | | #{result2.num}) |
| | | </foreach> |
| | | </insert> |
| | | <select id="selectWordHang" resultType="com.yuanchu.mom.vo.InsProductResult2VO"> |
| | | select |
| | | inspection_item_subclass, |
| | | unit, |
| | | case when ipr2.ask is null then ip.ask |
| | | else ipr2.ask end as ask, |
| | | result, |
| | | frequency, |
| | | port, |
| | | value, |
| | | result |
| | | from ins_product_result_2 ipr2 |
| | | left join ins_product ip on ipr2.ins_product_id = ip.id |
| | | where num=#{num} |
| | | and ip.id in |
| | | <foreach collection="ids" separator="," item="id" open="(" close=")"> |
| | | #{id} |
| | | </foreach> |
| | | order by inspection_item_subclass |
| | | </select> |
| | | </mapper> |