47 lines
1.5 KiB
XML
47 lines
1.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.nflg.wms.repository.mapper.WmsQcReceiveItemMapper">
|
|
<select id="getTaskItem" resultType="com.nflg.wms.common.pojo.vo.QCTaskItemVO">
|
|
select id,
|
|
line_number,
|
|
item_code,
|
|
uom_code,
|
|
received_warehouse,
|
|
storage_location,
|
|
note_num,
|
|
item_name,
|
|
po_num,
|
|
po_line_number,
|
|
material_doc,
|
|
material_doc_year,
|
|
receipt_num
|
|
from wms_qc_receive_item
|
|
where receive_id = #{taskId}
|
|
and check_qty > in_qty
|
|
</select>
|
|
|
|
<update id="updateInQty">
|
|
update wms_qc_receive_item
|
|
set in_qty=in_qty + #{inQty},
|
|
unqualified_qty=unqualified_qty + #{unqualifiedQty},
|
|
qualified_qty=qualified_qty + #{qualifiedQty}
|
|
where id = #{id}
|
|
</update>
|
|
|
|
<update id="updateCheckNum">
|
|
update wms_qc_receive_item
|
|
set check_qty=check_qty + #{InspectionQty}
|
|
where note_num = #{ noteNum}
|
|
and line_number = #{ lineNumber}
|
|
and material_doc = #{materialDoc}
|
|
and item_code = #{ itemCode}
|
|
</update>
|
|
|
|
<select id="getUnReceivedItems" resultType="java.lang.Long">
|
|
select id
|
|
from wms_qc_receive_item
|
|
where receive_id = #{receiveId}
|
|
and receipt_num > in_qty
|
|
</select>
|
|
</mapper>
|