...
|
...
|
@@ -3,6 +3,7 @@ package com.tianbo.analysis.service.imp; |
|
|
import com.tianbo.analysis.dao.OriginmanifestsecondaryMapper;
|
|
|
import com.tianbo.analysis.dao.TBBaseAirportInfoDao;
|
|
|
import com.tianbo.analysis.model.Originmanifestsecondary;
|
|
|
import com.tianbo.analysis.model.ResultJson;
|
|
|
import com.tianbo.analysis.service.FHLResolve;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
...
|
...
|
@@ -18,14 +19,21 @@ public class FHLResolveImpl implements FHLResolve { |
|
|
OriginmanifestsecondaryMapper mapper;
|
|
|
|
|
|
@Override
|
|
|
public boolean resolve(Originmanifestsecondary fhl) {
|
|
|
public ResultJson resolve(Originmanifestsecondary fhl) {
|
|
|
ResultJson resultJson = new ResultJson();
|
|
|
try{
|
|
|
fhl.textToStringList();
|
|
|
fhl.startParse();
|
|
|
if(fhl.startParse()){
|
|
|
resultJson.setMsg("解析报文成功");
|
|
|
resultJson.setCode("200");
|
|
|
}
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
resultJson.setMsg("解析报文失败");
|
|
|
resultJson.setCode("400");
|
|
|
resultJson.setError(e.toString());
|
|
|
}
|
|
|
return false;
|
|
|
return resultJson;
|
|
|
}
|
|
|
|
|
|
|
...
|
...
|
|