demand: 对接外部系统下单孟加拉单号改为12位
This commit is contained in:
parent
f8c2a2dbbe
commit
0752480fec
@ -5481,6 +5481,20 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
|||||||
*/
|
*/
|
||||||
private void addNewWaybillByExternal(EmisWaybill emisWaybillSave) throws EmisBizError {
|
private void addNewWaybillByExternal(EmisWaybill emisWaybillSave) throws EmisBizError {
|
||||||
|
|
||||||
|
// 如果是孟加拉单子,把运单号变为 12位
|
||||||
|
if("0880".equals(emisWaybillSave.getReceiveCountry()) || "0880".equals(emisWaybillSave.getSendCountry())){
|
||||||
|
if(emisWaybillSave.getBillCode().length()==14 && emisWaybillSave.getBillCode().startsWith("T7080")){
|
||||||
|
String str =emisWaybillSave.getBillCode();
|
||||||
|
String prefix=str.substring(0,6);
|
||||||
|
String other = str.substring(8);
|
||||||
|
|
||||||
|
String billCode=prefix+other;
|
||||||
|
emisWaybillSave.setBillCode(billCode);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
// 设定为客户下单,下单时间为当前时间
|
// 设定为客户下单,下单时间为当前时间
|
||||||
this.resetOmsWaybillData(emisWaybillSave);
|
this.resetOmsWaybillData(emisWaybillSave);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user