| | |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <resultMap type="ApsBom" id="ApsBomLineResult"> |
| | | <result property="bomLineId" column="bom_line_id" /> |
| | | <result property="itemCode" column="item_code" /> |
| | | <result property="itemName" column="item_name" /> |
| | | <result property="num" column="num" /> |
| | | </resultMap> |
| | | <sql id="selectApsBomLineVo"> |
| | | select bom_line_id, item_code, item_name, num |
| | | from aps_bom_line |
| | | </sql> |
| | | |
| | | <select id="selectApsBomLineList" parameterType="ApsBom" resultMap="ApsBomLineResult"> |
| | | <include refid="selectApsBomLineVo"/> |
| | | <where> |
| | | <if test="bomHeaderId != null and bomHeaderId != ''"> and bom_header_id = #{bomHeaderId}</if> |
| | | <if test="orgCode != null and orgCode != ''"> and org_code = #{orgCode}</if> |
| | | and del_flag='0' |
| | | </where> |
| | | order by bom_header_id,bom_line_id |
| | | </select> |
| | | </mapper> |