|
|
|
@ -2255,6 +2255,10 @@ public class CoDelServiceImpl implements CoDelService { |
|
|
|
} else { |
|
|
|
notifyHeaderData = getCoDelNotifyHeaderData.get(0); |
|
|
|
} |
|
|
|
List<EcssCoDelNotifyHeaderData> headerData = coDelMapper.checkEcssDeclarationHeaderByDelNo(inData.getSite(), inData.getDelNo()); |
|
|
|
if (!headerData.isEmpty()) { |
|
|
|
throw new RuntimeException("报关单已经存在,请刷新界面!"); |
|
|
|
} |
|
|
|
//获取重量 |
|
|
|
EcssCoDelPalletHeader getAllWeight = coDelMapper.getAllWeight(inData.getSite(), inData.getDelNo(),inData.getBuNo()); |
|
|
|
if (getAllWeight == null) { |
|
|
|
@ -2343,6 +2347,10 @@ public class CoDelServiceImpl implements CoDelService { |
|
|
|
@Override |
|
|
|
@Transactional |
|
|
|
public void saveDeclaration(EcssDeclarationHeaderData inData) { |
|
|
|
List<EcssCoDelNotifyHeaderData> getCoDelNotifyHeaderData = coDelMapper.checkEcssDeclarationHeaderByDelNo(inData.getSite(), inData.getDelNo()); |
|
|
|
if (!getCoDelNotifyHeaderData.isEmpty()) { |
|
|
|
throw new RuntimeException("报关单已经存在,请刷新界面!"); |
|
|
|
} |
|
|
|
String transNo; |
|
|
|
coDelMapper.updateTransNo(inData.getSite(), "BG"); |
|
|
|
transNo = coDelMapper.getTransNo(inData.getSite(), "BG"); |
|
|
|
|