|
@@ -66,27 +66,28 @@
|
|
|
WHERE
|
|
|
t.f_status = 'T'
|
|
|
AND s.dict_label = '航线'
|
|
|
- <if test="fTypes != null and fTypes != ''">and f_types = #{fTypes}</if>
|
|
|
- <if test="fNo != null and fNo != ''">and f_no = #{fNo}</if>
|
|
|
- <if test="fName != null and fName != ''">and f_name like concat('%', #{fName}, '%')</if>
|
|
|
- <if test="fEname != null and fEname != ''">and f_ename like concat('%', #{fEname}, '%')</if>
|
|
|
- <if test="fLaneid != null ">and f_laneid = #{fLaneid}</if>
|
|
|
- <if test="fPortid != null ">and f_portid = #{fPortid}</if>
|
|
|
- <if test="fCountry != null and fCountry != ''">and f_country = #{fCountry}</if>
|
|
|
- <if test="fProvince != null and fProvince != ''">and f_province = #{fProvince}</if>
|
|
|
- <if test="fCity != null and fCity != ''">and f_city = #{fCity}</if>
|
|
|
- <if test="fTel != null and fTel != ''">and f_tel = #{fTel}</if>
|
|
|
- <if test="fEmail != null and fEmail != ''">and f_email = #{fEmail}</if>
|
|
|
- <if test="fManagerid != null ">and f_managerid = #{fManagerid}</if>
|
|
|
- <if test="fUncode != null and fUncode != ''">and f_uncode = #{fUncode}</if>
|
|
|
- <if test="fPort != null and fPort != ''">and f_port = #{fPort}</if>
|
|
|
- <if test="fStatus != null and fStatus != ''">and f_status = #{fStatus}</if>
|
|
|
+ <if test="fTypes != null and fTypes != ''">and t.f_types = #{fTypes}</if>
|
|
|
+ <if test="fNo != null and fNo != ''">and t.f_no = #{fNo}</if>
|
|
|
+ <if test="fName != null and fName != ''">and t.f_name like concat('%', #{fName}, '%')</if>
|
|
|
+ <if test="fEname != null and fEname != ''">and t.f_ename like concat('%', #{fEname}, '%')</if>
|
|
|
+ <if test="fLaneid != null ">and t.f_laneid = #{fLaneid}</if>
|
|
|
+ <if test="fPortid != null ">and t.f_portid = #{fPortid}</if>
|
|
|
+ <if test="fCountry != null and fCountry != ''">and t.f_country = #{fCountry}</if>
|
|
|
+ <if test="fProvince != null and fProvince != ''">and t.f_province = #{fProvince}</if>
|
|
|
+ <if test="fCity != null and fCity != ''">and t.f_city = #{fCity}</if>
|
|
|
+ <if test="fTel != null and fTel != ''">and t.f_tel = #{fTel}</if>
|
|
|
+ <if test="fEmail != null and fEmail != ''">and t.f_email = #{fEmail}</if>
|
|
|
+ <if test="fManagerid != null ">and t.f_managerid = #{fManagerid}</if>
|
|
|
+ <if test="fUncode != null and fUncode != ''">and t.f_uncode = #{fUncode}</if>
|
|
|
+ <if test="fPort != null and fPort != ''">and t.f_port = #{fPort}</if>
|
|
|
+ <if test="fStatus != null and fStatus != ''">and t.f_status = #{fStatus}</if>
|
|
|
<if test='cLoadDate != null and cLoadDate[0] != null and cLoadDate[0]!= ""'>
|
|
|
- and create_time >= #{cLoadDate[0]}
|
|
|
+ and t.create_time >= #{cLoadDate[0]}
|
|
|
</if>
|
|
|
<if test='cLoadDate != null and cLoadDate[1] != null and cLoadDate[1]!= ""'>
|
|
|
- and create_time <= #{cLoadDate[1]}
|
|
|
+ and t.create_time <= #{cLoadDate[1]}
|
|
|
</if>
|
|
|
+ ORDER BY CONVERT(t.f_name USING gbk) asc
|
|
|
</select>
|
|
|
|
|
|
<select id="selectTAddressById" parameterType="Long" resultMap="TAddressResult">
|
|
@@ -97,21 +98,21 @@
|
|
|
<select id="selectTAddressListMap" resultType="java.util.Map">
|
|
|
|
|
|
<where>
|
|
|
- <if test="fTypes != null and fTypes != ''"> and f_types = #{fTypes}</if>
|
|
|
- <if test="fNo != null and fNo != ''"> and f_no = #{fNo}</if>
|
|
|
- <if test="fName != null and fName != ''"> and f_name like concat('%', #{fName}, '%')</if>
|
|
|
- <if test="fEname != null and fEname != ''"> and f_ename like concat('%', #{fEname}, '%')</if>
|
|
|
- <if test="fLaneid != null "> and f_laneid = #{fLaneid}</if>
|
|
|
- <if test="fPortid != null "> and f_portid = #{fPortid}</if>
|
|
|
- <if test="fCountry != null and fCountry != ''"> and f_country = #{fCountry}</if>
|
|
|
- <if test="fProvince != null and fProvince != ''"> and f_province = #{fProvince}</if>
|
|
|
- <if test="fCity != null and fCity != ''"> and f_city = #{fCity}</if>
|
|
|
- <if test="fTel != null and fTel != ''"> and f_tel = #{fTel}</if>
|
|
|
- <if test="fEmail != null and fEmail != ''"> and f_email = #{fEmail}</if>
|
|
|
- <if test="fManagerid != null "> and f_managerid = #{fManagerid}</if>
|
|
|
- <if test="fUncode != null and fUncode != ''"> and f_uncode = #{fUncode}</if>
|
|
|
- <if test="fPort != null and fPort != ''"> and f_port = #{fPort}</if>
|
|
|
- <if test="fStatus != null and fStatus != ''"> and f_status = #{fStatus}</if>
|
|
|
+ <if test="fTypes != null and fTypes != ''">and f_types = #{fTypes}</if>
|
|
|
+ <if test="fNo != null and fNo != ''">and f_no = #{fNo}</if>
|
|
|
+ <if test="fName != null and fName != ''">and f_name like concat('%', #{fName}, '%')</if>
|
|
|
+ <if test="fEname != null and fEname != ''">and f_ename like concat('%', #{fEname}, '%')</if>
|
|
|
+ <if test="fLaneid != null ">and f_laneid = #{fLaneid}</if>
|
|
|
+ <if test="fPortid != null ">and f_portid = #{fPortid}</if>
|
|
|
+ <if test="fCountry != null and fCountry != ''">and f_country = #{fCountry}</if>
|
|
|
+ <if test="fProvince != null and fProvince != ''">and f_province = #{fProvince}</if>
|
|
|
+ <if test="fCity != null and fCity != ''">and f_city = #{fCity}</if>
|
|
|
+ <if test="fTel != null and fTel != ''">and f_tel = #{fTel}</if>
|
|
|
+ <if test="fEmail != null and fEmail != ''">and f_email = #{fEmail}</if>
|
|
|
+ <if test="fManagerid != null ">and f_managerid = #{fManagerid}</if>
|
|
|
+ <if test="fUncode != null and fUncode != ''">and f_uncode = #{fUncode}</if>
|
|
|
+ <if test="fPort != null and fPort != ''">and f_port = #{fPort}</if>
|
|
|
+ <if test="fStatus != null and fStatus != ''">and f_status = #{fStatus}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -275,6 +276,7 @@
|
|
|
and t.create_time <= #{cLoadDate[1]}
|
|
|
</if>
|
|
|
</where>
|
|
|
+ ORDER BY CONVERT(t.f_name USING gbk) asc
|
|
|
</select>
|
|
|
<!--查询码头信息-->
|
|
|
<select id="selectWarfDump" parameterType="TAddress" resultMap="TAddressResult">
|
|
@@ -317,7 +319,7 @@
|
|
|
t.f_status = 'T'
|
|
|
and pro.dict_label = '码头'
|
|
|
<if test="fTypes != null and fTypes != ''">and t.f_types = #{fTypes}</if>
|
|
|
- <if test="portName != null and portName != ''">and t.d.f_name like concat('%', #{portName}, '%')</if>
|
|
|
+ <if test="portName != null and portName != ''">and d.f_name like concat('%', #{portName}, '%')</if>
|
|
|
<if test="fNo != null and fNo != ''">and t.f_no = #{fNo}</if>
|
|
|
<if test="fName != null and fName != ''">and t.f_name like concat('%', #{fName}, '%')</if>
|
|
|
<if test="fEname != null and fEname != ''">and t.f_ename like concat('%', #{fEname}, '%')</if>
|
|
@@ -339,6 +341,7 @@
|
|
|
and t.create_time <= #{cLoadDate[1]}
|
|
|
</if>
|
|
|
</where>
|
|
|
+ ORDER BY CONVERT(t.f_name USING gbk) asc
|
|
|
</select>
|
|
|
<!--查看港口名称-->
|
|
|
<select id="selectPortName" parameterType="TAddress" resultType="map">
|
|
@@ -353,6 +356,7 @@
|
|
|
WHERE t.f_status = 'T'
|
|
|
AND s.dict_label = '港口'
|
|
|
<if test="fName != null and fName != ''">and f_name like concat('%', #{fName}, '%')</if>
|
|
|
+ ORDER BY CONVERT(t.f_name USING gbk) asc
|
|
|
</select>
|
|
|
<!--查看航线名称-->
|
|
|
<select id="selectAirLineName" parameterType="TAddress" resultType="map">
|
|
@@ -367,6 +371,7 @@
|
|
|
WHERE t.f_status = 'T'
|
|
|
AND s.dict_label = '航线'
|
|
|
<if test="fName != null and fName != ''">and f_name like concat('%', #{fName}, '%')</if>
|
|
|
+ ORDER BY CONVERT(t.f_name USING gbk) asc
|
|
|
</select>
|
|
|
<!--查看堆场名称-->
|
|
|
<select id="selectStorageName" parameterType="TAddress" resultType="map">
|
|
@@ -381,6 +386,7 @@
|
|
|
WHERE t.f_status = 'T'
|
|
|
AND s.dict_label = '堆场'
|
|
|
<if test="fName != null and fName != ''">and f_name like concat('%', #{fName}, '%')</if>
|
|
|
+ ORDER BY CONVERT(t.f_name USING gbk) asc
|
|
|
</select>
|
|
|
<!--查看堆场名称-->
|
|
|
<select id="selectWharfName" parameterType="TAddress" resultType="map">
|
|
@@ -395,6 +401,7 @@
|
|
|
WHERE t.f_status = 'T'
|
|
|
AND s.dict_label = '码头'
|
|
|
<if test="fName != null and fName != ''">and f_name like concat('%', #{fName}, '%')</if>
|
|
|
+ ORDER BY CONVERT(t.f_name USING gbk) asc
|
|
|
</select>
|
|
|
<!--查询港口信息-->
|
|
|
<select id="selectPortDump" parameterType="TAddress" resultMap="TAddressResult">
|
|
@@ -425,11 +432,6 @@
|
|
|
WHEN t.f_status = 'T' THEN
|
|
|
'正常使用' ELSE '停用'
|
|
|
END AS f_status,
|
|
|
- t.create_by,
|
|
|
- t.create_time,
|
|
|
- t.update_by,
|
|
|
- t.update_time,
|
|
|
- t.remark,
|
|
|
d.f_name portName,
|
|
|
d.f_ename portEnglish
|
|
|
FROM
|
|
@@ -440,28 +442,59 @@
|
|
|
<where>
|
|
|
t.f_status = 'T'
|
|
|
and pro.dict_label = '港口'
|
|
|
- <if test="fTypes != null and fTypes != ''">and f_types = #{fTypes}</if>
|
|
|
+ <if test="fTypes != null and fTypes != ''">and t.f_types = #{fTypes}</if>
|
|
|
<if test="portName != null and portName != ''">and d.f_name like concat('%', #{portName}, '%')</if>
|
|
|
- <if test="fNo != null and fNo != ''">and f_no = #{fNo}</if>
|
|
|
- <if test="fName != null and fName != ''">and f_name like concat('%', #{fName}, '%')</if>
|
|
|
- <if test="fEname != null and fEname != ''">and f_ename like concat('%', #{fEname}, '%')</if>
|
|
|
- <if test="fLaneid != null ">and f_laneid = #{fLaneid}</if>
|
|
|
- <if test="fPortid != null ">and f_portid = #{fPortid}</if>
|
|
|
- <if test="fCountry != null and fCountry != ''">and f_country = #{fCountry}</if>
|
|
|
- <if test="fProvince != null and fProvince != ''">and f_province = #{fProvince}</if>
|
|
|
- <if test="fCity != null and fCity != ''">and f_city = #{fCity}</if>
|
|
|
- <if test="fTel != null and fTel != ''">and f_tel = #{fTel}</if>
|
|
|
- <if test="fEmail != null and fEmail != ''">and f_email = #{fEmail}</if>
|
|
|
- <if test="fManagerid != null ">and f_managerid = #{fManagerid}</if>
|
|
|
- <if test="fUncode != null and fUncode != ''">and f_uncode = #{fUncode}</if>
|
|
|
- <if test="fPort != null and fPort != ''">and f_port = #{fPort}</if>
|
|
|
+ <if test="fNo != null and fNo != ''">and t.f_no = #{fNo}</if>
|
|
|
+ <if test="fName != null and fName != ''">and t.f_name like concat('%', #{fName}, '%')</if>
|
|
|
+ <if test="fEname != null and fEname != ''">and t.f_ename like concat('%', #{fEname}, '%')</if>
|
|
|
+ <if test="fLaneid != null ">and t.f_laneid = #{fLaneid}</if>
|
|
|
+ <if test="fPortid != null ">and t.f_portid = #{fPortid}</if>
|
|
|
+ <if test="fCountry != null and fCountry != ''">and t.f_country = #{fCountry}</if>
|
|
|
+ <if test="fProvince != null and fProvince != ''">and t.f_province = #{fProvince}</if>
|
|
|
+ <if test="fCity != null and fCity != ''">and t.f_city = #{fCity}</if>
|
|
|
+ <if test="fTel != null and fTel != ''">and t.f_tel = #{fTel}</if>
|
|
|
+ <if test="fEmail != null and fEmail != ''">and t.f_email = #{fEmail}</if>
|
|
|
+ <if test="fManagerid != null ">and t.f_managerid = #{fManagerid}</if>
|
|
|
+ <if test="fUncode != null and fUncode != ''">and t.f_uncode = #{fUncode}</if>
|
|
|
+ <if test="fPort != null and fPort != ''">and t.f_port = #{fPort}</if>
|
|
|
<if test='cLoadDate != null and cLoadDate[0] != null and cLoadDate[0]!= ""'>
|
|
|
- and create_time >= #{cLoadDate[0]}
|
|
|
+ and t.create_time >= #{cLoadDate[0]}
|
|
|
</if>
|
|
|
<if test='cLoadDate != null and cLoadDate[1] != null and cLoadDate[1]!= ""'>
|
|
|
- and create_time <= #{cLoadDate[1]}
|
|
|
+ and t.create_time <= #{cLoadDate[1]}
|
|
|
</if>
|
|
|
</where>
|
|
|
+ ORDER BY CONVERT(t.f_name USING gbk) asc
|
|
|
+ </select>
|
|
|
+ <select id="selectAddressFno" parameterType="TAddress" resultType="string">
|
|
|
+ SELECT
|
|
|
+ f_no
|
|
|
+ FROM
|
|
|
+ t_address
|
|
|
+ WHERE
|
|
|
+ f_types = #{fTypes}
|
|
|
+ and f_no = #{fNo}
|
|
|
+ ORDER BY CONVERT(f_name USING gbk) asc
|
|
|
+ </select>
|
|
|
+ <select id="selectAddressFName" parameterType="TAddress" resultType="string">
|
|
|
+ SELECT
|
|
|
+ f_no
|
|
|
+ FROM
|
|
|
+ t_address
|
|
|
+ WHERE
|
|
|
+ f_types = #{fTypes}
|
|
|
+ and f_name = #{fName}
|
|
|
+ ORDER BY CONVERT(f_name USING gbk) asc
|
|
|
+ </select>
|
|
|
+ <select id="selectadress" resultType="map">
|
|
|
+ SELECT
|
|
|
+ t.f_name fName,
|
|
|
+ pro.dict_label typesName
|
|
|
+ FROM
|
|
|
+ t_address t
|
|
|
+ LEFT JOIN
|
|
|
+ sys_dict_data pro ON pro.dict_value = t.f_types and pro.dict_type = 'f_types'
|
|
|
+ ORDER BY CONVERT(t.f_name USING gbk) asc
|
|
|
</select>
|
|
|
|
|
|
|