| | |
| | | <resultMap type="ApsPlateStandardRequireBomOrderDetail" id="ApsPlateStandardRequireBomOrderDetailResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="requireId" column="require_id" /> |
| | | <result property="requireTrackId" column="require_track_id" /> |
| | | <result property="bomLineId" column="bom_line_id" /> |
| | | <result property="bomLineCode" column="bom_line_code" /> |
| | | <result property="docNo" column="doc_no" /> |
| | |
| | | </resultMap> |
| | | |
| | | <sql id="selectApsPlateStandardRequireBomOrderDetailVo"> |
| | | select id, require_id, bom_line_id, bom_line_code, doc_no, before_prod_amount, deduction_amount, after_prod_amount, org_code, batch_number, del_flag, create_time, create_by, update_by, update_time from aps_plate_standard_require_bom_order_detail |
| | | select id, require_id,require_track_id, bom_line_id, bom_line_code, doc_no, |
| | | before_prod_amount, deduction_amount, after_prod_amount, |
| | | org_code, batch_number, del_flag, create_time, create_by, update_by, update_time |
| | | from aps_plate_standard_require_bom_order_detail |
| | | </sql> |
| | | |
| | | <select id="selectApsPlateStandardRequireBomOrderDetailList" parameterType="ApsPlateStandardRequireBomOrderDetail" resultMap="ApsPlateStandardRequireBomOrderDetailResult"> |
| | | <include refid="selectApsPlateStandardRequireBomOrderDetailVo"/> |
| | | <where> |
| | | <if test="requireId != null and requireId != ''"> and require_id = #{requireId}</if> |
| | | <if test="requireTrackId != null and requireTrackId != ''"> and require_track_id = #{requireTrackId}</if> |
| | | <if test="bomLineId != null and bomLineId != ''"> and bom_line_id = #{bomLineId}</if> |
| | | <if test="bomLineCode != null and bomLineCode != ''"> and bom_line_code = #{bomLineCode}</if> |
| | | <if test="docNo != null and docNo != ''"> and doc_no = #{docNo}</if> |
| | |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="requireId != null">require_id,</if> |
| | | <if test="requireTrackId != null">require_track_id,</if> |
| | | |
| | | <if test="bomLineId != null">bom_line_id,</if> |
| | | <if test="bomLineCode != null">bom_line_code,</if> |
| | | <if test="docNo != null">doc_no,</if> |
| | |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | | <if test="requireId != null">#{requireId},</if> |
| | | <if test="requireTrackId != null">#{requireTrackId},</if> |
| | | |
| | | <if test="bomLineId != null">#{bomLineId},</if> |
| | | <if test="bomLineCode != null">#{bomLineCode},</if> |
| | | <if test="docNo != null">#{docNo},</if> |
| | |
| | | update aps_plate_standard_require_bom_order_detail |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="requireId != null">require_id = #{requireId},</if> |
| | | <if test="requireTrackId != null">require_track_id = #{requireTrackId},</if> |
| | | <if test="bomLineId != null">bom_line_id = #{bomLineId},</if> |
| | | <if test="bomLineCode != null">bom_line_code = #{bomLineCode},</if> |
| | | <if test="docNo != null">doc_no = #{docNo},</if> |