|
@ -24,19 +24,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<result property="unit" column="unit" /> |
|
|
<result property="unit" column="unit" /> |
|
|
<result property="brand" column="brand" /> |
|
|
<result property="brand" column="brand" /> |
|
|
<result property="describe" column="describe" /> |
|
|
<result property="describe" column="describe" /> |
|
|
|
|
|
<result property="materialModel" column="material_model" /> |
|
|
<result property="warehouseDept" column="warehouseDept" /> |
|
|
<result property="warehouseDept" column="warehouseDept" /> |
|
|
<result property="useNum" column="use_num" /> |
|
|
<result property="useNum" column="use_num" /> |
|
|
<result property="lossRate" column="loss_rate" /> |
|
|
<result property="lossRate" column="loss_rate" /> |
|
|
<result property="level" column="level" /> |
|
|
<result property="level" column="level" /> |
|
|
<result property="sortNo" column="sort_no" /> |
|
|
<result property="sortNo" column="sort_no" /> |
|
|
<result property="hasOutNum" column="has_out_num" /> |
|
|
<result property="hasOutNum" column="has_out_num" /> |
|
|
|
|
|
<result property="orderNum" column="order_num" /> |
|
|
|
|
|
<result property="deliveryTime" column="delivery_time" /> |
|
|
|
|
|
<result property="finishNum" column="finish_num" /> |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
|
|
|
|
|
|
<sql id="selectSysMakeorderBomVo"> |
|
|
<sql id="selectSysMakeorderBomVo"> |
|
|
select id, del_flag, create_by, create_time, update_by, update_time, |
|
|
select id, del_flag, create_by, create_time, update_by, update_time, |
|
|
remark, make_no, sales_order_code, sales_order_material_no, |
|
|
remark, make_no, sales_order_code, sales_order_material_no, |
|
|
bom_no, material_no, photoUrl, material_name, material_type, process_method, unit, brand, `describe`, |
|
|
bom_no, material_no, photoUrl, material_name,material_type, |
|
|
warehouseDept, use_num, loss_rate, level, sort_no, has_out_num from sys_makeorder_bom |
|
|
process_method, unit, brand, `describe`,material_model, |
|
|
|
|
|
warehouseDept, use_num, loss_rate, `level`, sort_no, has_out_num, |
|
|
|
|
|
order_num,delivery_time, finish_num |
|
|
|
|
|
from sys_makeorder_bom |
|
|
</sql> |
|
|
</sql> |
|
|
|
|
|
|
|
|
<select id="selectSysMakeorderBomList" parameterType="SysMakeorderBom" resultMap="SysMakeorderBomResult"> |
|
|
<select id="selectSysMakeorderBomList" parameterType="SysMakeorderBom" resultMap="SysMakeorderBomResult"> |
|
@ -54,10 +61,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="unit != null and unit != ''"> and unit = #{unit}</if> |
|
|
<if test="unit != null and unit != ''"> and unit = #{unit}</if> |
|
|
<if test="brand != null and brand != ''"> and brand = #{brand}</if> |
|
|
<if test="brand != null and brand != ''"> and brand = #{brand}</if> |
|
|
<if test="describe != null and describe != ''"> and `describe` = #{describe}</if> |
|
|
<if test="describe != null and describe != ''"> and `describe` = #{describe}</if> |
|
|
|
|
|
<if test="materialModel != null and materialModel != ''"> and material_model = #{materialModel}</if> |
|
|
<if test="warehouseDept != null and warehouseDept != ''"> and warehouseDept = #{warehouseDept}</if> |
|
|
<if test="warehouseDept != null and warehouseDept != ''"> and warehouseDept = #{warehouseDept}</if> |
|
|
<if test="useNum != null "> and use_num = #{useNum}</if> |
|
|
<if test="useNum != null "> and use_num = #{useNum}</if> |
|
|
<if test="lossRate != null "> and loss_rate = #{lossRate}</if> |
|
|
<if test="lossRate != null "> and loss_rate = #{lossRate}</if> |
|
|
<if test="level != null "> and level = #{level}</if> |
|
|
<if test="level != null "> and `level` = #{level}</if> |
|
|
<if test="sortNo != null "> and sort_no = #{sortNo}</if> |
|
|
<if test="sortNo != null "> and sort_no = #{sortNo}</if> |
|
|
</where> |
|
|
</where> |
|
|
order by sort_no |
|
|
order by sort_no |
|
@ -97,9 +105,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="warehouseDept != null">warehouseDept,</if> |
|
|
<if test="warehouseDept != null">warehouseDept,</if> |
|
|
<if test="useNum != null">use_num,</if> |
|
|
<if test="useNum != null">use_num,</if> |
|
|
<if test="lossRate != null">loss_rate,</if> |
|
|
<if test="lossRate != null">loss_rate,</if> |
|
|
<if test="level != null">level,</if> |
|
|
<if test="level != null">`level`,</if> |
|
|
<if test="sortNo != null">sort_no,</if> |
|
|
<if test="sortNo != null">sort_no,</if> |
|
|
<if test="hasOutNum != null">has_out_num,</if> |
|
|
<if test="hasOutNum != null">has_out_num,</if> |
|
|
|
|
|
<if test="materialModel != null">material_model,</if> |
|
|
|
|
|
<if test="orderNum != null">order_num,</if> |
|
|
|
|
|
<if test="deliveryTime != null">delivery_time,</if> |
|
|
|
|
|
<if test="finishNum != null">finish_num,</if> |
|
|
</trim> |
|
|
</trim> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<if test="delFlag != null">#{delFlag},</if> |
|
|
<if test="delFlag != null">#{delFlag},</if> |
|
@ -126,6 +138,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="level != null">#{level},</if> |
|
|
<if test="level != null">#{level},</if> |
|
|
<if test="sortNo != null">#{sortNo},</if> |
|
|
<if test="sortNo != null">#{sortNo},</if> |
|
|
<if test="hasOutNum != null">#{hasOutNum},</if> |
|
|
<if test="hasOutNum != null">#{hasOutNum},</if> |
|
|
|
|
|
<if test="materialModel != null">#{materialModel},</if> |
|
|
|
|
|
<if test="orderNum != null">#{orderNum},</if> |
|
|
|
|
|
<if test="deliveryTime != null">#{deliveryTime},</if> |
|
|
|
|
|
<if test="finishNum != null">#{finishNum},</if> |
|
|
</trim> |
|
|
</trim> |
|
|
</insert> |
|
|
</insert> |
|
|
|
|
|
|
|
@ -153,9 +169,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="warehouseDept != null">warehouseDept = #{warehouseDept},</if> |
|
|
<if test="warehouseDept != null">warehouseDept = #{warehouseDept},</if> |
|
|
<if test="useNum != null">use_num = #{useNum},</if> |
|
|
<if test="useNum != null">use_num = #{useNum},</if> |
|
|
<if test="lossRate != null">loss_rate = #{lossRate},</if> |
|
|
<if test="lossRate != null">loss_rate = #{lossRate},</if> |
|
|
<if test="level != null">level = #{level},</if> |
|
|
<if test="level != null">`level` = #{level},</if> |
|
|
<if test="sortNo != null">sort_no = #{sortNo},</if> |
|
|
<if test="sortNo != null">sort_no = #{sortNo},</if> |
|
|
<if test="hasOutNum != null">has_out_num = #{hasOutNum},</if> |
|
|
<if test="hasOutNum != null">has_out_num = #{hasOutNum},</if> |
|
|
|
|
|
<if test="materialModel != null">material_model = #{materialModel},</if> |
|
|
|
|
|
<if test="orderNum != null">order_num = #{orderNum},</if> |
|
|
|
|
|
<if test="deliveryTime != null">delivery_time = #{deliveryTime},</if> |
|
|
|
|
|
<if test="finishNum != null">finish_num = #{finishNum},</if> |
|
|
</trim> |
|
|
</trim> |
|
|
where id = #{id} |
|
|
where id = #{id} |
|
|
</update> |
|
|
</update> |
|
@ -186,4 +206,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="materialNo != null and materialNo != ''"> and material_no = #{materialNo}</if> |
|
|
<if test="materialNo != null and materialNo != ''"> and material_no = #{materialNo}</if> |
|
|
</where> |
|
|
</where> |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
<delete id="deleteSysMakeorderBomByNos" parameterType="SysMakeorderBom"> |
|
|
|
|
|
delete from sys_makeorder_bom |
|
|
|
|
|
where make_no = #{makeNo} |
|
|
|
|
|
and sales_order_code = #{salesOrderCode} |
|
|
|
|
|
and sales_order_material_no = #{salesOrderMaterialNo} |
|
|
|
|
|
</delete> |
|
|
|
|
|
|
|
|
</mapper> |
|
|
</mapper> |