...
|
...
|
@@ -354,7 +354,8 @@ public class SecurityDeclarationController { |
|
|
|
|
|
|
|
|
//查询是否存在
|
|
|
if (securityDeclarationService.findWaybill(waybill) == 0 && manifestService.findWbm(waybill) == null){
|
|
|
if (securityDeclarationService.findWaybill(waybill) == 0){
|
|
|
if (manifestService.findWbm(waybill) == null){
|
|
|
//货物性质(类型)添加
|
|
|
for (String type: list){
|
|
|
SDCargoTypeEntity sdCargoTypeEntity = new SDCargoTypeEntity();
|
...
|
...
|
@@ -437,6 +438,10 @@ public class SecurityDeclarationController { |
|
|
|
|
|
model.setStatus(200);
|
|
|
}else {
|
|
|
model.setStatus(204);
|
|
|
}
|
|
|
|
|
|
}else {
|
|
|
model.setStatus(203);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -744,7 +749,7 @@ public class SecurityDeclarationController { |
|
|
String path = resource.getPath();
|
|
|
String s = path +"../../resource/img/bar_code/"+replace+".png";
|
|
|
//生成条形码
|
|
|
// BarCodeUtil.generateFile(replace, s);
|
|
|
BarCodeUtil.generateFile(replace, s);
|
|
|
|
|
|
model.addAttribute("path", replace);
|
|
|
|
...
|
...
|
|