demand: 对接外部系统下单孟加拉单号改为12位

This commit is contained in:
aike 2026-01-22 15:17:43 +08:00
parent f8c2a2dbbe
commit 0752480fec

View File

@ -5481,6 +5481,20 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
*/
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);