md
This commit is contained in:
parent
e2b44f6f37
commit
84e51a0460
@ -2,7 +2,7 @@
|
||||
* @Project: emis
|
||||
* @Title: EmisDestination.java
|
||||
* @author linfso
|
||||
* @date 2024-01-11 05:28:11
|
||||
* @date 2024-04-17 01:13:51
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 目的地 实体类 </p>
|
||||
@ -17,6 +17,7 @@ import com.xdadan.erp.common.annotation.Excel;
|
||||
import com.xdadan.erp.common.core.domain.BaseEntity;
|
||||
import com.xdadan.erp.common.core.domain.TreeEntity;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
@ -25,7 +26,7 @@ import lombok.Data;
|
||||
* @ClassName EmisDestination
|
||||
* @Description 目的地
|
||||
* @author linfso
|
||||
* @date 2024-01-11 05:28:11
|
||||
* @date 2024-04-17 01:13:51
|
||||
*/
|
||||
@Data
|
||||
public class EmisDestination extends BaseEntity
|
||||
@ -42,12 +43,12 @@ public class EmisDestination extends BaseEntity
|
||||
private String destNameEn;
|
||||
/* 启用状态 0-启用 1-停用 */
|
||||
private Integer status;
|
||||
/* 线路编号 */
|
||||
private String lineCode;
|
||||
/* 所属国家 */
|
||||
private String country;
|
||||
/* 服务网点编号 */
|
||||
private String siteCode;
|
||||
/* 服务网点名称 */
|
||||
private String siteName;
|
||||
/* 省 */
|
||||
private String province;
|
||||
/* 市 */
|
||||
@ -58,9 +59,14 @@ public class EmisDestination extends BaseEntity
|
||||
private String town;
|
||||
/* 是否偏远地区 0-否 1-是 */
|
||||
private Integer isHinterland;
|
||||
/* 创建网点 */
|
||||
private String createSite;
|
||||
/* 更新网点 */
|
||||
private String updateSite;
|
||||
|
||||
|
||||
private String lineName;
|
||||
private String countryName;
|
||||
private String provinceName;
|
||||
private String cityName;
|
||||
private String countyName;
|
||||
private String townName;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -10,9 +10,9 @@
|
||||
<result property="destName" column="dest_name" />
|
||||
<result property="destNameEn" column="dest_name_en" />
|
||||
<result property="status" column="status" />
|
||||
<result property="lineCode" column="line_code" />
|
||||
<result property="country" column="country" />
|
||||
<result property="siteCode" column="site_code" />
|
||||
<result property="siteName" column="site_name" />
|
||||
<result property="province" column="province" />
|
||||
<result property="city" column="city" />
|
||||
<result property="county" column="county" />
|
||||
@ -27,23 +27,47 @@
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateSite" column="update_site" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
|
||||
<association property="lineName" column="line_code" select="selectLineNameByCode"/>
|
||||
<association property="countryName" column="country" select="selectCountryNameByCode"/>
|
||||
<association property="provinceName" column="province" select="selectRegionNameByCode"/>
|
||||
<association property="cityName" column="city" select="selectRegionNameByCode"/>
|
||||
<association property="countyName" column="county" select="selectRegionNameByCode"/>
|
||||
<association property="townName" column="town" select="selectRegionNameByCode"/>
|
||||
|
||||
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmisDestinationVo">
|
||||
select id, dest_code, dest_name, dest_name_en, status, country, site_code, site_name, province, city, county, town, is_hinterland, remark, tenant_id, del_flag, create_by, create_site, create_time, update_by, update_site, update_time from emis_destination
|
||||
select id, dest_code, dest_name, dest_name_en, status, line_code, country, site_code, province, city, county, town, is_hinterland, remark, tenant_id, del_flag, create_by, create_site, create_time, update_by, update_site, update_time from emis_destination
|
||||
</sql>
|
||||
|
||||
<select id="selectCountryNameByCode" parameterType="String" resultType="string">
|
||||
select a.name from emis_country a where a.code = #{code}
|
||||
</select>
|
||||
|
||||
<select id="selectLineNameByCode" parameterType="String" resultType="string">
|
||||
select a.line_name from emis_trans_line a where a.line_code = #{code}
|
||||
</select>
|
||||
|
||||
<select id="selectRegionNameByCode" parameterType="String" resultType="string">
|
||||
select a.region_name from emis_region a where a.region_code = #{code}
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
|
||||
<select id="selectEmisDestinationList" parameterType="EmisDestination" resultMap="EmisDestinationResult">
|
||||
<include refid="selectEmisDestinationVo"/>
|
||||
<where>
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="destCode != null and destCode != ''"> and dest_code like concat('%', #{destCode}, '%')</if>
|
||||
<if test="destCode != null and destCode != ''"> and dest_cod=#{destCode}</if>
|
||||
<if test="destName != null and destName != ''"> and dest_name like concat('%', #{destName}, '%')</if>
|
||||
<if test="destNameEn != null and destNameEn != ''"> and dest_name_en like concat('%', #{destNameEn}, '%')</if>
|
||||
<if test="status != null "> and status = #{status}</if>
|
||||
<if test="lineCode != null and lineCode != ''"> and line_code like concat('%', #{lineCode}, '%')</if>
|
||||
<if test="country != null and country != ''"> and country like concat('%', #{country}, '%')</if>
|
||||
<if test="siteCode != null and siteCode != ''"> and site_code like concat('%', #{siteCode}, '%')</if>
|
||||
<if test="siteName != null and siteName != ''"> and site_name like concat('%', #{siteName}, '%')</if>
|
||||
<if test="province != null and province != ''"> and province like concat('%', #{province}, '%')</if>
|
||||
<if test="city != null and city != ''"> and city like concat('%', #{city}, '%')</if>
|
||||
<if test="county != null and county != ''"> and county like concat('%', #{county}, '%')</if>
|
||||
@ -63,7 +87,7 @@
|
||||
</select>
|
||||
|
||||
<select id="selectEmisDestinationById" parameterType="Long" resultMap="EmisDestinationResult">
|
||||
select id, dest_code, dest_name, dest_name_en, status, country, site_code, site_name, province, city, county, town, is_hinterland, remark, tenant_id, del_flag, create_by, create_site, create_time, update_by, update_site, update_time
|
||||
select id, dest_code, dest_name, dest_name_en, status, line_code, country, site_code, province, city, county, town, is_hinterland, remark, tenant_id, del_flag, create_by, create_site, create_time, update_by, update_site, update_time
|
||||
from emis_destination a
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
@ -76,9 +100,9 @@
|
||||
<if test="destName != null and destName != ''">dest_name,</if>
|
||||
<if test="destNameEn != null and destNameEn != ''">dest_name_en,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="lineCode != null and lineCode != ''">line_code,</if>
|
||||
<if test="country != null and country != ''">country,</if>
|
||||
<if test="siteCode != null and siteCode != ''">site_code,</if>
|
||||
<if test="siteName != null and siteName != ''">site_name,</if>
|
||||
<if test="province != null and province != ''">province,</if>
|
||||
<if test="city != null and city != ''">city,</if>
|
||||
<if test="county != null and county != ''">county,</if>
|
||||
@ -100,9 +124,9 @@
|
||||
<if test="destName != null and destName != ''">#{destName},</if>
|
||||
<if test="destNameEn != null and destNameEn != ''">#{destNameEn},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="lineCode != null and lineCode != ''">#{lineCode},</if>
|
||||
<if test="country != null and country != ''">#{country},</if>
|
||||
<if test="siteCode != null and siteCode != ''">#{siteCode},</if>
|
||||
<if test="siteName != null and siteName != ''">#{siteName},</if>
|
||||
<if test="province != null and province != ''">#{province},</if>
|
||||
<if test="city != null and city != ''">#{city},</if>
|
||||
<if test="county != null and county != ''">#{county},</if>
|
||||
@ -127,9 +151,9 @@
|
||||
<if test="destName != null and destName != ''">dest_name = #{destName},</if>
|
||||
<if test="destNameEn != null and destNameEn != ''">dest_name_en = #{destNameEn},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="lineCode != null and lineCode != ''">line_code = #{lineCode},</if>
|
||||
<if test="country != null and country != ''">country = #{country},</if>
|
||||
<if test="siteCode != null and siteCode != ''">site_code = #{siteCode},</if>
|
||||
<if test="siteName != null and siteName != ''">site_name = #{siteName},</if>
|
||||
<if test="province != null and province != ''">province = #{province},</if>
|
||||
<if test="city != null and city != ''">city = #{city},</if>
|
||||
<if test="county != null and county != ''">county = #{county},</if>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user