...
|
...
|
@@ -5,9 +5,7 @@ import com.github.pagehelper.PageHelper; |
|
|
import com.github.pagehelper.PageInfo;
|
|
|
import com.tianbo.analysis.dao.MANIFEST_AIR_CHANGEMapper;
|
|
|
import com.tianbo.analysis.dao.SENDLOGMapper;
|
|
|
import com.tianbo.analysis.model.CustomsHead;
|
|
|
import com.tianbo.analysis.model.MANIFEST_AIR_CHANGE;
|
|
|
import com.tianbo.analysis.model.SENDLOG;
|
|
|
import com.tianbo.analysis.model.*;
|
|
|
import com.tianbo.analysis.service.MT8204Service;
|
|
|
import com.tianbo.util.Date.DateUtil;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
...
|
...
|
@@ -75,6 +73,12 @@ public class MT8204ServiceImp implements MT8204Service { |
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public List<MANIFEST_AIR_CHANGE> selectListByAutoIDS(List<String> autoIDlist){
|
|
|
List<MANIFEST_AIR_CHANGE> list = manifest_air_changeMapper.selectListByAutoIDS(autoIDlist);
|
|
|
return list;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public boolean add(MANIFEST_AIR_CHANGE record) {
|
|
|
if (record.getWaybillList()!=null && !record.getWaybillList().isEmpty()){
|
|
|
int i=0;
|
...
|
...
|
@@ -191,6 +195,23 @@ public class MT8204ServiceImp implements MT8204Service { |
|
|
}
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public ResultJson batchSend(List<String> autoIDlist, String username) {
|
|
|
ResultJson resultJson = new ResultJson();
|
|
|
String message = "";
|
|
|
List<MANIFEST_AIR_CHANGE> list = selectListByAutoIDS(autoIDlist);
|
|
|
for (MANIFEST_AIR_CHANGE manifestAirChange : list) {
|
|
|
boolean result = send(manifestAirChange,username);
|
|
|
if (!result){
|
|
|
message = message + manifestAirChange.getWaybillnomaster() +"发送失败\n";
|
|
|
}
|
|
|
}
|
|
|
resultJson.setCode("200");
|
|
|
resultJson.setMsg(message);
|
|
|
return resultJson;
|
|
|
|
|
|
}
|
|
|
|
|
|
public boolean validateXMLSchema(String xsdPath, String xmlStr) throws IOException {
|
|
|
ByteArrayInputStream bais = new ByteArrayInputStream(xmlStr.getBytes("UTF-8"));
|
|
|
try {
|
...
|
...
|
|