作者 朱兆平

bug-fix:解决批量申报时没有通过报文字典校验的问题

Signed-off-by: mrz <17966059@qq.com>
@@ -22,6 +22,7 @@ import org.springframework.beans.factory.annotation.Autowired; @@ -22,6 +22,7 @@ import org.springframework.beans.factory.annotation.Autowired;
22 import org.springframework.beans.factory.annotation.Value; 22 import org.springframework.beans.factory.annotation.Value;
23 import org.springframework.stereotype.Service; 23 import org.springframework.stereotype.Service;
24 import org.springframework.util.ResourceUtils; 24 import org.springframework.util.ResourceUtils;
  25 +import org.springframework.util.StringUtils;
25 import org.thymeleaf.TemplateEngine; 26 import org.thymeleaf.TemplateEngine;
26 import org.thymeleaf.context.Context; 27 import org.thymeleaf.context.Context;
27 import org.thymeleaf.exceptions.TemplateInputException; 28 import org.thymeleaf.exceptions.TemplateInputException;
@@ -187,6 +188,9 @@ public class TransArriveExportImpl implements TransArriveExportService { @@ -187,6 +188,9 @@ public class TransArriveExportImpl implements TransArriveExportService {
187 ResultJson resultJson = new ResultJson(); 188 ResultJson resultJson = new ResultJson();
188 List<TRANSTOARRIVEEXPORT> list = selectListByAutoIDS(autoIDlist); 189 List<TRANSTOARRIVEEXPORT> list = selectListByAutoIDS(autoIDlist);
189 for (TRANSTOARRIVEEXPORT manifestAirChange : list) { 190 for (TRANSTOARRIVEEXPORT manifestAirChange : list) {
  191 + if (StringUtils.isEmpty(manifestAirChange.getOpertype())){
  192 + manifestAirChange.setOpertype("C");
  193 + }
190 resultJson = send(manifestAirChange); 194 resultJson = send(manifestAirChange);
191 /*if (!result){ 195 /*if (!result){
192 message = message + manifestAirChange.getWaybillnomaster() +"发送失败\n"; 196 message = message + manifestAirChange.getWaybillnomaster() +"发送失败\n";