| | |
| | | </delete> |
| | | |
| | | <resultMap type="ApsBom" id="ApsBomLineResult"> |
| | | <result property="id" column="id" /> |
| | | <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 |
| | | select id, 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 id="selectApsBomLineList" parameterType="String" resultMap="ApsBomLineResult"> |
| | | select id, bom_line_id, item_code, num |
| | | from aps_bom_line where del_flag='0' |
| | | and org_code = #{orgCode} |
| | | and bom_header_id = #{bomHeaderId} |
| | | order by bom_line_id |
| | | </select> |
| | | </mapper> |