This commit is contained in:
linfso 2024-06-18 06:01:00 +08:00
parent 77ff55b03c
commit bf499f1468

View File

@ -198,9 +198,10 @@ public class EmisTmsScanRecordServiceImpl extends EmisBaseService implements IEm
int scanCnt=emisTmsScanRecordMapper.checkSiteScanUnique(billCode,scanType,getCurrentUser().getOwnerSiteCode(),scanDate);
if(scanCnt>0){
scanResultItem.setResult("fail");
scanResultItem.setMessage("重复扫描");
scanResultItem.setMessage(""+billCode+"已["+scanTypeLabel+"]");
itemList.add(scanResultItem);
throw new EmisBizError(EmisBizErrorType.EXISTS,"重复扫描");
String scanTypeLabel=DictUtils.getDictLabel("emis_scan_type",scanType);
throw new EmisBizError(EmisBizErrorType.EXISTS,""+billCode+"已["+scanTypeLabel+"]");
// continue;
}
@ -313,9 +314,11 @@ public class EmisTmsScanRecordServiceImpl extends EmisBaseService implements IEm
int scanCnt=emisTmsScanRecordMapper.checkSiteScanUnique(billCode,scanType,getCurrentUser().getOwnerSiteCode(),scanDate);
if(scanCnt>0){
scanResultItem.setResult("fail");
scanResultItem.setMessage("重复扫描");
scanResultItem.setMessage("单号["+billCode+"]重复扫描");
itemList.add(scanResultItem);
throw new EmisBizError(EmisBizErrorType.EXISTS,"重复扫描");
// T12312321已[转件扫描]
String scanTypeLabel=DictUtils.getDictLabel("emis_scan_type",scanType);
throw new EmisBizError(EmisBizErrorType.EXISTS,""+billCode+"已["+scanTypeLabel+"]");
}
// 生成扫描记录并填充公共数据