This commit is contained in:
linfso 2024-06-19 19:44:00 +08:00
parent 965abc8654
commit 97581aa132

View File

@ -214,13 +214,13 @@ public class EmisTmsScanRecordServiceImpl extends EmisBaseService implements IEm
// 同站点,同动作,同一天不允许重复扫描
int scanCnt = emisTmsScanRecordMapper.checkSiteScanUnique(scanBillCode, scanType, getCurrentUser().getOwnerSiteCode());
if (scanCnt > 0) {
String scanTypeLabel = DictUtils.getDictLabel("emis_scan_type", scanType);
scanResultItem.setResult("fail");
scanResultItem.setMessage("重复扫描");
scanResultItem.setMessage(scanBillCode + "重复扫描["+scanTypeLabel+"]");
itemList.add(scanResultItem);
throw new EmisBizError(EmisBizErrorType.EXISTS, "重复扫描");
throw new EmisBizError(EmisBizErrorType.EXISTS, scanBillCode + "重复扫描["+scanTypeLabel+"]");
}
EmisWaybill emisWaybill = getWaybillByBillCode(mainBillCode);
// 返回数据