|
|
@ -29,13 +29,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="lossRate" column="loss_rate" /> |
|
|
|
<result property="level" column="level" /> |
|
|
|
<result property="sortNo" column="sort_no" /> |
|
|
|
<result property="hasOutNum" column="has_out_num" /> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="selectSysMakeorderBomVo"> |
|
|
|
select id, del_flag, create_by, create_time, update_by, update_time, |
|
|
|
remark, make_no, sales_order_code, sales_order_material_no, |
|
|
|
bom_no, material_no, photoUrl, material_name, material_type, process_method, unit, brand, `describe`, |
|
|
|
warehouseDept, use_num, loss_rate, level, sort_no from sys_makeorder_bom |
|
|
|
warehouseDept, use_num, loss_rate, level, sort_no, has_out_num from sys_makeorder_bom |
|
|
|
</sql> |
|
|
|
|
|
|
|
<select id="selectSysMakeorderBomList" parameterType="SysMakeorderBom" resultMap="SysMakeorderBomResult"> |
|
|
@ -98,6 +99,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="lossRate != null">loss_rate,</if> |
|
|
|
<if test="level != null">level,</if> |
|
|
|
<if test="sortNo != null">sort_no,</if> |
|
|
|
<if test="hasOutNum != null">has_out_num,</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="delFlag != null">#{delFlag},</if> |
|
|
@ -123,6 +125,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="lossRate != null">#{lossRate},</if> |
|
|
|
<if test="level != null">#{level},</if> |
|
|
|
<if test="sortNo != null">#{sortNo},</if> |
|
|
|
<if test="hasOutNum != null">#{hasOutNum},</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
|
|
|
@ -152,6 +155,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="lossRate != null">loss_rate = #{lossRate},</if> |
|
|
|
<if test="level != null">level = #{level},</if> |
|
|
|
<if test="sortNo != null">sort_no = #{sortNo},</if> |
|
|
|
<if test="hasOutNum != null">has_out_num = #{hasOutNum},</if> |
|
|
|
</trim> |
|
|
|
where id = #{id} |
|
|
|
</update> |
|
|
@ -175,4 +179,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
update sys_makeorder_bom set del_flag = '0' where id = #{id} |
|
|
|
</update> |
|
|
|
|
|
|
|
<select id="selectSysMakeorderBomByNo" parameterType="SysMakeorderBom" resultMap="SysMakeorderBomResult"> |
|
|
|
<include refid="selectSysMakeorderBomVo"/> |
|
|
|
<where> |
|
|
|
<if test="makeNo != null and makeNo != ''"> and make_no = #{makeNo}</if> |
|
|
|
<if test="materialNo != null and materialNo != ''"> and material_no = #{materialNo}</if> |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
</mapper> |