|
@ -30,6 +30,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<result property="createBy" column="create_by" /> |
|
|
<result property="createBy" column="create_by" /> |
|
|
<result property="updateBy" column="update_by" /> |
|
|
<result property="updateBy" column="update_by" /> |
|
|
<result property="updateTime" column="update_time" /> |
|
|
<result property="updateTime" column="update_time" /> |
|
|
|
|
|
<result property="scrapDate" column="scrap_date" /> |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
|
|
|
|
|
|
<sql id="selectWarehouseInventoryReportDamageChildVo"> |
|
|
<sql id="selectWarehouseInventoryReportDamageChildVo"> |
|
@ -38,7 +39,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
actual_scrap_quantity, scrap_type, scrap_detail, quality_assessment, |
|
|
actual_scrap_quantity, scrap_type, scrap_detail, quality_assessment, |
|
|
estimated_value_rmb, responsible_unit, remark, warehouse_code, warehouse_name, |
|
|
estimated_value_rmb, responsible_unit, remark, warehouse_code, warehouse_name, |
|
|
warehouse_store_address, apply_dept_id, apply_dept, create_time, create_by, |
|
|
warehouse_store_address, apply_dept_id, apply_dept, create_time, create_by, |
|
|
update_by, update_time, material_unit |
|
|
update_by, update_time, material_unit, scrap_date |
|
|
from warehouse_inventory_report_damage_child |
|
|
from warehouse_inventory_report_damage_child |
|
|
</sql> |
|
|
</sql> |
|
|
|
|
|
|
|
@ -64,6 +65,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="warehouseStoreAddress != null and warehouseStoreAddress != ''"> and warehouse_store_address = #{warehouseStoreAddress}</if> |
|
|
<if test="warehouseStoreAddress != null and warehouseStoreAddress != ''"> and warehouse_store_address = #{warehouseStoreAddress}</if> |
|
|
<if test="applyDeptId != null and applyDeptId != ''"> and apply_dept_id = #{applyDeptId}</if> |
|
|
<if test="applyDeptId != null and applyDeptId != ''"> and apply_dept_id = #{applyDeptId}</if> |
|
|
<if test="applyDept != null and applyDept != ''"> and apply_dept = #{applyDept}</if> |
|
|
<if test="applyDept != null and applyDept != ''"> and apply_dept = #{applyDept}</if> |
|
|
|
|
|
<if test="scrapDate != null and scrapDate != ''"> and scrap_date = #{scrapDate}</if> |
|
|
</where> |
|
|
</where> |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
@ -103,6 +105,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="createBy != null">create_by,</if> |
|
|
<if test="createBy != null">create_by,</if> |
|
|
<if test="updateBy != null">update_by,</if> |
|
|
<if test="updateBy != null">update_by,</if> |
|
|
<if test="updateTime != null">update_time,</if> |
|
|
<if test="updateTime != null">update_time,</if> |
|
|
|
|
|
<if test="scrapDate != null">scrap_date,</if> |
|
|
</trim> |
|
|
</trim> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<if test="makeNo != null">#{makeNo},</if> |
|
|
<if test="makeNo != null">#{makeNo},</if> |
|
@ -130,6 +133,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="createBy != null">#{createBy},</if> |
|
|
<if test="createBy != null">#{createBy},</if> |
|
|
<if test="updateBy != null">#{updateBy},</if> |
|
|
<if test="updateBy != null">#{updateBy},</if> |
|
|
<if test="updateTime != null">#{updateTime},</if> |
|
|
<if test="updateTime != null">#{updateTime},</if> |
|
|
|
|
|
<if test="scrapDate != null">#{scrapDate},</if> |
|
|
</trim> |
|
|
</trim> |
|
|
</insert> |
|
|
</insert> |
|
|
|
|
|
|
|
@ -161,6 +165,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="createBy != null">create_by = #{createBy},</if> |
|
|
<if test="createBy != null">create_by = #{createBy},</if> |
|
|
<if test="updateBy != null">update_by = #{updateBy},</if> |
|
|
<if test="updateBy != null">update_by = #{updateBy},</if> |
|
|
<if test="updateTime != null">update_time = #{updateTime},</if> |
|
|
<if test="updateTime != null">update_time = #{updateTime},</if> |
|
|
|
|
|
<if test="scrapDate != null">scrap_date = #{scrapDate},</if> |
|
|
</trim> |
|
|
</trim> |
|
|
where report_damage_child_id = #{reportDamageChildId} |
|
|
where report_damage_child_id = #{reportDamageChildId} |
|
|
</update> |
|
|
</update> |
|
@ -197,4 +202,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<update id="restoreWarehouseInventoryReportDamageChildByCode" parameterType="String"> |
|
|
<update id="restoreWarehouseInventoryReportDamageChildByCode" parameterType="String"> |
|
|
update warehouse_inventory_report_damage_child set del_flag = '0' where report_damage_code = #{reportDamageCode} |
|
|
update warehouse_inventory_report_damage_child set del_flag = '0' where report_damage_code = #{reportDamageCode} |
|
|
</update> |
|
|
</update> |
|
|
|
|
|
|
|
|
|
|
|
<select id="selectWarehouseInventoryReportDamageChildByCodes" parameterType="String" resultMap="WarehouseInventoryReportDamageChildResult"> |
|
|
|
|
|
<include refid="selectWarehouseInventoryReportDamageChildVo"/> |
|
|
|
|
|
where report_damage_code in |
|
|
|
|
|
<foreach item="reportDamageCode" collection="array" open="(" separator="," close=")"> |
|
|
|
|
|
#{reportDamageCode} |
|
|
|
|
|
</foreach> |
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
</mapper> |
|
|
</mapper> |