|
@@ -354,7 +354,8 @@ public class SecurityDeclarationController { |
|
@@ -354,7 +354,8 @@ public class SecurityDeclarationController { |
354
|
|
354
|
|
355
|
|
355
|
|
356
|
//查询是否存在
|
356
|
//查询是否存在
|
357
|
- if (securityDeclarationService.findWaybill(waybill) == 0 && manifestService.findWbm(waybill) == null){
|
357
|
+ if (securityDeclarationService.findWaybill(waybill) == 0){
|
|
|
358
|
+ if (manifestService.findWbm(waybill) == null){
|
358
|
//货物性质(类型)添加
|
359
|
//货物性质(类型)添加
|
359
|
for (String type: list){
|
360
|
for (String type: list){
|
360
|
SDCargoTypeEntity sdCargoTypeEntity = new SDCargoTypeEntity();
|
361
|
SDCargoTypeEntity sdCargoTypeEntity = new SDCargoTypeEntity();
|
|
@@ -437,6 +438,10 @@ public class SecurityDeclarationController { |
|
@@ -437,6 +438,10 @@ public class SecurityDeclarationController { |
437
|
|
438
|
|
438
|
model.setStatus(200);
|
439
|
model.setStatus(200);
|
439
|
}else {
|
440
|
}else {
|
|
|
441
|
+ model.setStatus(204);
|
|
|
442
|
+ }
|
|
|
443
|
+
|
|
|
444
|
+ }else {
|
440
|
model.setStatus(203);
|
445
|
model.setStatus(203);
|
441
|
}
|
446
|
}
|
442
|
|
447
|
|
|
@@ -744,7 +749,7 @@ public class SecurityDeclarationController { |
|
@@ -744,7 +749,7 @@ public class SecurityDeclarationController { |
744
|
String path = resource.getPath();
|
749
|
String path = resource.getPath();
|
745
|
String s = path +"../../resource/img/bar_code/"+replace+".png";
|
750
|
String s = path +"../../resource/img/bar_code/"+replace+".png";
|
746
|
//生成条形码
|
751
|
//生成条形码
|
747
|
-// BarCodeUtil.generateFile(replace, s);
|
752
|
+ BarCodeUtil.generateFile(replace, s);
|
748
|
|
753
|
|
749
|
model.addAttribute("path", replace);
|
754
|
model.addAttribute("path", replace);
|
750
|
|
755
|
|