Browse Source

修改箱数自动计算毛重净重

java8
han\hanst 3 months ago
parent
commit
108e49ec2f
  1. 16
      src/main/resources/mapper/ecss/CoDelMapper.xml

16
src/main/resources/mapper/ecss/CoDelMapper.xml

@ -1247,8 +1247,20 @@ left join ecss_CoDelNotifyHeader noHeader on a.site=noHeader.site and a.delNo=no
</update> </update>
<select id="selectBoxList" resultType="java.util.Map"> <select id="selectBoxList" resultType="java.util.Map">
select *,CONVERT(DECIMAL(20, 3),gross_weight) as grossWeight,CONVERT(DECIMAL(20, 3),net_weight) as netWeight from ecss_CoDelBoxList
where site = #{site} and bu_no = #{buNo} and delNo = #{delNo}
select a.*,
CONVERT(DECIMAL(20, 3),a.gross_weight) as grossWeight,
CONVERT(DECIMAL(20, 3),a.net_weight) as netWeight,
CONVERT(DECIMAL(20, 3),w.num_value) as boxWeight
from ecss_CoDelBoxList a
left join (
select top 1 b.site, b.bu_no, b.delNo, b.seq_no, b.part_no
from ecss_CoDelPalletDetail b
where b.site = #{site} and b.bu_no = #{buNo} and b.delNo = #{delNo}
group by b.site, b.bu_no, b.delNo, b.seq_no, b.part_no
) d on a.site = d.site and a.bu_no = d.bu_no and a.delNo = d.delNo and a.item_no = d.seq_no
left join part_sub_properties_value w on d.part_no = w.part_no and w.site = d.site and w.bu_no = d.bu_no
and w.record_type='ECSSPART' and w.code_no='BG001' and w.properties_item_no='BOXWEIGHT'
where a.site = #{site} and a.bu_no = #{buNo} and a.delNo = #{delNo}
</select> </select>
<update id="updateBoxInfo"> <update id="updateBoxInfo">

Loading…
Cancel
Save