...
|
...
|
@@ -4,6 +4,7 @@ import com.github.pagehelper.PageHelper; |
|
|
import com.github.pagehelper.PageInfo;
|
|
|
import com.tianbo.analysis.config.CustomsProperties;
|
|
|
import com.tianbo.analysis.dao.TRANSTOARRIVEEXPORTMapper;
|
|
|
import com.tianbo.analysis.model.MANIFEST_AIR_CHANGE;
|
|
|
import com.tianbo.analysis.model.ResultJson;
|
|
|
import com.tianbo.analysis.model.TRANSTOARRIVEEXPORT;
|
|
|
import com.tianbo.analysis.service.TransArriveExportService;
|
...
|
...
|
@@ -75,7 +76,9 @@ public class TransArriveExportImpl implements TransArriveExportService { |
|
|
record.setApplycode(customsProperties.getApplyCode());
|
|
|
record.setApplyname(customsProperties.getApplyName());
|
|
|
record.setCopcode(customsProperties.getCopCode());
|
|
|
record.setCustomscode("4604");
|
|
|
record.setClientseqno(customsProperties.getTransarrive().getClientSeqno());
|
|
|
record.setHostid(customsProperties.getTransarrive().getHostId());
|
|
|
record.setCertno(customsProperties.getTransarrive().getCertNo());
|
|
|
//操作员IC卡号
|
|
|
record.setInputopid(customsProperties.getInputOpId());
|
|
|
// 操作员姓名
|
...
|
...
|
@@ -104,6 +107,7 @@ public class TransArriveExportImpl implements TransArriveExportService { |
|
|
* 中文的地方在模板中要用utext,否则中文会被 escape 转义
|
|
|
*/
|
|
|
String xmlStr = templateEngine.process("transToArrive/EXPORT_DECLARE_TPL.xml",context);
|
|
|
log.info("[XML-INFO]\n{}",xmlStr);
|
|
|
|
|
|
boolean valied = XmlTools.validateXMLSchemaThrowError("xsd/ETAImportMessage.xsd", xmlStr);
|
|
|
if (valied) {
|
...
|
...
|
@@ -146,7 +150,21 @@ public class TransArriveExportImpl implements TransArriveExportService { |
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public ResultJson batchSend(TRANSTOARRIVEEXPORT var) {
|
|
|
return null;
|
|
|
public ResultJson batchSend(List<String> autoIDlist) {
|
|
|
ResultJson resultJson = new ResultJson();
|
|
|
List<TRANSTOARRIVEEXPORT> list = selectListByAutoIDS(autoIDlist);
|
|
|
for (TRANSTOARRIVEEXPORT manifestAirChange : list) {
|
|
|
ResultJson result = send(manifestAirChange);
|
|
|
/*if (!result){
|
|
|
message = message + manifestAirChange.getWaybillnomaster() +"发送失败\n";
|
|
|
}*/
|
|
|
}
|
|
|
return resultJson;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public List<TRANSTOARRIVEEXPORT> selectListByAutoIDS(List<String> autoIDlist) {
|
|
|
List<TRANSTOARRIVEEXPORT> list = mapper.selectListByAutoIDS(autoIDlist);
|
|
|
return list;
|
|
|
}
|
|
|
} |
...
|
...
|
|