盘点测试修改
This commit is contained in:
@@ -375,4 +375,51 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
and mj.in_or_out>=20
|
||||
|
||||
</select>
|
||||
<select id="selectPdMydoJobDetailListByExit" parameterType="MydoJob" resultMap="MydoJobDetailResult">
|
||||
select mjd.job_detail_id,
|
||||
mjd.job_id,
|
||||
mjd.stock_id,
|
||||
mjd.lot_no,
|
||||
mjd.in_date,
|
||||
mjd.in_or_out_id,
|
||||
mjd.in_or_out_d_id,
|
||||
mjd.product_guid,
|
||||
mjd.product_id,
|
||||
mjd.stock_status,
|
||||
mjd.in_quantity,
|
||||
mjd.stock_quantity,
|
||||
mjd.out_quantity,
|
||||
mjd.layer_quantity,
|
||||
mjd.out_layer_quantity,
|
||||
mjd.give_num,
|
||||
mjd.stockin_id,
|
||||
mjd.stacking_id,
|
||||
mjd.exit_id,
|
||||
mjd.print_date,
|
||||
mjd.customer_id,
|
||||
mjd.supplier_id,
|
||||
mjd.spare1,
|
||||
mjd.spare2,
|
||||
mjd.spare3,
|
||||
mjd.spare4,
|
||||
mjd.pick_quantity,
|
||||
mjd.out_quantity-mjd.pick_quantity as pick_quantity_real,
|
||||
bp.product_name,
|
||||
mjd.spare5,
|
||||
mjd.spare6,
|
||||
mjd.spare7,
|
||||
mjd.spare8,
|
||||
mjd.spare9,
|
||||
mjd.spec,
|
||||
mjd.unit,
|
||||
mj.tray_code
|
||||
|
||||
from mydo_job_detail mjd
|
||||
left join bas_product bp on mjd.product_id = bp.product_id
|
||||
left join mydo_job mj on mjd.job_id = mj.job_id
|
||||
where mj.exit_id=#{exitId}
|
||||
and mj.status='3'
|
||||
and mj.execution_phase=2
|
||||
and mj.in_or_out = #{inOrOut}
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user