增加提单功能
This commit is contained in:
@@ -0,0 +1,156 @@
|
||||
<?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.bms.price.mapper.SrvBillAirMapper">
|
||||
|
||||
<resultMap id="SrvBillAirResult" type="com.bms.price.domain.vo.SrvBillAirVo">
|
||||
<result property="guid" column="guid"/>
|
||||
<result property="billCode" column="bill_code"/>
|
||||
<result property="billType" column="bill_type"/>
|
||||
<result property="blStatus" column="bl_status"/>
|
||||
<result property="startAirport" column="start_airport"/>
|
||||
<result property="endAirport" column="end_airport"/>
|
||||
<result property="desPort" column="des_port"/>
|
||||
<result property="routeName" column="route_name"/>
|
||||
<result property="airCompany" column="air_company"/>
|
||||
<result property="baoguanFee" column="baoguan_fee"/>
|
||||
<result property="baoguanOtherFee" column="baoguan_other_fee"/>
|
||||
<result property="stockFee" column="stock_fee"/>
|
||||
<result property="desPortAgentFee" column="des_port_agent_fee"/>
|
||||
<result property="airOtherFee" column="air_other_fee"/>
|
||||
<result property="otherFee" column="other_fee"/>
|
||||
<result property="pieceNumber" column="piece_number"/>
|
||||
<result property="volume" column="volume"/>
|
||||
<result property="actualWeight" column="actual_weight"/>
|
||||
<result property="actualVolume" column="actual_volume"/>
|
||||
<result property="volumeWeight" column="volume_weight"/>
|
||||
<result property="firstLandingTime" column="first_landing_time"/>
|
||||
<result property="airNo" column="air_no"/>
|
||||
<result property="actualAirNo" column="actual_air_no"/>
|
||||
<result property="airCompanyAgent" column="air_ompany_agent"/>
|
||||
<result property="desPortAgentCode" column="des_port_agent_code"/>
|
||||
<result property="declareCode" column="declare_code"/>
|
||||
<result property="clearanceCode" column="clearance_code"/>
|
||||
<result property="qingguanAgent" column="qingguan_agent"/>
|
||||
<result property="stockAddr" column="stock_addr"/>
|
||||
<result property="shippingDate" column="shipping_date"/>
|
||||
<result property="startTime" column="start_time"/>
|
||||
<result property="arriveTime" column="arrive_time"/>
|
||||
<result property="arriveStockTime" column="arrive_stock_time"/>
|
||||
<result property="clearanceTime" column="clearance_time"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="modifyTime" column="modify_time"/>
|
||||
<result property="remark" column="remark"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectAirBillVo">
|
||||
select a.guid,
|
||||
a.bill_code,
|
||||
a.bill_type,
|
||||
a.bl_status,
|
||||
a.start_airport,
|
||||
a.end_airport,
|
||||
a.des_port,
|
||||
a.route_name,
|
||||
a.air_company,
|
||||
f.baoguan_fee,
|
||||
f.baoguan_other_fee,
|
||||
f.stock_fee,
|
||||
f.des_port_agent_fee,
|
||||
f.air_other_fee,
|
||||
f.other_fee,
|
||||
a.piece_number,
|
||||
a.volume,
|
||||
a.actual_weight,
|
||||
a.actual_volume,
|
||||
a.volume_weight,
|
||||
fl.first_landing_time,
|
||||
fl.air_no,
|
||||
fl.actual_air_no,
|
||||
fl.air_ompany_agent,
|
||||
fl.des_port_agent_code,
|
||||
o.declare_code,
|
||||
o.clearance_code,
|
||||
o.qingguan_agent,
|
||||
o.stock_addr,
|
||||
t.shipping_date,
|
||||
t.start_time,
|
||||
t.arrive_time,
|
||||
t.arrive_stock_time,
|
||||
t.clearance_time,
|
||||
a.create_time,
|
||||
a.modify_time,
|
||||
a.remark
|
||||
from srv_bill_air a
|
||||
left join srv_bill_air_finance f on f.bill_code = a.bill_code
|
||||
left join srv_bill_air_flight fl on fl.bill_code = a.bill_code
|
||||
left join srv_bill_air_op o on o.bill_code = a.bill_code
|
||||
left join srv_bill_air_track t on t.bill_code = a.bill_code
|
||||
</sql>
|
||||
|
||||
<sql id="airBillWhere">
|
||||
<where>
|
||||
<if test="billCode != null and billCode != ''">
|
||||
AND a.bill_code like concat('%', #{billCode}, '%')
|
||||
</if>
|
||||
<if test="billCodes != null and billCodes.size() > 0">
|
||||
AND a.bill_code in
|
||||
<foreach collection="billCodes" item="code" open="(" separator="," close=")">
|
||||
#{code}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="billType != null">
|
||||
AND a.bill_type = #{billType}
|
||||
</if>
|
||||
<if test="startAirport != null and startAirport != ''">
|
||||
AND a.start_airport like concat('%', #{startAirport}, '%')
|
||||
</if>
|
||||
<if test="endAirport != null and endAirport != ''">
|
||||
AND a.end_airport like concat('%', #{endAirport}, '%')
|
||||
</if>
|
||||
<if test="desPort != null and desPort != ''">
|
||||
AND a.des_port like concat('%', #{desPort}, '%')
|
||||
</if>
|
||||
<if test="routeName != null and routeName != ''">
|
||||
AND a.route_name like concat('%', #{routeName}, '%')
|
||||
</if>
|
||||
<if test="airCompany != null and airCompany != ''">
|
||||
AND a.air_company like concat('%', #{airCompany}, '%')
|
||||
</if>
|
||||
<if test="airNo != null and airNo != ''">
|
||||
AND fl.air_no like concat('%', #{airNo}, '%')
|
||||
</if>
|
||||
<if test="shippingDateBegin != null and shippingDateBegin != ''">
|
||||
AND t.shipping_date >= #{shippingDateBegin}
|
||||
</if>
|
||||
<if test="shippingDateEnd != null and shippingDateEnd != ''">
|
||||
AND t.shipping_date <= #{shippingDateEnd}
|
||||
</if>
|
||||
<if test="createTimeBegin != null and createTimeBegin != ''">
|
||||
AND a.create_time >= #{createTimeBegin}
|
||||
</if>
|
||||
<if test="createTimeEnd != null and createTimeEnd != ''">
|
||||
AND a.create_time <= #{createTimeEnd}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="selectSrvBillAirList" parameterType="com.bms.price.domain.vo.SrvBillAirQuery" resultMap="SrvBillAirResult">
|
||||
<include refid="selectAirBillVo"/>
|
||||
<include refid="airBillWhere"/>
|
||||
order by a.create_time desc, a.bill_code desc
|
||||
</select>
|
||||
|
||||
<select id="selectSrvBillAirByBillCode" parameterType="String" resultMap="SrvBillAirResult">
|
||||
<include refid="selectAirBillVo"/>
|
||||
where a.bill_code = #{billCode}
|
||||
limit 1
|
||||
</select>
|
||||
|
||||
<select id="selectSrvBillAirByGuid" parameterType="String" resultMap="SrvBillAirResult">
|
||||
<include refid="selectAirBillVo"/>
|
||||
where a.guid = #{guid}
|
||||
limit 1
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user