...
|
...
|
@@ -6,6 +6,7 @@ import com.tianbo.analysis.model.DEPARTURESLOADING; |
|
|
import com.tianbo.analysis.service.DEPARTURESLOADINGService;
|
|
|
import com.tianbo.util.Date.DateUtil;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
...
|
...
|
@@ -37,11 +38,8 @@ public class DEPARTURESLOADINGServiceImp implements DEPARTURESLOADINGService{ |
|
|
//回执内容
|
|
|
String reception = customReception.getResponseText();
|
|
|
String flightDateStr = customReception.getFlightDate();
|
|
|
Date flightDate = new Date();
|
|
|
if (flightDateStr != null){
|
|
|
flightDate = DateUtil.formatByyyyyMMdd(flightDateStr);
|
|
|
}
|
|
|
|
|
|
if (!StringUtils.isEmpty(flightDateStr)) {
|
|
|
Date flightDate = DateUtil.formatByyyyyMMdd(flightDateStr);
|
|
|
//设置主单回执、航班号、航班日期
|
|
|
DEPARTURESLOADING departuresloading = new DEPARTURESLOADING();
|
|
|
departuresloading.setReceiption(reception);
|
...
|
...
|
@@ -85,6 +83,9 @@ public class DEPARTURESLOADINGServiceImp implements DEPARTURESLOADINGService{ |
|
|
|
|
|
return shareServiceImp.share("MT4201", customReception);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
//未进入主分单解析 返回0 失败
|
|
|
return 0;
|
|
|
}
|
...
|
...
|
|