This commit is contained in:
linfso 2024-05-20 17:45:10 +08:00
parent 88c89a596c
commit 68bbc93c4f
2 changed files with 39 additions and 1 deletions

View File

@ -90,7 +90,7 @@ public enum ScanType {
DECLEARE_SUCCESS("701","报关放行"),
DECLEARE_FAIL("702","报关失败"),
CLEARANCE("800","清关开始"),
CLEARANCE("800","清关扫描"),
CLEARANCE_SUCCESS("801","清关放行"),
CLEARANCE_FAIL("802","清关失败"),

View File

@ -521,6 +521,44 @@ public class EmisTmsScanRecordServiceImpl extends EmisBaseService implements IEm
String carNo = (String)scanDataItem.get("carNo");
emisTmsScanRecord.setCarNo(carNo);
}
// 报关扫描
else if(ScanType.DECLEARE.opCode.equals(scanType)){
// 下一站
// String scanWeightStr = (String)scanDataItem.get("scanWeight");
String preOrNextStationCode = (String)scanDataItem.get("preOrNextStationCode");
if(!StringUtils.isEmpty(preOrNextStationCode)) {
EmisSite site=getSiteByCode(preOrNextStationCode);
emisTmsScanRecord.setPreOrNextStationCode(preOrNextStationCode);
emisTmsScanRecord.setPreOrNextStation(site.getSiteName());
emisTmsScanRecord.setPreOrNextStationPhone(site.getPhone());
// 当前站点
changeWaybillCurrentSite(emisTmsScanRecord.getBillCode(),emisTmsScanRecord.getScanSiteCode());
// 下一站点
changeWaybillNextSite(emisTmsScanRecord.getBillCode(),preOrNextStationCode);
}
}
// 清关扫描
else if(ScanType.CLEARANCE.opCode.equals(scanType)){
// 下一站
// String scanWeightStr = (String)scanDataItem.get("scanWeight");
String preOrNextStationCode = (String)scanDataItem.get("preOrNextStationCode");
if(!StringUtils.isEmpty(preOrNextStationCode)) {
EmisSite site=getSiteByCode(preOrNextStationCode);
emisTmsScanRecord.setPreOrNextStationCode(preOrNextStationCode);
emisTmsScanRecord.setPreOrNextStation(site.getSiteName());
emisTmsScanRecord.setPreOrNextStationPhone(site.getPhone());
// 当前站点
changeWaybillCurrentSite(emisTmsScanRecord.getBillCode(),emisTmsScanRecord.getScanSiteCode());
// 下一站点
changeWaybillNextSite(emisTmsScanRecord.getBillCode(),preOrNextStationCode);
}
}
}