李林
2023-10-07 658d4927d468c47208fd012d9128b09249c07eff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?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.chinaztt.mes.production.mapper.ProductOutItemsMapper">
 
    <resultMap id="productOutItemsMap" type="com.chinaztt.mes.production.dto.ProductOutItemsDTO">
        <id property="id" column="id"/>
        <result property="productOutTemplateId" column="product_out_template_id"/>
        <result property="productOutItems" column="product_out_items"/>
        <result property="productOutItemsValue" column="product_out_items_value"/>
        <result property="remark" column="remark"/>
    </resultMap>
 
    <select id="getByTemplateId" resultMap="productOutItemsMap">
        select poi."id",poi.product_out_items,poi.product_out_items_value,
        poi.remark
        from production_product_out_items poi
        where poi.product_out_template_id=#{templateId}
    </select>
</mapper>