Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
task3.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
首航-临时账号
task3.0
Commits
46be83ea
Commit
46be83ea
authored
Dec 10, 2020
by
java-温文海
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
油量接口插入
parent
42ea7fdd
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
220 additions
and
60 deletions
+220
-60
DspReleaseInfoTask.java
src/main/java/com/foc/DspReleaseInfoTask.java
+1
-1
StatisticalDao.java
src/main/java/com/foc/dao/StatisticalDao.java
+14
-0
DspReleaseInfo.java
src/main/java/com/foc/entity/DspReleaseInfo.java
+44
-0
DspReleaseInfoService.java
src/main/java/com/foc/service/DspReleaseInfoService.java
+116
-57
StatisticalMapper.xml
src/main/resources/mapper/StatisticalMapper.xml
+45
-0
mybatis-config.xml
src/main/resources/mybatis-config.xml
+0
-2
No files found.
src/main/java/com/foc/DspReleaseInfoTask.java
View file @
46be83ea
...
@@ -13,6 +13,6 @@ public class DspReleaseInfoTask {
...
@@ -13,6 +13,6 @@ public class DspReleaseInfoTask {
public
static
void
main
(
String
[]
args
)
throws
Exception
{
public
static
void
main
(
String
[]
args
)
throws
Exception
{
DspReleaseInfoService
.
init
();
DspReleaseInfoService
.
init
();
DspReleaseInfoService
.
buildGatewayRequestString
();
DspReleaseInfoService
.
addInfo
();
}
}
}
}
src/main/java/com/foc/dao/StatisticalDao.java
View file @
46be83ea
package
com
.
foc
.
dao
;
package
com
.
foc
.
dao
;
import
com.foc.entity.DspReleaseInfo
;
import
com.foc.entity.StatisticalEntity
;
import
com.foc.entity.StatisticalEntity
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
...
@@ -67,4 +68,17 @@ public interface StatisticalDao {
...
@@ -67,4 +68,17 @@ public interface StatisticalDao {
* @param list
* @param list
*/
*/
void
insertOrUpdateBatch
(
List
<
StatisticalEntity
>
list
);
void
insertOrUpdateBatch
(
List
<
StatisticalEntity
>
list
);
/**
* 获取航班号列表
* @return
*/
List
<
String
>
getFlightNoList
();
/**
* 批量新增或修改
* @param list
*/
void
insertDspReleaseInfo
(
List
<
DspReleaseInfo
>
list
);
}
}
src/main/java/com/foc/entity/DspReleaseInfo.java
0 → 100644
View file @
46be83ea
package
com
.
foc
.
entity
;
import
lombok.Data
;
import
java.util.Date
;
/**
*
* @Author wenwh
* @Date 14:43 2020/12/10
**/
@Data
public
class
DspReleaseInfo
{
private
String
sendTime
;
private
String
flightNo
;
private
String
std
;
private
String
acNo
;
private
String
depIataId
;
private
String
arrIataId
;
private
String
totalOil
;
private
String
dispatcherName
;
private
String
extraOilFuelReason
;
private
String
eET
;
private
String
weightUnit
;
private
String
updateTime
;
private
String
createDate
;
private
String
updateDate
;
private
String
delFlag
;
}
src/main/java/com/foc/service/DspReleaseInfoService.java
View file @
46be83ea
This diff is collapsed.
Click to expand it.
src/main/resources/mapper/StatisticalMapper.xml
View file @
46be83ea
...
@@ -104,4 +104,48 @@
...
@@ -104,4 +104,48 @@
, airline_json = values(airline_json)
, airline_json = values(airline_json)
, update_date = values(update_date)
, update_date = values(update_date)
</insert>
</insert>
<select
id=
"getFlightNoList"
resultType=
"String"
>
SELECT
ffd.flight_no
FROM
foc_flight_dynamics ffd
WHERE
ffd.datop_chn = date_sub( curdate(), INTERVAL 1 DAY )
AND ffd.`status` != 'CNL'
AND ffd.ata_chn IS NOT NULL
GROUP BY
ffd.flight_no
</select>
<insert
id=
"insertDspReleaseInfo"
parameterType=
"java.util.List"
>
INSERT INTO foc_flight_dynamics_sta ( send_time, flight_no, std, ac_no, dep_iata_id, arr_iata_id, total_oil, dispatcher_name, extra_oil_fuel_reason, e_e_t, weight_unit, update_time,create_date,update_date, del_flag )
VALUES
<foreach
collection=
"list"
item=
"item"
index=
"index"
separator=
","
>
(
#{item.sendTime}
, #{item.flightNo}
, #{item.std}
, #{item.acNo}
, #{item.depIataId}
, #{item.arrIataId}
, #{item.totalOil}
, #{item.dispatcherName}
, #{item.extraOilFuelReason}
, #{item.eET}
, #{item.weightUnit}
, #{item.updateTime}
, #{item.createDate}
, #{item.updateDate}
, #{item.delFlag}
)
</foreach>
ON DUPLICATE KEY UPDATE
send_time = values(send_time)
, total_oil = values(total_oil)
, extra_oil_fuel_reason = values(extra_oil_fuel_reason)
, e_e_t = values(e_e_t)
, update_date = values(update_date)
</insert>
</mapper>
</mapper>
\ No newline at end of file
src/main/resources/mybatis-config.xml
View file @
46be83ea
...
@@ -64,8 +64,6 @@
...
@@ -64,8 +64,6 @@
<property
name=
"password"
value=
"FOC@2016"
/>
<property
name=
"password"
value=
"FOC@2016"
/>
</dataSource>
</dataSource>
</environment>
</environment>
</environments>
</environments>
<mappers>
<mappers>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment