Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
api
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
首航-临时账号
api
Commits
bc429ec0
Commit
bc429ec0
authored
Mar 24, 2022
by
罗胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2022-03-24 罗胜
1.油量分析修改 2.航班执行期监控修改 3.航线论证修改
parent
e031a93d
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
893 additions
and
118 deletions
+893
-118
LeftOverOilDao.xml
resources/mapper/modules/airport/LeftOverOilDao.xml
+35
-0
OilAnalysisDao.xml
resources/mapper/modules/airport/OilAnalysisDao.xml
+206
-13
DepartDao.xml
resources/mapper/modules/depart/DepartDao.xml
+5
-0
VerifyFeedbackDao.xml
resources/mapper/modules/verify/VerifyFeedbackDao.xml
+13
-1
VerifyManageDao.xml
resources/mapper/modules/verify/VerifyManageDao.xml
+31
-3
OilAnalysisController.java
src/com/ejweb/modules/airport/api/OilAnalysisController.java
+50
-4
StatisticalController.java
src/com/ejweb/modules/airport/api/StatisticalController.java
+4
-3
ExtraOilReasonBean.java
src/com/ejweb/modules/airport/bean/ExtraOilReasonBean.java
+27
-0
LeftOverOilListBean.java
src/com/ejweb/modules/airport/bean/LeftOverOilListBean.java
+72
-0
OilAnalysisBean.java
src/com/ejweb/modules/airport/bean/OilAnalysisBean.java
+65
-24
OilAnalysisIdBean.java
src/com/ejweb/modules/airport/bean/OilAnalysisIdBean.java
+26
-0
OilAnalysisUpdateBean.java
src/com/ejweb/modules/airport/bean/OilAnalysisUpdateBean.java
+47
-0
LeftOverOilDao.java
src/com/ejweb/modules/airport/dao/LeftOverOilDao.java
+19
-0
OilAnalysisDao.java
src/com/ejweb/modules/airport/dao/OilAnalysisDao.java
+12
-0
LeftOverOilEntity.java
src/com/ejweb/modules/airport/entity/LeftOverOilEntity.java
+30
-0
OilAnalysisEntity.java
src/com/ejweb/modules/airport/entity/OilAnalysisEntity.java
+0
-0
StatisticalListEntity.java
src/com/ejweb/modules/airport/entity/StatisticalListEntity.java
+16
-6
LeftOverOilService.java
src/com/ejweb/modules/airport/service/LeftOverOilService.java
+45
-0
OilAnalysisService.java
src/com/ejweb/modules/airport/service/OilAnalysisService.java
+123
-57
StatisticalService.java
src/com/ejweb/modules/airport/service/StatisticalService.java
+15
-0
DepartDao.java
src/com/ejweb/modules/depart/dao/DepartDao.java
+3
-0
SailingCommandService.java
src/com/ejweb/modules/sailing/service/SailingCommandService.java
+17
-6
VerifyFeedbackBean.java
src/com/ejweb/modules/verify/bean/VerifyFeedbackBean.java
+9
-1
VerifyFeedbackDao.java
src/com/ejweb/modules/verify/dao/VerifyFeedbackDao.java
+4
-0
VerifyFeedbackEntity.java
src/com/ejweb/modules/verify/entity/VerifyFeedbackEntity.java
+11
-0
VerifyFeedbackService.java
src/com/ejweb/modules/verify/service/VerifyFeedbackService.java
+8
-0
No files found.
resources/mapper/modules/airport/LeftOverOilDao.xml
0 → 100644
View file @
bc429ec0
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.ejweb.modules.airport.dao.LeftOverOilDao"
>
<select
id=
"getLeftOverOilData"
resultType=
"com.ejweb.modules.airport.entity.LeftOverOilEntity"
>
select * from foc_avg_left_over_oil
where
1=1
<if
test=
"year !=null and year!=''"
>
and year =#{year}
</if>
<if
test=
"month !=null and month!=''"
>
and month = #{month}
</if>
<if
test=
"acType !=null and acType!=''"
>
and ac_type= #{acType}
</if>
<if
test=
"airport !=null and airport!=''"
>
and airport = #{airport}
</if>
</select>
<select
id=
"selectOilByAcTyoeAndIataId"
resultType=
"double"
>
select avg_left_over_oil from foc_avg_left_over_oil where ac_type=#{acType} and airport=#{airport} and `year`=#{year} and `month`=#{month} limit 1
</select>
<select
id=
"selectOilByAirport"
resultType=
"double"
>
select avg_left_over_oil from foc_avg_left_over_oil where airport=#{acType} and `year`=#{year} and `month`=#{month} limit 1
</select>
</mapper>
\ No newline at end of file
resources/mapper/modules/airport/OilAnalysisDao.xml
View file @
bc429ec0
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.ejweb.modules.airport.dao.OilAnalysisDao"
>
<update
id=
"update"
parameterType=
"com.ejweb.modules.airport.bean.OilAnalysisUpdateBean"
>
update foc_flight_dynamics_sta set create_date=now()
<if
test=
"extraOilConclusion !=null and extraOilConclusion !='' "
>
, extra_oil_conclusion = #{extraOilConclusion}
</if>
<if
test=
"remark !=null and remark !='' "
>
,remark = #{remark}
</if>
where id=#{id}
</update>
<select
id=
"getExcelOilAnalysisData1"
resultType=
"com.ejweb.modules.airport.entity.OilAnalysisEntity"
>
select DATE_FORMAT(sta.std, '%Y/%m/%d %H:%i')as std,
DATE_FORMAT(sta.std, '%Y/%m/%d %H:%i:%s')as stdExcel,
...
...
@@ -8,6 +20,7 @@
sta.ac_no,
sta.dispatcher_name,
IFNULL(u.name,'') as dispatcherAccount,
sta.extra_oil_fuel_reason_new,
sta.total_oil,
sta.dep_iata_id,
sta.arr_iata_id,
...
...
@@ -88,7 +101,6 @@
sta.total_oil,
sta.dep_iata_id,
sta.arr_iata_id,
sta.extra_oil_fuel_reason,
DATE_FORMAT(sta.update_date, '%Y/%m/%d')as updateDate,
DATE_FORMAT(sta.update_time, '%Y/%m/%d %H:%i:%s')as updateTime,
sta.arr_air_port_name,
...
...
@@ -105,10 +117,50 @@
sta.alt2_time,
sta.alt2_distance,
sta.cruising_altitude,
sta.e_e_t as eet
sta.e_e_t as eet,
sta.arr_alt_iata_id,
IFNULL(sta.flight_time,'') as flight_time,
plan.plan_left_over,
plan.hold,
plan.reserve,
sta.extra_oil_conclusion,
sta.extra_oil_fuel_reason_new,
sta.remark,
plan.takeoff_weight,
plan.landing_weight,
plan.payload_weight,
plan.zero_fuel,
plan.kal_cargo_load,
plan.maximum_fuel_capacity,
plan.total,
plan.total_time,
plan.trip,
plan.trip_time,
plan.trip_dist,
plan.arrival_time,
plan.alternate_fuel,
plan.alternate_time,
plan.alternate_dist,
plan.taxi_out,
plan.taxi_out_time,
plan.hold,
plan.etop,
plan.etop_time,
plan.reserve,
plan.reserve_time,
plan.extra_time,
plan.extra,
(CASE plan.cfp_flag
WHEN 0 Then '无二放和ETOPS'
WHEN 1 Then '只有ETOPS无二放'
WHEN 2 Then '只有二放无ETOPS'
ELSE '有二放和ETOPS' END) AS cfp_flag,
plan.custom_extra_time,
plan.limiting_takeoff_weight,
plan.limiting_landing_weight
from foc_flight_dynamics_sta sta
LEFT JOIN foc_flight_plan plan ON sta.id = plan.dynamics_sta_id
where 1=1
<if
test=
"arrIata!=null and arrIata!='' "
>
and sta.arr_iata_id = #{arrIata}
</if>
...
...
@@ -118,7 +170,7 @@
</if>
<if
test=
"flightNo!=null and flightNo!='' "
>
and sta.flight_no
= #{flightNo}
and sta.flight_no
LIKE CONCAT('%',#{flightNo}, '%')
</if>
<if
test=
"dispatcherZH!=null and dispatcherZH!=''"
>
...
...
@@ -137,19 +189,35 @@
and sta.std
<![CDATA[<]]>
date_format(#{maxDepTime},'%Y-%c-%d %H:%i')
</if>
<if
test=
"min
totalOil !=null and mintotalOil!=''
"
>
and
substring_index(sta.total_oil,'KGS',1) >= #{mintotal
Oil}
<if
test=
"min
LeftOverOil !=null and minLeftOverOil !=0
"
>
and
plan.plan_left_over >= #{minLeftOver
Oil}
</if>
<if
test=
"maxtotalOil !=null and maxtotalOil!=''"
>
and substring_index(sta.total_oil,'KGS',1)
<![CDATA[<]]>
#{maxtotalOil}
<if
test=
"maxLeftOverOil !=null and maxLeftOverOil !=0"
>
and plan.plan_left_over
<![CDATA[<]]>
#{maxLeftOverOil}
</if>
<if
test=
"acType !=null and acType!=''"
>
and sta.ac_type_name like CONCAT('%',#{acType},'%')
</if>
group by sta.std,sta.flight_no
order by sta.std desc
<if
test=
"minExtraOil !=null and minExtraOil!=0"
>
and substring_index(sta.extra_oil_fuel_reason_new,':',1) >= #{minExtraOil}
</if>
</select>
<if
test=
"maxExtraOil !=null and maxExtraOil!=0"
>
and substring_index(sta.extra_oil_fuel_reason_new,':',1)
<![CDATA[<]]>
#{maxExtraOil}
</if>
<if
test=
"extraOilReason !=null and extraOilReason!=''"
>
and substring_index( sta.extra_oil_fuel_reason_new, ':',- 1 ) like CONCAT('%',#{extraOilReason},'%')
</if>
GROUP BY
sta.std,
sta.flight_no
ORDER BY
sta.std DESC
</select>
<select
id=
"getOilAnalysisData1"
resultType=
"com.ejweb.modules.airport.entity.OilAnalysisEntity"
>
...
...
@@ -215,6 +283,131 @@
</select>
<select
id=
"getOilAnalysisData"
resultType=
"com.ejweb.modules.airport.entity.OilAnalysisEntity"
>
SELECT
DATE_FORMAT( sta.std, '%Y/%m/%d %H:%i' ) AS std,
sta.id,
sta.flight_no,
sta.ac_no,
IFNULL(sta.dispatcher_account,'') as dispatcher_account,
IFNULL(sta.dispatcher_name,'') as dispatcher_name,
plan.plan_left_over,
sta.arr_air_port_name,
sta.dep_air_port_name,
sta.arr_icao_id,
sta.extra_oil_fuel_reason_new,
sta.extra_oil_conclusion,
IFNULL(plan.hold,'') as hold,
IFNULL(plan.reserve,'') as reserve,
sta.total_oil,
sta.remark_msg,
DATE_FORMAT( sta.update_date, '%Y/%m/%d' ) AS updateDate,
DATE_FORMAT( sta.update_time, '%Y/%m/%d %H:%i:%s' ) AS updateTime,
sta.ac_type_name,
sta.remark
FROM
foc_flight_dynamics_sta sta
LEFT JOIN foc_flight_plan plan ON sta.id = plan.dynamics_sta_id
where 1=1
<if
test=
"arrIata!=null and arrIata!='' "
>
and sta.arr_iata_id = #{arrIata}
</if>
<if
test=
"depIata!=null and depIata!='' "
>
and sta.dep_iata_id = #{depIata}
</if>
<if
test=
"flightNo!=null and flightNo!='' "
>
and sta.flight_no LIKE CONCAT('%',#{flightNo}, '%')
</if>
<if
test=
"dispatcherZH!=null and dispatcherZH!=''"
>
and sta.dispatcher_account LIKE CONCAT('%',#{dispatcherZH}, '%')
</if>
<if
test=
"dispatcherENG!=null and dispatcherENG!=''"
>
and sta.dispatcher_name LIKE CONCAT('%',#{dispatcherENG}, '%')
</if>
<if
test=
"minDepTime !=null and minDepTime!=''"
>
and sta.std
<![CDATA[>=]]>
date_format(#{minDepTime},'%Y-%c-%d %H:%i')
</if>
<if
test=
"maxDepTime !=null and maxDepTime!=''"
>
and sta.std
<![CDATA[<]]>
date_format(#{maxDepTime},'%Y-%c-%d %H:%i')
</if>
<if
test=
"minLeftOverOil !=null and minLeftOverOil !=0"
>
and plan.plan_left_over >= #{minLeftOverOil}
</if>
<if
test=
"maxLeftOverOil !=null and maxLeftOverOil !=0"
>
and plan.plan_left_over
<![CDATA[<]]>
#{maxLeftOverOil}
</if>
<if
test=
"acType !=null and acType!=''"
>
and sta.ac_type_name like CONCAT('%',#{acType},'%')
</if>
<if
test=
"minExtraOil !=null and minExtraOil!=0"
>
and substring_index(sta.extra_oil_fuel_reason_new,':',1) >= #{minExtraOil}
</if>
<if
test=
"maxExtraOil !=null and maxExtraOil!=0"
>
and substring_index(sta.extra_oil_fuel_reason_new,':',1)
<![CDATA[<]]>
#{maxExtraOil}
</if>
<if
test=
"extraOilReason !=null and extraOilReason!=''"
>
and substring_index( sta.extra_oil_fuel_reason_new, ':',- 1 ) like CONCAT('%',#{extraOilReason},'%')
</if>
GROUP BY
sta.std,
sta.flight_no
ORDER BY
sta.std DESC
</select>
<select
id=
"getById"
resultType=
"com.ejweb.modules.airport.entity.OilAnalysisEntity"
>
SELECT
DATE_FORMAT( sta.std, '%Y/%m/%d %H:%i' ) AS std,
sta.id,
sta.flight_no,
sta.ac_no,
sta.dispatcher_account,
sta.dep_iata_id,
sta.arr_iata_id,
sta.extra_oil_fuel_reason_new,
sta.arr_air_port_name,
sta.dep_air_port_name,
sta.extra_oil_conclusion,
plan.plan_left_over,
plan.hold,
plan.reserve,
DATE_FORMAT( sta.update_date, '%Y/%m/%d' ) AS updateDate,
DATE_FORMAT( sta.update_time, '%Y/%m/%d %H:%i:%s' ) AS updateTime,
sta.ac_type_name
FROM
foc_flight_dynamics_sta sta
LEFT JOIN foc_flight_plan plan ON sta.flight_no = plan.flight_no and sta.std=plan.std
where sta.id=#{id}
</select>
<select
id=
"getOilReasons"
resultType=
"string"
>
SELECT DISTINCT
substring_index( extra_oil_fuel_reason_new, ':',- 1 )
FROM
foc_flight_dynamics_sta
WHERE
1=1
<if
test=
"startTime !=null and startTime!=null"
>
and DATE_FORMAT(std, '%Y/%m/%d') >= #{startTime}
</if>
<if
test=
"endTime !=null and endTime!=null"
>
and DATE_FORMAT(std, '%Y/%m/%d')
<
= #{endTime}
</if>
and substring_index( extra_oil_fuel_reason_new, ':',- 1 ) != ''
</select>
<!--已不用-->
<!--
<select id="getOilAnalysisData" resultType="com.ejweb.modules.airport.entity.OilAnalysisEntity">
select DATE_FORMAT(sta.std, '%Y/%m/%d %H:%i')as std,
sta.flight_no,
sta.ac_no,
...
...
@@ -272,7 +465,6 @@
order by sta.std desc
</select>
-->
</mapper>
\ No newline at end of file
resources/mapper/modules/depart/DepartDao.xml
View file @
bc429ec0
...
...
@@ -69,4 +69,8 @@
FROM foc_user_depart a
WHERE a.del_flag = '0'
</select>
<select
id=
"getDepartIdByUserId"
resultType=
"java.lang.String"
>
select depart_id from sys_user_profiles where user_id = #{userId}
</select>
</mapper>
\ No newline at end of file
resources/mapper/modules/verify/VerifyFeedbackDao.xml
View file @
bc429ec0
...
...
@@ -460,7 +460,7 @@
SELECT
id,
verif_id,
verify_status,
verify_status,
feedbackStatus
report, form_id,
form_text,
depart_id,
...
...
@@ -548,6 +548,18 @@
</if>
ORDER BY apply_no DESC
</select>
<select
id=
"getConditionFeedbackStatus"
resultType=
"java.lang.Integer"
>
select count(1) FROM foc_condition_feedback WHERE del_flag =0 and remarks is not null and LENGTH(remarks)>0 AND depart_id=#{departId} and condition_id in
<foreach
collection=
"conditionIds"
item=
"conditionId"
open=
"("
close=
")"
separator=
","
>
#{conditionId}
</foreach>
</select>
<select
id=
"getConditionsByVerifyId"
resultType=
"java.lang.String"
>
select c.id from foc_verify_condition c left join foc_airline_verify v on v.id=c.verif_id where v.id =#{verifId}
</select>
<update
id=
"updateStatus"
>
update foc_verify_condition
SET status = #{status}
...
...
resources/mapper/modules/verify/VerifyManageDao.xml
View file @
bc429ec0
...
...
@@ -677,18 +677,29 @@
) menu8,
(
SELECT
COUNT( 1 )
count( 1 )
FROM
(
SELECT
count( 1 )
FROM
foc_airline_verify a
LEFT JOIN foc_route_verify rf ON a.id = rf.verif_id
LEFT JOIN foc_verify_condition s ON a.id = s.verif_id
LEFT JOIN foc_airports p ON p.airport_iata = a.depIata
LEFT JOIN foc_aircraft_type q ON q.id = a.aircraft_type
LEFT JOIN foc_user_depart r ON s.depart_id = r.id
WHERE
a.del_flag = '0'
AND s.condition_status='03'
a.del_flag = 0
AND rf.STATUS = 1
AND rf.verify_status = '03'
AND s.complete = '0'
AND is_feed = '0'
AND a.verif_status = '00'
GROUP BY
s.verif_id,
s.depart_id
) temp
) menu9,
(
SELECT
...
...
@@ -740,6 +751,23 @@
DUAL
</select>
<sql
id=
"menu9"
>
--原菜单9
SELECT
COUNT( 1 )
FROM
foc_airline_verify a
LEFT JOIN foc_verify_condition s ON a.id = s.verif_id
LEFT JOIN foc_airports p ON p.airport_iata = a.depIata
LEFT JOIN foc_aircraft_type q ON q.id = a.aircraft_type
WHERE
a.del_flag = '0'
AND s.condition_status='03'
AND s.complete = '0'
AND is_feed = '0'
AND a.verif_status = '00'
</sql>
<update
id=
"updateByPrimaryKey"
>
update foc_airline_verify
set
...
...
src/com/ejweb/modules/airport/api/OilAnalysisController.java
View file @
bc429ec0
...
...
@@ -3,19 +3,21 @@ package com.ejweb.modules.airport.api;
import
com.ejweb.core.api.RequestBean
;
import
com.ejweb.core.api.ResponseBean
;
import
com.ejweb.core.base.GenericBean
;
import
com.ejweb.core.base.PageEntity
;
import
com.ejweb.core.conf.ErrorCode
;
import
com.ejweb.core.conf.GConstants
;
import
com.ejweb.core.utils.excel.ExportExcel
;
import
com.ejweb.modules.airport.bean.ExtraOilReasonBean
;
import
com.ejweb.modules.airport.bean.OilAnalysisBean
;
import
com.ejweb.modules.airport.bean.OilAnalysisIdBean
;
import
com.ejweb.modules.airport.bean.OilAnalysisUpdateBean
;
import
com.ejweb.modules.airport.entity.OilAnalysisEntity
;
import
com.ejweb.modules.airport.service.OilAnalysisService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
...
...
@@ -74,5 +76,49 @@ public class OilAnalysisController {
return
responseBean
;
}
@RequestMapping
(
value
=
"/selectAnalysisIolById"
)
public
ResponseBean
selectAnalysisIolById
(
RequestBean
requestBean
)
{
ResponseBean
responseBean
=
new
ResponseBean
();
OilAnalysisIdBean
bean
=
requestBean
.
getObjectBean
(
OilAnalysisIdBean
.
class
);
OilAnalysisEntity
oilAnalysis
=
oilAnalysisService
.
selectById
(
bean
.
getId
());
if
(
oilAnalysis
==
null
)
{
responseBean
.
setMessage
(
GConstants
.
EMPTY
);
responseBean
.
setStatus
(
ErrorCode
.
STATUS_CODE_2001
);
return
responseBean
;
}
else
{
responseBean
.
setData
(
oilAnalysis
);
responseBean
.
setMessage
(
GConstants
.
OK
);
responseBean
.
setStatus
(
ErrorCode
.
STATUS_CODE_2000
);
}
return
responseBean
;
}
@RequestMapping
(
value
=
"/update"
)
@ResponseBody
public
ResponseBean
update
(
RequestBean
requestBean
)
{
ResponseBean
responseBean
=
new
ResponseBean
();
OilAnalysisUpdateBean
bean
=
requestBean
.
getObjectBean
(
OilAnalysisUpdateBean
.
class
);
oilAnalysisService
.
update
(
bean
);
responseBean
.
setMessage
(
GConstants
.
OK
);
responseBean
.
setStatus
(
ErrorCode
.
STATUS_CODE_2000
);
return
responseBean
;
}
@RequestMapping
(
value
=
"/getOilReason"
)
@ResponseBody
public
ResponseBean
getOilReason
(
RequestBean
requestBean
)
{
ResponseBean
responseBean
=
new
ResponseBean
();
ExtraOilReasonBean
bean
=
requestBean
.
getObjectBean
(
ExtraOilReasonBean
.
class
);
List
<
String
>
reasons
=
oilAnalysisService
.
getOilReason
(
bean
);
responseBean
.
setMessage
(
GConstants
.
OK
);
responseBean
.
setStatus
(
ErrorCode
.
STATUS_CODE_2000
);
responseBean
.
setData
(
reasons
);
return
responseBean
;
}
}
src/com/ejweb/modules/airport/api/StatisticalController.java
View file @
bc429ec0
...
...
@@ -157,9 +157,10 @@ public class StatisticalController {
//机型状态自定义
List
<
TypeBean
>
typeBeans
=
JSON
.
parseArray
(
s
.
getAirlineJson
(),
TypeBean
.
class
);
s
.
setTypeOne
(
typeInfo
(
typeBeans
.
get
(
0
),
s
.
getAirlineStatus
()));
s
.
setTypeTwo
(
typeInfo
(
typeBeans
.
get
(
typeBeans
.
size
()-
3
),
s
.
getAirlineStatus
()));
s
.
setTypeThree
(
typeInfo
(
typeBeans
.
get
(
typeBeans
.
size
()-
2
),
s
.
getAirlineStatus
()));
s
.
setTypeFour
(
typeInfo
(
typeBeans
.
get
(
typeBeans
.
size
()-
1
),
s
.
getAirlineStatus
()));
s
.
setTypeTwo
(
typeInfo
(
typeBeans
.
get
(
typeBeans
.
size
()-
4
),
s
.
getAirlineStatus
()));
s
.
setTypeThree
(
typeInfo
(
typeBeans
.
get
(
typeBeans
.
size
()-
3
),
s
.
getAirlineStatus
()));
s
.
setTypeFour
(
typeInfo
(
typeBeans
.
get
(
typeBeans
.
size
()-
2
),
s
.
getAirlineStatus
()));
s
.
setTypeFive
(
typeInfo
(
typeBeans
.
get
(
typeBeans
.
size
()-
1
),
s
.
getAirlineStatus
()));
}
String
fileName
=
"航线执行期监控统计.xlsx"
;
try
{
...
...
src/com/ejweb/modules/airport/bean/ExtraOilReasonBean.java
0 → 100644
View file @
bc429ec0
package
com
.
ejweb
.
modules
.
airport
.
bean
;
/**
* 额外油原因串时间参数
*/
public
class
ExtraOilReasonBean
{
private
String
startTime
;
private
String
endTime
;
public
String
getStartTime
()
{
return
startTime
;
}
public
void
setStartTime
(
String
startTime
)
{
this
.
startTime
=
startTime
;
}
public
String
getEndTime
()
{
return
endTime
;
}
public
void
setEndTime
(
String
endTime
)
{
this
.
endTime
=
endTime
;
}
}
src/com/ejweb/modules/airport/bean/LeftOverOilListBean.java
0 → 100644
View file @
bc429ec0
package
com
.
ejweb
.
modules
.
airport
.
bean
;
import
com.ejweb.core.base.GenericBean
;
import
com.ejweb.core.conf.GConstants
;
import
javax.validation.constraints.Min
;
public
class
LeftOverOilListBean
extends
GenericBean
{
@Min
(
value
=
1
,
message
=
"pageNo必须大于等于1"
)
private
int
pageNo
=
1
;
//第几页
@Min
(
value
=
1
,
message
=
"pageSize必须大于等于1"
)
private
int
pageSize
=
GConstants
.
PAGE_SIZE
;
//每页条数
private
int
year
;
private
int
month
;
private
String
acType
;
private
String
airport
;
public
String
getAirport
()
{
return
airport
;
}
public
void
setAirport
(
String
airport
)
{
this
.
airport
=
airport
;
}
public
int
getPageNo
()
{
return
pageNo
;
}
public
void
setPageNo
(
int
pageNo
)
{
this
.
pageNo
=
pageNo
;
}
public
int
getPageSize
()
{
return
pageSize
;
}
public
void
setPageSize
(
int
pageSize
)
{
this
.
pageSize
=
pageSize
;
}
public
int
getYear
()
{
return
year
;
}
public
void
setYear
(
int
year
)
{
this
.
year
=
year
;
}
public
int
getMonth
()
{
return
month
;
}
public
void
setMonth
(
int
month
)
{
this
.
month
=
month
;
}
public
String
getAcType
()
{
return
acType
;
}
public
void
setAcType
(
String
acType
)
{
this
.
acType
=
acType
;
}
}
src/com/ejweb/modules/airport/bean/OilAnalysisBean.java
View file @
bc429ec0
...
...
@@ -3,6 +3,7 @@ package com.ejweb.modules.airport.bean;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.ejweb.core.base.GenericBean
;
import
com.ejweb.core.conf.GConstants
;
import
com.lowagie.text.PageSize
;
import
javax.validation.constraints.Min
;
...
...
@@ -15,7 +16,11 @@ import javax.validation.constraints.Min;
* @time 2020年12月10日
*/
public
class
OilAnalysisBean
extends
GenericBean
{
@Min
(
value
=
1
,
message
=
"pageNo必须大于等于1"
)
private
int
pageNo
=
1
;
//第几页
@Min
(
value
=
1
,
message
=
"pageSize必须大于等于1"
)
private
int
pageSize
=
GConstants
.
PAGE_SIZE
;
//每页条数
//最低起飞时间
private
String
minDepTime
;
...
...
@@ -33,16 +38,68 @@ public class OilAnalysisBean extends GenericBean {
private
String
dispatcherENG
;
//签派员中文名
private
String
dispatcherZH
;
//最低总油量
private
Integer
mintotalOil
;
//最高总油量
private
Integer
maxtotalOil
;
//最低剩油量
private
Integer
minLeftOverOil
;
//最高剩油量
private
Integer
maxLeftOverOil
;
//额外油原因
private
String
extraOilReason
;
//机型
private
String
acType
;
//最低额外油
private
Integer
minExtraOil
;
//最高额外油
private
Integer
maxExtraOil
;
public
Integer
getMinLeftOverOil
()
{
return
minLeftOverOil
;
}
public
void
setMinLeftOverOil
(
Integer
minLeftOverOil
)
{
this
.
minLeftOverOil
=
minLeftOverOil
;
}
public
Integer
getMaxLeftOverOil
()
{
return
maxLeftOverOil
;
}
public
void
setMaxLeftOverOil
(
Integer
maxLeftOverOil
)
{
this
.
maxLeftOverOil
=
maxLeftOverOil
;
}
public
String
getExtraOilReason
()
{
return
extraOilReason
;
}
public
void
setExtraOilReason
(
String
extraOilReason
)
{
this
.
extraOilReason
=
extraOilReason
;
}
public
String
getAcType
()
{
return
acType
;
}
public
void
setAcType
(
String
acType
)
{
this
.
acType
=
acType
;
}
public
Integer
getMinExtraOil
()
{
return
minExtraOil
;
}
public
void
setMinExtraOil
(
Integer
minExtraOil
)
{
this
.
minExtraOil
=
minExtraOil
;
}
public
Integer
getMaxExtraOil
()
{
return
maxExtraOil
;
}
public
void
setMaxExtraOil
(
Integer
maxExtraOil
)
{
this
.
maxExtraOil
=
maxExtraOil
;
}
@Min
(
value
=
1
,
message
=
"pageNo必须大于等于1"
)
private
int
pageNo
=
1
;
//第几页
@Min
(
value
=
1
,
message
=
"pageSize必须大于等于1"
)
private
int
pageSize
=
GConstants
.
PAGE_SIZE
;
//每页条数
public
String
getMinDepTime
()
{
return
minDepTime
;
...
...
@@ -92,22 +149,6 @@ public class OilAnalysisBean extends GenericBean {
this
.
dispatcher
=
dispatcher
;
}
public
Integer
getMintotalOil
()
{
return
mintotalOil
;
}
public
void
setMintotalOil
(
Integer
mintotalOil
)
{
this
.
mintotalOil
=
mintotalOil
;
}
public
Integer
getMaxtotalOil
()
{
return
maxtotalOil
;
}
public
void
setMaxtotalOil
(
Integer
maxtotalOil
)
{
this
.
maxtotalOil
=
maxtotalOil
;
}
public
int
getPageNo
()
{
return
pageNo
;
}
...
...
src/com/ejweb/modules/airport/bean/OilAnalysisIdBean.java
0 → 100644
View file @
bc429ec0
package
com
.
ejweb
.
modules
.
airport
.
bean
;
import
com.ejweb.core.base.GenericBean
;
import
org.hibernate.validator.constraints.NotEmpty
;
/**
* 油量分析根据id查询数据
*
* @author luos
* @version 1.0
* @team suzhou
* @time 2022年3月1日
*/
public
class
OilAnalysisIdBean
extends
GenericBean
{
@NotEmpty
(
message
=
"油量分析id不能为空"
)
private
Integer
id
;
public
Integer
getId
()
{
return
id
;
}
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
}
}
src/com/ejweb/modules/airport/bean/OilAnalysisUpdateBean.java
0 → 100644
View file @
bc429ec0
package
com
.
ejweb
.
modules
.
airport
.
bean
;
import
com.ejweb.core.base.GenericBean
;
import
org.hibernate.validator.constraints.NotEmpty
;
/**
* 油量分析根据id查询数据
*
* @author luos
* @version 1.0
* @team suzhou
* @time 2022年3月1日
*/
public
class
OilAnalysisUpdateBean
extends
GenericBean
{
@NotEmpty
(
message
=
"油量分析id不能为空"
)
private
Integer
id
;
private
String
extraOilConclusion
;
private
String
remark
;
public
String
getRemark
()
{
return
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
public
String
getExtraOilConclusion
()
{
return
extraOilConclusion
;
}
public
void
setExtraOilConclusion
(
String
extraOilConclusion
)
{
this
.
extraOilConclusion
=
extraOilConclusion
;
}
public
Integer
getId
()
{
return
id
;
}
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
}
}
src/com/ejweb/modules/airport/dao/LeftOverOilDao.java
0 → 100644
View file @
bc429ec0
package
com
.
ejweb
.
modules
.
airport
.
dao
;
import
com.ejweb.core.base.BaseDao
;
import
com.ejweb.modules.airport.bean.LeftOverOilListBean
;
import
com.ejweb.modules.airport.bean.OilAnalysisBean
;
import
com.ejweb.modules.airport.entity.LeftOverOilEntity
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
public
interface
LeftOverOilDao
extends
BaseDao
{
List
<
LeftOverOilEntity
>
getLeftOverOilData
(
LeftOverOilListBean
bean
);
Double
selectOilByAcTyoeAndIataId
(
@Param
(
"acType"
)
String
acType
,
@Param
(
"airport"
)
String
airport
,
@Param
(
"year"
)
Integer
year
,
@Param
(
"month"
)
Integer
month
);
Double
selectOilByAirport
(
@Param
(
"acType"
)
String
acType
,
@Param
(
"year"
)
int
year
,
@Param
(
"month"
)
int
month
);
}
src/com/ejweb/modules/airport/dao/OilAnalysisDao.java
View file @
bc429ec0
...
...
@@ -2,9 +2,12 @@ package com.ejweb.modules.airport.dao;
import
com.ejweb.core.base.BaseDao
;
import
com.ejweb.modules.airport.bean.AirportListBean
;
import
com.ejweb.modules.airport.bean.ExtraOilReasonBean
;
import
com.ejweb.modules.airport.bean.OilAnalysisBean
;
import
com.ejweb.modules.airport.bean.OilAnalysisUpdateBean
;
import
com.ejweb.modules.airport.entity.AirportListEntity
;
import
com.ejweb.modules.airport.entity.OilAnalysisEntity
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
...
...
@@ -15,4 +18,13 @@ public interface OilAnalysisDao extends BaseDao {
// 导出查询油量分析数据
List
<
OilAnalysisEntity
>
getExcelOilAnalysisData
(
OilAnalysisBean
bean
);
//根据id查询油量信息数据
OilAnalysisEntity
getById
(
@Param
(
"id"
)
Integer
id
);
//更新额外油论证
void
update
(
OilAnalysisUpdateBean
bean
);
//获取近一个月的理由
List
<
String
>
getOilReasons
(
@Param
(
"startTime"
)
String
startTime
,
@Param
(
"endTime"
)
String
endTime
);
}
src/com/ejweb/modules/airport/entity/LeftOverOilEntity.java
0 → 100644
View file @
bc429ec0
package
com
.
ejweb
.
modules
.
airport
.
entity
;
import
com.ejweb.core.base.BaseEntity
;
/**
* 历史平均落地剩油数据字典表
*
* @author luos
* @version 1.0
* @team suzhou
* @time 2022年3月1日
*/
public
class
LeftOverOilEntity
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
-
1L
;
private
Integer
year
;
private
String
acType
;
private
Integer
month
;
private
String
arrAirport
;
private
String
arrIataId
;
private
String
arrIcaoId
;
private
Integer
avgLeftOverOil
;
}
src/com/ejweb/modules/airport/entity/OilAnalysisEntity.java
View file @
bc429ec0
This diff is collapsed.
Click to expand it.
src/com/ejweb/modules/airport/entity/StatisticalListEntity.java
View file @
bc429ec0
...
...
@@ -17,19 +17,29 @@ public class StatisticalListEntity extends BaseEntity {
private
String
airlineJson
;
@ExcelField
(
title
=
"航线状态"
,
type
=
0
,
align
=
1
,
sort
=
26
)
private
String
status
;
@ExcelField
(
title
=
"A319/A320"
,
type
=
0
,
align
=
1
,
sort
=
2
1
)
@ExcelField
(
title
=
"A319/A320"
,
type
=
0
,
align
=
1
,
sort
=
2
0
)
private
String
typeOne
;
@ExcelField
(
title
=
"A32
1"
,
type
=
0
,
align
=
1
,
sort
=
22
)
@ExcelField
(
title
=
"A32
0neo"
,
type
=
0
,
align
=
1
,
sort
=
21
)
private
String
typeTwo
;
@ExcelField
(
title
=
"A32
0neo"
,
type
=
0
,
align
=
1
,
sort
=
23
)
@ExcelField
(
title
=
"A32
1"
,
type
=
0
,
align
=
1
,
sort
=
22
)
private
String
typeThree
;
@ExcelField
(
title
=
"A3
30"
,
type
=
0
,
align
=
1
,
sort
=
24
)
@ExcelField
(
title
=
"A3
21neo"
,
type
=
0
,
align
=
1
,
sort
=
23
)
private
String
typeFour
;
@ExcelField
(
title
=
"航线"
,
type
=
0
,
align
=
1
,
sort
=
20
)
@ExcelField
(
title
=
"A330"
,
type
=
0
,
align
=
1
,
sort
=
24
)
private
String
typeFive
;
@ExcelField
(
title
=
"航线"
,
type
=
0
,
align
=
1
,
sort
=
19
)
private
String
depIataLabel
;
@ExcelField
(
title
=
"序号"
,
type
=
0
,
align
=
1
,
sort
=
1
9
)
@ExcelField
(
title
=
"序号"
,
type
=
0
,
align
=
1
,
sort
=
1
8
)
private
int
no
;
public
String
getTypeFive
()
{
return
typeFive
;
}
public
void
setTypeFive
(
String
typeFive
)
{
this
.
typeFive
=
typeFive
;
}
public
String
getArrIata
()
{
return
arrIata
;
}
...
...
src/com/ejweb/modules/airport/service/LeftOverOilService.java
0 → 100644
View file @
bc429ec0
package
com
.
ejweb
.
modules
.
airport
.
service
;
import
com.ejweb.core.base.BaseService
;
import
com.ejweb.core.base.PageEntity
;
import
com.ejweb.modules.airport.bean.LeftOverOilListBean
;
import
com.ejweb.modules.airport.bean.OilAnalysisBean
;
import
com.ejweb.modules.airport.dao.LeftOverOilDao
;
import
com.ejweb.modules.airport.entity.LeftOverOilEntity
;
import
com.ejweb.modules.airport.entity.OilAnalysisEntity
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageInfo
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.StringUtils
;
import
java.util.List
;
@Service
public
class
LeftOverOilService
extends
BaseService
<
LeftOverOilDao
>
{
@Autowired
private
LeftOverOilDao
leftOverOilDao
;
public
PageEntity
<
LeftOverOilEntity
>
getAnalysisData
(
LeftOverOilListBean
bean
)
{
PageHelper
.
startPage
(
bean
.
getPageNo
(),
bean
.
getPageSize
());
PageInfo
<
LeftOverOilEntity
>
pageInfo
=
null
;
List
<
LeftOverOilEntity
>
list
=
null
;
list
=
leftOverOilDao
.
getLeftOverOilData
(
bean
);
if
(
list
==
null
||
list
.
size
()
==
0
)
{
return
null
;
}
pageInfo
=
new
PageInfo
<
LeftOverOilEntity
>(
list
);
if
(
pageInfo
.
getPages
()
<
bean
.
getPageNo
())
{
// 页码大于总页数,则返回NULL
return
null
;
}
PageEntity
<
LeftOverOilEntity
>
page
=
new
PageEntity
<
LeftOverOilEntity
>();
page
.
setPageNo
(
pageInfo
.
getPageNum
());
page
.
setPageSize
(
pageInfo
.
getPageSize
());
page
.
setCount
(
pageInfo
.
getTotal
());
page
.
setTotalPage
(
pageInfo
.
getPages
());
page
.
setList
(
pageInfo
.
getList
());
return
page
;
}
}
src/com/ejweb/modules/airport/service/OilAnalysisService.java
View file @
bc429ec0
This diff is collapsed.
Click to expand it.
src/com/ejweb/modules/airport/service/StatisticalService.java
View file @
bc429ec0
...
...
@@ -3,6 +3,8 @@
*/
package
com
.
ejweb
.
modules
.
airport
.
service
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.ejweb.core.base.BaseService
;
import
com.ejweb.core.base.PageEntity
;
import
com.ejweb.modules.airport.bean.StatiscalCheckBean
;
...
...
@@ -170,6 +172,7 @@ public class StatisticalService extends BaseService<StatisticalDao> {
//筛选foc_check_iata中 不需要的航班 add by luoh
Iterator
<
StatisticalListEntity
>
iterCheck
=
lists
.
iterator
();
String
a321neoStr
=
"{\"status\":\"3\",\"type\":\"321neo\"}"
;
while
(
iterCheck
.
hasNext
())
{
StatisticalListEntity
entity
=
iterCheck
.
next
();
String
iataStr
=
entity
.
getDepIata
()
+
"-"
+
entity
.
getArrIata
();
...
...
@@ -179,6 +182,18 @@ public class StatisticalService extends BaseService<StatisticalDao> {
break
;
}
}
List
<
String
>
list
=
JSON
.
parseArray
(
entity
.
getAirlineJson
(),
String
.
class
);
List
<
String
>
newList
=
new
ArrayList
<>();
if
(
list
.
size
()==
4
&&
list
.
get
(
1
).
contains
(
"A321"
)){
newList
.
add
(
list
.
get
(
0
));
newList
.
add
(
list
.
get
(
2
));
newList
.
add
(
a321neoStr
);
newList
.
add
(
list
.
get
(
1
));
newList
.
add
(
list
.
get
(
3
));
}
else
{
newList
=
list
;
}
entity
.
setAirlineJson
(
newList
.
toString
());
}
//创建Page类
Page
page
=
new
Page
(
statisticalListBean
.
getPageNo
(),
statisticalListBean
.
getPageSize
());
...
...
src/com/ejweb/modules/depart/dao/DepartDao.java
View file @
bc429ec0
...
...
@@ -21,4 +21,6 @@ public interface DepartDao extends BaseDao{
public
List
<
DepartEntity
>
findRiskList
(
DepartBean
bean
);
public
List
<
DepartEntity
>
findDepartByList
(
@Param
(
value
=
"type"
)
String
type
,
@Param
(
value
=
"isVerif"
)
String
isVerif
);
public
List
<
DepartTypeEntity
>
findDepartAllList
();
public
String
getDepartIdByUserId
(
@Param
(
"userId"
)
String
userId
);
}
\ No newline at end of file
src/com/ejweb/modules/sailing/service/SailingCommandService.java
View file @
bc429ec0
...
...
@@ -120,9 +120,10 @@ public class SailingCommandService extends CurdService<SailingCommandDao, Sailin
entity
.
setConnect
(
verifyDao
.
getConnectList
(
entity
.
getVerifId
()));
entity
.
setDepName
(
verifyDao
.
getConnetList
(
entity
.
getVerifId
()));
String
typelist
=
verifyDao
.
getTypeList1
(
entity
.
getVerifId
());
if
(
StringUtils
.
isNoneBlank
(
typelist
))
if
(
StringUtils
.
isNoneBlank
(
typelist
))
{
entity
.
setAircraftName
(
entity
.
getAircraftName
()
+
":"
+
typelist
);
}
}
PageEntity
<
SailingCommandEntity
>
page
=
new
PageEntity
<
SailingCommandEntity
>();
page
.
setPageNo
(
pageInfo
.
getPageNum
());
page
.
setPageSize
(
pageInfo
.
getPageSize
());
...
...
@@ -347,7 +348,7 @@ public class SailingCommandService extends CurdService<SailingCommandDao, Sailin
sb
.
append
(
"<p style=\"text-align:right\">运行控制部组织协调中心</p><p style=\"text-align:right\">电话:010-69615154</p></td></tr>"
);
sb
.
append
(
"<tr style=\"text-align:center;background-color:#e5e5e5;\"><td colspan=\"3\">编写</td><td colspan=\"2\">审核</td><td colspan=\"3\">批准</td></tr>"
);
sb
.
append
(
"<tr style=\"text-align:center;\"><td colspan=\"3\">组织协调单元</td><td colspan=\"2\"><textarea style=\"width:100%\" rows=\"1\">万宇</textarea><td colspan=\"3\"><textarea style=\"width:100%\" rows=\"1\">梁广义</textarea></td></tr>"
);
sb
.
append
(
"<tr style=\"text-align:center;\"><td colspan=\"2\">公司主管领导</td><td colspan=\"6\"><textarea style=\"width:100%\" rows=\"1\">
胡波
</textarea></td></tr>"
);
sb
.
append
(
"<tr style=\"text-align:center;\"><td colspan=\"2\">公司主管领导</td><td colspan=\"6\"><textarea style=\"width:100%\" rows=\"1\">
刘桃林
</textarea></td></tr>"
);
sb
.
append
(
"<tr><td>类别</td><td>要求执行</td><td colspan=\"2\">要求修改程序</td><td colspan=\"3\">要求提供反馈</td><td>其他</td></tr>"
);
sb
.
append
(
"<tr><td>本指令发至</td><td colspan=\"7\">公司各部门。</td></tr>"
);
sb
.
append
(
"<tr><td>抄送至</td><td colspan=\"7\">公司分管领导。</td></tr>"
);
...
...
@@ -908,7 +909,7 @@ public class SailingCommandService extends CurdService<SailingCommandDao, Sailin
}
/**
*
@param entity
*
* @param verifType
* @return
* @author huhy
...
...
@@ -990,23 +991,25 @@ public class SailingCommandService extends CurdService<SailingCommandDao, Sailin
String
title
=
"首都航空关于"
+
flight
;
VerifyEmailHandler
.
getInstance
().
sendEmail
(
title
+
"的开航指令提示(智能首航论证系统提示)"
,
en
+
com
.
ejweb
.
core
.
util
.
TemplateFactory
.
generateHtmlFromFtl
(
templateName
,
map
)
+
plan
,
mails
,
ccmails
);
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
// TODO Auto-generated catch block
e
.
printStackTrace
();
}
catch
(
TemplateException
e
)
{
}
catch
(
TemplateException
e
)
{
// TODO Auto-generated catch block
e
.
printStackTrace
();
}
}
public
List
<
ConnectionPlan
>
planlist
(
String
fileName
,
String
filePath
)
{
InputStream
in
=
null
;
//读取文件
try
{
//获取目标文件的绝对路径
// String fullFileName = filePath;
String
fullFileName
=
GConstants
.
FILE_UPLOAD_DIR
+
filePath
;
InputStream
in
=
null
;
in
=
new
FileInputStream
(
fullFileName
);
ImportExcel
ei
=
new
ImportExcel
(
fileName
,
in
,
1
,
0
);
try
{
...
...
@@ -1040,6 +1043,14 @@ public class SailingCommandService extends CurdService<SailingCommandDao, Sailin
}
catch
(
IOException
e
)
{
// TODO Auto-generated catch block
e
.
printStackTrace
();
}
finally
{
try
{
if
(
in
!=
null
)
{
in
.
close
();
}
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
}
return
null
;
}
...
...
src/com/ejweb/modules/verify/bean/VerifyFeedbackBean.java
View file @
bc429ec0
...
...
@@ -36,10 +36,18 @@ public class VerifyFeedbackBean extends GenericBean {
private
String
sort
;
@Min
(
value
=
1
,
message
=
"pageSize必须大于等于1"
)
private
int
pageSize
=
GConstants
.
PAGE_SIZE
;
//每页条数
private
String
departId
;
List
arrIataList
;
List
depIataList
;
public
String
getDepartId
()
{
return
departId
;
}
public
void
setDepartId
(
String
departId
)
{
this
.
departId
=
departId
;
}
public
List
getArrIataList
()
{
return
arrIataList
;
}
...
...
src/com/ejweb/modules/verify/dao/VerifyFeedbackDao.java
View file @
bc429ec0
...
...
@@ -77,4 +77,8 @@ public interface VerifyFeedbackDao extends BaseDao {
List
<
VerifyFeedbackEntity
>
findlist3
(
VerifyFeedbackBean
bean
);
List
<
VerifyFeedbackEntity
>
findList4
(
VerifyFeedbackBean
bean
);
int
getConditionFeedbackStatus
(
@Param
(
"departId"
)
String
departId
,
@Param
(
"conditionIds"
)
List
<
String
>
conditionIds
);
List
<
String
>
getConditionsByVerifyId
(
@Param
(
"verifId"
)
String
verifId
);
}
src/com/ejweb/modules/verify/entity/VerifyFeedbackEntity.java
View file @
bc429ec0
...
...
@@ -55,6 +55,17 @@ public class VerifyFeedbackEntity extends BaseEntity {
private
String
feedbackStatus
;
private
String
roundtripType
;
private
String
conditionFeedbackStatus
;
public
String
getConditionFeedbackStatus
()
{
return
conditionFeedbackStatus
;
}
public
void
setConditionFeedbackStatus
(
String
conditionFeedbackStatus
)
{
this
.
conditionFeedbackStatus
=
conditionFeedbackStatus
;
}
public
String
getRoundtripType
()
{
return
roundtripType
;
}
...
...
src/com/ejweb/modules/verify/service/VerifyFeedbackService.java
View file @
bc429ec0
...
...
@@ -54,6 +54,7 @@ public class VerifyFeedbackService extends BaseService<VerifyFeedbackDao> {
RouteVerifyService
routeVerifyService
;
public
PageEntity
<
VerifyFeedbackEntity
>
findList
(
VerifyFeedbackBean
bean
)
{
String
departId
=
departDao
.
getDepartIdByUserId
(
bean
.
getUserCode
());
if
(
StringUtils
.
isNotEmpty
(
bean
.
getArrIata
()))
{
bean
.
setArrIataList
(
verifyDao
.
getIataStr
(
bean
.
getArrIata
()));
}
...
...
@@ -82,6 +83,13 @@ public class VerifyFeedbackService extends BaseService<VerifyFeedbackDao> {
return
null
;
}
for
(
VerifyFeedbackEntity
entity
:
list
)
{
List
<
String
>
conditions
=
dao
.
getConditionsByVerifyId
(
entity
.
getVerifId
());
int
count
=
dao
.
getConditionFeedbackStatus
(
departId
,
conditions
);
if
(
count
>
0
){
entity
.
setConditionFeedbackStatus
(
"01"
);
}
else
{
entity
.
setConditionFeedbackStatus
(
"00"
);
}
List
<
Map
<
String
,
String
>>
list1
=
verifyDao
.
getConnectList
(
entity
.
getVerifId
());
List
<
Map
<
String
,
String
>>
list2
=
new
ArrayList
<
Map
<
String
,
String
>>();
for
(
Map
<
String
,
String
>
map
:
list1
)
{
...
...
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