|
|
@ -20,17 +20,27 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="processMethod" column="process_method" /> |
|
|
|
<result property="plannedOutsourceAmount" column="planned_outsource_amount" /> |
|
|
|
<result property="actualOutsourceAmount" column="actual_outsource_amount" /> |
|
|
|
<result property="takenMaterial" column="taken_material" /> |
|
|
|
<result property="takingMaterial" column="taking_material" /> |
|
|
|
<result property="notifyArrivedNum" column="notify_arrived_num" /> |
|
|
|
<result property="hasStorageNum" column="has_storage_num" /> |
|
|
|
<result property="outsourceProcessInfo" column="outsource_process_info" /> |
|
|
|
<result property="chargeUnitInfo" column="charge_unit_info" /> |
|
|
|
<result property="singleMaterialInfo" column="single_material_info" /> |
|
|
|
<result property="supplierInfo" column="supplier_info" /> |
|
|
|
<result property="deliveryTimeInfo" column="delivery_time_info" /> |
|
|
|
<result property="createBy" column="create_by" /> |
|
|
|
<result property="createTime" column="create_time" /> |
|
|
|
<result property="updateBy" column="update_by" /> |
|
|
|
<result property="updateTime" column="update_time" /> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="selectOutsourceStorageDetailVo"> |
|
|
|
select outsource_storage_detail_id, warehouse_storage_code, outsource_order_no, outsource_plan_code, correlation_codes, material_no, material_name, material_type, material_photo_url, description, brand, unit, process_method, planned_outsource_amount, actual_outsource_amount, taken_material, taking_material, outsource_process_info, charge_unit_info, single_material_info, supplier_info, delivery_time_info from outsource_storage_detail |
|
|
|
select outsource_storage_detail_id, warehouse_storage_code, outsource_order_no, |
|
|
|
outsource_plan_code, correlation_codes, material_no, material_name, |
|
|
|
material_type, material_photo_url, description, brand, unit, |
|
|
|
process_method, planned_outsource_amount, actual_outsource_amount, |
|
|
|
notify_arrived_num, has_storage_num, outsource_process_info, |
|
|
|
charge_unit_info, single_material_info, supplier_info,create_by,create_time, |
|
|
|
delivery_time_info,update_by,update_time from outsource_storage_detail |
|
|
|
</sql> |
|
|
|
|
|
|
|
<select id="selectOutsourceStorageDetailList" parameterType="OutsourceStorageDetail" resultMap="OutsourceStorageDetailResult"> |
|
|
@ -50,8 +60,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="processMethod != null and processMethod != ''"> and process_method = #{processMethod}</if> |
|
|
|
<if test="plannedOutsourceAmount != null "> and planned_outsource_amount = #{plannedOutsourceAmount}</if> |
|
|
|
<if test="actualOutsourceAmount != null "> and actual_outsource_amount = #{actualOutsourceAmount}</if> |
|
|
|
<if test="takenMaterial != null "> and taken_material = #{takenMaterial}</if> |
|
|
|
<if test="takingMaterial != null "> and taking_material = #{takingMaterial}</if> |
|
|
|
<if test="outsourceProcessInfo != null and outsourceProcessInfo != ''"> and outsource_process_info = #{outsourceProcessInfo}</if> |
|
|
|
<if test="chargeUnitInfo != null and chargeUnitInfo != ''"> and charge_unit_info = #{chargeUnitInfo}</if> |
|
|
|
<if test="singleMaterialInfo != null and singleMaterialInfo != ''"> and single_material_info = #{singleMaterialInfo}</if> |
|
|
@ -82,13 +90,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="processMethod != null">process_method,</if> |
|
|
|
<if test="plannedOutsourceAmount != null">planned_outsource_amount,</if> |
|
|
|
<if test="actualOutsourceAmount != null">actual_outsource_amount,</if> |
|
|
|
<if test="takenMaterial != null">taken_material,</if> |
|
|
|
<if test="takingMaterial != null">taking_material,</if> |
|
|
|
<if test="hasStorageNum != null">has_storage_num,</if> |
|
|
|
<if test="notifyArrivedNum != null">notify_arrived_num,</if> |
|
|
|
<if test="outsourceProcessInfo != null">outsource_process_info,</if> |
|
|
|
<if test="chargeUnitInfo != null">charge_unit_info,</if> |
|
|
|
<if test="singleMaterialInfo != null">single_material_info,</if> |
|
|
|
<if test="supplierInfo != null">supplier_info,</if> |
|
|
|
<if test="deliveryTimeInfo != null">delivery_time_info,</if> |
|
|
|
<if test="createBy != null">create_by,</if> |
|
|
|
<if test="createTime != null">create_time,</if> |
|
|
|
<if test="updateBy != null">update_by,</if> |
|
|
|
<if test="updateTime != null">update_time,</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="warehouseStorageCode != null and warehouseStorageCode != ''">#{warehouseStorageCode},</if> |
|
|
@ -105,13 +117,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="processMethod != null">#{processMethod},</if> |
|
|
|
<if test="plannedOutsourceAmount != null">#{plannedOutsourceAmount},</if> |
|
|
|
<if test="actualOutsourceAmount != null">#{actualOutsourceAmount},</if> |
|
|
|
<if test="takenMaterial != null">#{takenMaterial},</if> |
|
|
|
<if test="takingMaterial != null">#{takingMaterial},</if> |
|
|
|
<if test="hasStorageNum != null">#{hasStorageNum},</if> |
|
|
|
<if test="notifyArrivedNum != null">#{notifyArrivedNum},</if> |
|
|
|
<if test="outsourceProcessInfo != null">#{outsourceProcessInfo},</if> |
|
|
|
<if test="chargeUnitInfo != null">#{chargeUnitInfo},</if> |
|
|
|
<if test="singleMaterialInfo != null">#{singleMaterialInfo},</if> |
|
|
|
<if test="supplierInfo != null">#{supplierInfo},</if> |
|
|
|
<if test="deliveryTimeInfo != null">#{deliveryTimeInfo},</if> |
|
|
|
<if test="createBy != null">#{createBy},</if> |
|
|
|
<if test="createTime != null">#{createTime},</if> |
|
|
|
<if test="updateBy != null">#{updateBy},</if> |
|
|
|
<if test="updateTime != null">#{updateTime},</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
|
|
|
@ -132,13 +148,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="processMethod != null">process_method = #{processMethod},</if> |
|
|
|
<if test="plannedOutsourceAmount != null">planned_outsource_amount = #{plannedOutsourceAmount},</if> |
|
|
|
<if test="actualOutsourceAmount != null">actual_outsource_amount = #{actualOutsourceAmount},</if> |
|
|
|
<if test="takenMaterial != null">taken_material = #{takenMaterial},</if> |
|
|
|
<if test="takingMaterial != null">taking_material = #{takingMaterial},</if> |
|
|
|
<if test="hasStorageNum != null">has_storage_num = #{hasStorageNum},</if> |
|
|
|
<if test="notifyArrivedNum != null">notify_arrived_num = #{notifyArrivedNum},</if> |
|
|
|
<if test="outsourceProcessInfo != null">outsource_process_info = #{outsourceProcessInfo},</if> |
|
|
|
<if test="chargeUnitInfo != null">charge_unit_info = #{chargeUnitInfo},</if> |
|
|
|
<if test="singleMaterialInfo != null">single_material_info = #{singleMaterialInfo},</if> |
|
|
|
<if test="supplierInfo != null">supplier_info = #{supplierInfo},</if> |
|
|
|
<if test="deliveryTimeInfo != null">delivery_time_info = #{deliveryTimeInfo},</if> |
|
|
|
<if test="createBy != null">create_by = #{createBy},</if> |
|
|
|
<if test="createTime != null">create_time = #{createTime},</if> |
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if> |
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if> |
|
|
|
</trim> |
|
|
|
where outsource_storage_detail_id = #{outsourceStorageDetailId} |
|
|
|
</update> |
|
|
|