倒短磅推星空
This commit is contained in:
parent
de7f4ff4a0
commit
a03f5e90e0
|
@ -262,6 +262,13 @@ public class PoundBillServiceImpl extends ServiceImpl<PoundBillMapper, PoundBill
|
|||
{
|
||||
poundBill.initAddFields(poundBill);
|
||||
poundBill.setBillstate("1");
|
||||
//设置星空单据类型为直接调拨单
|
||||
poundBill.setSrcblltype("STK_TransferDirect");
|
||||
poundBill.setFid("0");
|
||||
poundBill.setFentity_fentryid("0");
|
||||
poundBill.setOaOrgNumber("HGGT");
|
||||
poundBill.setInStockNumber("CK001");
|
||||
poundBill.setOutStockNumber("CK001");
|
||||
//设置当前时间为过毛重时间
|
||||
poundBill.setWghdt(new Date());
|
||||
//设置当前登录人为毛重司磅员
|
||||
|
@ -278,7 +285,14 @@ public class PoundBillServiceImpl extends ServiceImpl<PoundBillMapper, PoundBill
|
|||
poundBill.setBillstate("2");
|
||||
}
|
||||
boolean save = save(poundBill);
|
||||
|
||||
if (empmqty != null && empmqty.compareTo(BigDecimal.ZERO) > 0){
|
||||
try {
|
||||
apiPostBack.makePoundBillFormData(poundBill.getId());
|
||||
} catch (IOException e) {
|
||||
throw new RuntimeException("磅单:" + poundBill.getUsrcode() + "推送星空时,出现异常:"+e.getMessage());
|
||||
}
|
||||
}
|
||||
//调用磅单回调接口。
|
||||
if(save){
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue