|
|
|
@ -13,6 +13,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<result property="planDetailCode" column="plan_detail_code" />
|
|
|
|
|
<result property="productId" column="product_id" />
|
|
|
|
|
<result property="materialId" column="material_id" />
|
|
|
|
|
<result property="materialBarcode" column="material_barcode" />
|
|
|
|
|
<result property="endStationCode" column="end_station_code" />
|
|
|
|
|
<result property="batchCode" column="batch_code" />
|
|
|
|
|
<result property="planAmount" column="plan_amount" />
|
|
|
|
|
<result property="returnAmount" column="return_amount" />
|
|
|
|
|
<result property="operationType" column="operation_type" />
|
|
|
|
@ -61,7 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectWmsRawReturnVo">
|
|
|
|
|
select raw_return_id, task_code, warehouse_id, location_code, plan_code, plan_detail_code, product_id, operation_type, task_type, apply_reason, audit_reason, audit_status, execute_status, apply_by, apply_date, audit_by, audit_date, update_by, update_date, begin_time, end_time from wms_raw_return
|
|
|
|
|
select raw_return_id, task_code, warehouse_id, location_code, plan_code, plan_detail_code, product_id, material_id, plan_amount, return_amount, operation_type, task_type, apply_reason, audit_reason, audit_status, execute_status, apply_by, apply_date, audit_by, audit_date, update_by, update_date, begin_time, end_time, material_barcode, end_station_code, batch_code from wms_raw_return
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectWmsRawReturnList" parameterType="WmsRawReturn" resultMap="WmsRawReturnResult">
|
|
|
|
@ -110,7 +113,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="productId != null">product_id,</if>
|
|
|
|
|
<if test="materialId != null">material_id,</if>
|
|
|
|
|
<if test="planAmount != null">plan_amount,</if>
|
|
|
|
|
<if test="operationType != null">operation_type,</if>
|
|
|
|
|
<if test="returnAmount != null">return_amount,</if>
|
|
|
|
|
<if test="operationType != null and operationType != ''">operation_type,</if>
|
|
|
|
|
<if test="taskType != null and taskType != ''">task_type,</if>
|
|
|
|
|
<if test="applyReason != null">apply_reason,</if>
|
|
|
|
|
<if test="auditReason != null">audit_reason,</if>
|
|
|
|
@ -124,7 +128,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="updateDate != null">update_date,</if>
|
|
|
|
|
<if test="beginTime != null">begin_time,</if>
|
|
|
|
|
<if test="endTime != null">end_time,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<if test="materialBarcode != null">material_barcode,</if>
|
|
|
|
|
<if test="endStationCode != null">end_station_code,</if>
|
|
|
|
|
<if test="batchCode != null">batch_code,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="taskCode != null and taskCode != ''">#{taskCode},</if>
|
|
|
|
|
<if test="warehouseId != null">#{warehouseId},</if>
|
|
|
|
@ -134,7 +141,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="productId != null">#{productId},</if>
|
|
|
|
|
<if test="materialId != null">#{materialId},</if>
|
|
|
|
|
<if test="planAmount != null">#{planAmount},</if>
|
|
|
|
|
<if test="operationType != null">#{operationType},</if>
|
|
|
|
|
<if test="returnAmount != null">#{returnAmount},</if>
|
|
|
|
|
<if test="operationType != null and operationType != ''">#{operationType},</if>
|
|
|
|
|
<if test="taskType != null and taskType != ''">#{taskType},</if>
|
|
|
|
|
<if test="applyReason != null">#{applyReason},</if>
|
|
|
|
|
<if test="auditReason != null">#{auditReason},</if>
|
|
|
|
@ -148,7 +156,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="updateDate != null">#{updateDate},</if>
|
|
|
|
|
<if test="beginTime != null">#{beginTime},</if>
|
|
|
|
|
<if test="endTime != null">#{endTime},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<if test="materialBarcode != null">#{materialBarcode},</if>
|
|
|
|
|
<if test="endStationCode != null">#{endStationCode},</if>
|
|
|
|
|
<if test="batchCode != null">#{batchCode},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<update id="updateWmsRawReturn" parameterType="WmsRawReturn">
|
|
|
|
@ -163,7 +174,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="materialId != null">material_id = #{materialId},</if>
|
|
|
|
|
<if test="planAmount != null">plan_amount = #{planAmount},</if>
|
|
|
|
|
<if test="returnAmount != null">return_amount = #{returnAmount},</if>
|
|
|
|
|
<if test="operationType != null">operation_type = #{operationType},</if>
|
|
|
|
|
<if test="operationType != null and operationType != ''">operation_type = #{operationType},</if>
|
|
|
|
|
<if test="taskType != null and taskType != ''">task_type = #{taskType},</if>
|
|
|
|
|
<if test="applyReason != null">apply_reason = #{applyReason},</if>
|
|
|
|
|
<if test="auditReason != null">audit_reason = #{auditReason},</if>
|
|
|
|
@ -177,6 +188,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="updateDate != null">update_date = #{updateDate},</if>
|
|
|
|
|
<if test="beginTime != null">begin_time = #{beginTime},</if>
|
|
|
|
|
<if test="endTime != null">end_time = #{endTime},</if>
|
|
|
|
|
<if test="materialBarcode != null">material_barcode = #{materialBarcode},</if>
|
|
|
|
|
<if test="endStationCode != null">end_station_code = #{endStationCode},</if>
|
|
|
|
|
<if test="batchCode != null">batch_code = #{batchCode},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where raw_return_id = #{rawReturnId}
|
|
|
|
|
</update>
|
|
|
|
@ -239,5 +253,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
where wrr.raw_return_id = #{rawReturnId}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<insert id="batchWmsRawReturn">
|
|
|
|
|
insert into wms_raw_return( raw_return_id, task_code, warehouse_id, location_code, plan_code, plan_detail_code, product_id, material_id, plan_amount, return_amount, operation_type, task_type, apply_reason, audit_reason, audit_status, execute_status, apply_by, apply_date, audit_by, audit_date, update_by, update_date, begin_time, end_time, material_barcode, end_station_code, batch_code) values
|
|
|
|
|
<foreach item="item" index="index" collection="list" separator=",">
|
|
|
|
|
( #{item.rawReturnId}, #{item.taskCode}, #{item.warehouseId}, #{item.locationCode}, #{item.planCode}, #{item.planDetailCode}, #{item.productId}, #{item.materialId}, #{item.planAmount}, #{item.returnAmount}, #{item.operationType}, #{item.taskType}, #{item.applyReason}, #{item.auditReason}, #{item.auditStatus}, #{item.executeStatus}, #{item.applyBy}, #{item.applyDate}, #{item.auditBy}, #{item.auditDate}, #{item.updateBy}, #{item.updateDate}, #{item.beginTime}, #{item.endTime}, #{item.materialBarcode}, #{item.endStationCode}, #{item.batchCode})
|
|
|
|
|
</foreach>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</mapper>
|
|
|
|
|