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
6d4ba8f9
Commit
6d4ba8f9
authored
Sep 13, 2017
by
Java-任明波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v2.0
parent
bcac069d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
228 deletions
+0
-228
SailingCommandDao.xml
classes/artifacts/foc_api_1_0_war_exploded/WEB-INF/classes/mapper/modules/sailing/SailingCommandDao.xml
+0
-228
No files found.
classes/artifacts/foc_api_1_0_war_exploded/WEB-INF/classes/mapper/modules/sailing/SailingCommandDao.xml
deleted
100644 → 0
View file @
bcac069d
<?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.sailing.dao.SailingCommandDao"
>
<select
id=
"getList"
resultType=
"com.ejweb.modules.sailing.entity.SailingCommandEntity"
>
SELECT a.verif_id as verifId,
b.priority,
b.verif_status as verifStatus,
b.apply_no as applyNo,
roundtrip_type,
b.verif_no as verifNo,
b.aircraft_type as aircraftType,
b.depIata,b.arrIata,
b.verif_type as verifType,
q.type_name AS aircraftName,
CASE WHEN b.verif_type='01' OR b.verif_type='02'
OR b.verif_type='03' OR b.verif_type='04' OR b.verif_type='05'
THEN p.city_name
ELSE p.airport_name
END depName,
r.city_name AS arrName,
b.start_time AS sailingDate,
DATE_FORMAT(b.create_date, '%Y-%m-%d') AS createDate
from foc_sailing_command a
LEFT JOIN foc_airline_verify b on a.verif_id =b.id
LEFT JOIN foc_airports p ON p.airport_iata = b.depIata
LEFT JOIN foc_airports r ON r.airport_iata = b.arrIata
LEFT JOIN foc_aircraft_type q ON q.id = b.aircraft_type
where 1=1
<if
test=
"verifStatus != null and verifStatus != ''"
>
AND b.verif_status =#{verifStatus}
</if>
AND a.command_status ='00'
AND b.verif_status ='00'
<if
test=
"verifNo != null and verifNo != ''"
>
AND b.verif_no LIKE CONCAT('%', #{verifNo}, '%')
</if>
<if
test=
"depIata != null and depIata != ''"
>
AND (b.id in (
SELECT id FROM foc_airline_verify where depIata = #{depIata} )
OR b.id IN
(SELECT verif_id FROM foc_airline_connect WHERE depIata = #{depIata} AND is_main != '0')
)
</if>
<if
test=
"arrIata != null and arrIata != ''"
>
AND (b.id in (
SELECT id FROM foc_airline_verify where arrIata = #{arrIata} )
OR b.id IN
(SELECT verif_id FROM foc_airline_connect WHERE arrIata = #{arrIata} AND is_main != '0')
)
</if>
<if
test=
"priority != null and priority != ''"
>
AND b.priority = #{priority}
</if>
<if
test=
"verifType != null and verifType != ''"
>
AND b.verif_type = #{verifType}
</if>
<if
test=
"aircraftType != null and aircraftType != ''"
>
AND b.aircraft_type = #{aircraftType}
</if>
</select>
<select
id=
"getSailingDetail"
resultType=
"com.ejweb.modules.sailing.entity.SailingCdDeatailEntity"
>
select a.verif_id,command_status,
a.remarks,b.flight_no,b.start_time,b.end_time,
s.type_name,
t.airport_name,
b.roundtrip_type,
u.remarks AS verifRemarks,
a.con_remarks AS conRemarks,
b.route_type,
b.limit_condition,
b.people_count,
a.sailing_text AS sailingText,
ss.remarks AS sailRemarks,
a.form_text,a.verify_text,b.route_no,b.verif_type as verifType
from foc_sailing_command a
LEFT JOIN foc_airline_verify b on a.verif_id = b.id
LEFT JOIN foc_aircraft_type s on s.id=b.aircraft_type
LEFT JOIN foc_airports t on t.airport_iata=b.depIata
LEFT JOIN foc_airline_conclusion u ON a.verif_id = u.verif_id
LEFT JOIN foc_sailing_conclusion ss ON a.verif_id = ss.verif_id
where a.verif_id=#{verifId}
</select>
<select
id=
"getformText"
resultType=
"String"
>
SELECT a.form_text as formText
from foc_verify_form a
LEFT JOIN sys_user_profiles b on a.depart_id = b.depart_id
where 1=1
<if
test=
"verifType != null and verifType !=''"
>
AND a.verif_type =#{verifType}
</if>
AND b.user_id= #{userCode}
AND a.del_flag=#{DEL_FLAG_NORMAL}
AND a.form_type=#{formType}
</select>
<update
id=
"updateVerifStatys"
>
update foc_airline_verify a set a.verif_status= #{verifStatus} where a.id=
#{verifId}
</update>
<select
id=
"getVerifType"
resultType=
"String"
>
SELECT a.verif_type as verifType from foc_airline_verify a WHERE a.id =
#{verifId} AND a.del_flag= #{DEL_FLAG_NORMAL}
</select>
<select
id=
"CommandStatus"
resultType=
"String"
>
SELECT a.command_status as commandStatus from foc_sailing_command a WHERE
a.verif_id = #{verifId} AND a.del_flag= #{DEL_FLAG_NORMAL}
</select>
<select
id=
"findRouteNo"
resultType=
"String"
>
select right(f.route_no,3) from foc_airline_verify f
left join foc_sailing_command a on f.id=a.verif_id
where f.route_no LIKE
<if
test=
"dbName == 'oracle'"
>
'%'||#{routeNo}||'%')
</if>
<if
test=
"dbName == 'mssql'"
>
'%'+#{routeNo}+'%')
</if>
<if
test=
"dbName == 'mysql'"
>
CONCAT('%', #{routeNo}, '%')
</if>
order by a.update_date desc
limit 1
</select>
<select
id=
"getVerifNo"
resultType=
"String"
>
SELECT
CASE
WHEN verif_type = '06' THEN
route_no
WHEN verif_type = '07' THEN
trainroute_no
END startNo
FROM
foc_startno
WHERE
del_flag = '0'
AND verif_type != '01'
AND (
route_no LIKE CONCAT(#{verifNo} ,'%')
OR trainroute_no LIKE CONCAT(#{verifNo} ,'%')
)
ORDER BY
create_date DESC
LIMIT 1
</select>
<select
id=
"findInitRouteNo"
resultType=
"com.ejweb.modules.verify.entity.FocStartnoEntity"
>
select a.trainroute_no as trainrouteNo,a.route_no as routeNo
from foc_startno a
</select>
<update
id=
"updateAirlineverify"
>
update foc_airline_verify a
set a.route_no =#{routeNo}
where a.id=#{verifId}
</update>
<update
id=
"updateSailingCommand"
>
UPDATE foc_sailing_command a
SET a.remarks =#{remarks},
a.form_text=#{formText},
a.route_no=#{routeNo},
a.con_remarks=#{conRemarks},
a.verify_text=#{verifyText},
a.sailing_text=#{sailingText},
update_date=CURRENT_TIMESTAMP,
a.command_status =#{commandStatus}
WHERE a.verif_id=#{verifId}
</update>
<select
id=
"getCommandFile"
resultType=
"Map"
>
SELECT
file_name AS fileName,
file_path AS filePath,
file_size AS fileSize
FROM foc_sailing_file a
WHERE a.verif_id=#{verifId}
AND a.del_flag = #{DEL_FLAG_NORMAL}
LIMIT 1
</select>
<select
id=
"getVerifDeparts"
resultType=
"String"
>
SELECT
depart_id
FROM foc_route_verify
WHERE verif_id=#{verifId}
AND del_flag = #{DEL_FLAG_NORMAL}
UNION
SELECT
depart_id
FROM foc_condition_feedback
WHERE verif_id=#{verifId}
AND del_flag = #{DEL_FLAG_NORMAL}
UNION
SELECT '6e70812e4c874f298da21be2a12aa674' AS depart_id FROM DUAL
UNION
SELECT 'e4q231wdfdfkukjqe53457dgfdhdfhd' AS depart_id FROM DUAL
</select>
<insert
id=
"insertSailingFile"
>
INSERT INTO foc_sailing_file(
id,
verif_id,
file_path,
file_name,
md5,
extesion,
file_size,
create_by,
create_date,
update_by,
update_date
) VALUES (
#{id},
#{verifId},
#{filePath},
#{fileName},
#{md5},
#{extesion},
#{fileSize},
#{createBy},
CURRENT_TIMESTAMP,
#{createBy},
CURRENT_TIMESTAMP
)
</insert>
</mapper>
\ No newline at end of file
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