Browse Source

发货扫描 子表增加字段

master
赵宏斌 5 months ago
parent
commit
225419ebff
  1. 4
      src/main/java/com/heai/modules/pad/vo/DelNotifyDetailVo.java
  2. 10
      src/main/resources/mapper/pad/DelNotifyDetailMapper.xml

4
src/main/java/com/heai/modules/pad/vo/DelNotifyDetailVo.java

@ -22,4 +22,8 @@ public class DelNotifyDetailVo extends DelNotifyDetail {
private String contractNo;
private BigDecimal allNum;
private BigDecimal mdsl;
private BigDecimal zxds;
private BigDecimal zxsl;
private String zxgg;
}

10
src/main/resources/mapper/pad/DelNotifyDetailMapper.xml

@ -30,6 +30,10 @@
<result column="SubOrderType" property="subOrderType"/>
<result column="ContractNo" property="contractNo"/>
<result column="allNum" property="allNum"/>
<result column="mdsl" property="mdsl"/>
<result column="zxds" property="zxds"/>
<result column="zxsl" property="zxsl"/>
<result column="zxgg" property="zxgg"/>
</resultMap>
<select id="selectByDelNotifyNo" resultMap="getDelNotifyDetail">
@ -59,7 +63,11 @@
D.Ins_ApprovedBy,
D.Ins_ApprovedDate,
D.Ins_Remark,
(select sum(o.scan_qty) from outbound_label_scan o where o.Site = D.Site and o.del_notify_no = D.DelNotifyNo and o.del_notify_item_no = D.DelNotifyItemNo) as allNum
(select sum(o.scan_qty) from outbound_label_scan o where o.Site = D.Site and o.del_notify_no = D.DelNotifyNo and o.del_notify_item_no = D.DelNotifyItemNo) as allNum,
dbo.Get_Object_Properties_Value_Number(D.Site,'P',D.PartNo,1,'QTY/BAG') as mdsl,
dbo.Get_Object_Properties_Value_Number(D.Site,'P',D.PartNo,1,'BAG') as zxds,
dbo.Get_Object_Properties_Value_Number(D.Site,'P',D.PartNo,1,'QTY') as zxsl,
dbo.Get_Object_Properties_Value_Text(D.Site,'P',D.PartNo,1,'CARTON') as zxgg
from
dbo.CODelNotifyDetail as D,
dbo.COHeader as Y,

Loading…
Cancel
Save