This commit is contained in:
linfso 2024-01-11 13:17:40 +08:00
parent 395495a598
commit b3ab0e9848
2 changed files with 31 additions and 30 deletions

View File

@ -2,7 +2,7 @@
* @Project: emis * @Project: emis
* @Title: EmisDestination.java * @Title: EmisDestination.java
* @author linfso * @author linfso
* @date 2024-01-10 02:53:35 * @date 2024-01-11 05:16:09
* @Copyright: ShangHai Duta 2022 All rights reserved. * @Copyright: ShangHai Duta 2022 All rights reserved.
* @version v1.0 * @version v1.0
* @Description: <p> 目的地 实体类 </p> * @Description: <p> 目的地 实体类 </p>
@ -25,9 +25,9 @@ import lombok.Data;
* @ClassName EmisDestination * @ClassName EmisDestination
* @Description 目的地 * @Description 目的地
* @author linfso * @author linfso
* @date 2024-01-10 02:53:35 * @date 2024-01-11 05:16:09
*/ */
@Data @Data
public class EmisDestination extends BaseEntity public class EmisDestination extends BaseEntity
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ -44,10 +44,6 @@ public class EmisDestination extends BaseEntity
private Integer status; private Integer status;
/* 所属国家 */ /* 所属国家 */
private String country; private String country;
/* 所属线路 */
private String transLineCode;
/* 所属线路名称 */
private String transLine;
/* 服务网点编号 */ /* 服务网点编号 */
private String siteCode; private String siteCode;
/* 服务网点名称 */ /* 服务网点名称 */
@ -61,4 +57,9 @@ public class EmisDestination extends BaseEntity
/* 乡镇 */ /* 乡镇 */
private String town; private String town;
/* 创建网点 */
private String createSite;
/* 更新网点 */
private String updateSite;
} }

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper <!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.xdadan.erp.emis.mapper.EmisDestinationMapper"> <mapper namespace="com.xdadan.erp.emis.mapper.EmisDestinationMapper">
<resultMap type="EmisDestination" id="EmisDestinationResult"> <resultMap type="EmisDestination" id="EmisDestinationResult">
@ -11,8 +11,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="destNameEn" column="dest_name_en" /> <result property="destNameEn" column="dest_name_en" />
<result property="status" column="status" /> <result property="status" column="status" />
<result property="country" column="country" /> <result property="country" column="country" />
<result property="transLineCode" column="trans_line_code" />
<result property="transLine" column="trans_line" />
<result property="siteCode" column="site_code" /> <result property="siteCode" column="site_code" />
<result property="siteName" column="site_name" /> <result property="siteName" column="site_name" />
<result property="province" column="province" /> <result property="province" column="province" />
@ -23,13 +21,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="tenantId" column="tenant_id" /> <result property="tenantId" column="tenant_id" />
<result property="delFlag" column="del_flag" /> <result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" /> <result property="createBy" column="create_by" />
<result property="createSite" column="create_site" />
<result property="createTime" column="create_time" /> <result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" /> <result property="updateBy" column="update_by" />
<result property="updateSite" column="update_site" />
<result property="updateTime" column="update_time" /> <result property="updateTime" column="update_time" />
</resultMap> </resultMap>
<sql id="selectEmisDestinationVo"> <sql id="selectEmisDestinationVo">
select id, dest_code, dest_name, dest_name_en, status, country, trans_line_code, trans_line, site_code, site_name, province, city, county, town, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time from emis_destination select id, dest_code, dest_name, dest_name_en, status, country, site_code, site_name, province, city, county, town, remark, tenant_id, del_flag, create_by, create_site, create_time, update_by, update_site, update_time from emis_destination
</sql> </sql>
<select id="selectEmisDestinationList" parameterType="EmisDestination" resultMap="EmisDestinationResult"> <select id="selectEmisDestinationList" parameterType="EmisDestination" resultMap="EmisDestinationResult">
@ -41,8 +41,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="destNameEn != null and destNameEn != ''"> and dest_name_en like concat('%', #{destNameEn}, '%')</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="status != null "> and status = #{status}</if>
<if test="country != null and country != ''"> and country like concat('%', #{country}, '%')</if> <if test="country != null and country != ''"> and country like concat('%', #{country}, '%')</if>
<if test="transLineCode != null and transLineCode != ''"> and trans_line_code like concat('%', #{transLineCode}, '%')</if>
<if test="transLine != null and transLine != ''"> and trans_line like concat('%', #{transLine}, '%')</if>
<if test="siteCode != null and siteCode != ''"> and site_code like concat('%', #{siteCode}, '%')</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="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="province != null and province != ''"> and province like concat('%', #{province}, '%')</if>
@ -53,15 +51,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="tenantId != null and tenantId != ''"> and tenant_id like concat('%', #{tenantId}, '%')</if> <if test="tenantId != null and tenantId != ''"> and tenant_id like concat('%', #{tenantId}, '%')</if>
<if test="delFlag != null and delFlag != ''"> and del_flag like concat('%', #{delFlag}, '%')</if> <if test="delFlag != null and delFlag != ''"> and del_flag like concat('%', #{delFlag}, '%')</if>
<if test="createBy != null and createBy != ''"> and create_by like concat('%', #{createBy}, '%')</if> <if test="createBy != null and createBy != ''"> and create_by like concat('%', #{createBy}, '%')</if>
<if test="createSite != null and createSite != ''"> and create_site like concat('%', #{createSite}, '%')</if>
<if test="createTime != null "> and create_time = #{createTime}</if> <if test="createTime != null "> and create_time = #{createTime}</if>
<if test="updateBy != null and updateBy != ''"> and update_by like concat('%', #{updateBy}, '%')</if> <if test="updateBy != null and updateBy != ''"> and update_by like concat('%', #{updateBy}, '%')</if>
<if test="updateSite != null and updateSite != ''"> and update_site like concat('%', #{updateSite}, '%')</if>
<if test="updateTime != null "> and update_time = #{updateTime}</if> <if test="updateTime != null "> and update_time = #{updateTime}</if>
</where> </where>
order by create_time desc order by create_time desc
</select> </select>
<select id="selectEmisDestinationById" parameterType="Long" resultMap="EmisDestinationResult"> <select id="selectEmisDestinationById" parameterType="Long" resultMap="EmisDestinationResult">
select id, dest_code, dest_name, dest_name_en, status, country, trans_line_code, trans_line, site_code, site_name, province, city, county, town, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time select id, dest_code, dest_name, dest_name_en, status, country, site_code, site_name, province, city, county, town, remark, tenant_id, del_flag, create_by, create_site, create_time, update_by, update_site, update_time
from emis_destination a from emis_destination a
where a.id = #{id} where a.id = #{id}
</select> </select>
@ -75,8 +75,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="destNameEn != null and destNameEn != ''">dest_name_en,</if> <if test="destNameEn != null and destNameEn != ''">dest_name_en,</if>
<if test="status != null">status,</if> <if test="status != null">status,</if>
<if test="country != null and country != ''">country,</if> <if test="country != null and country != ''">country,</if>
<if test="transLineCode != null and transLineCode != ''">trans_line_code,</if>
<if test="transLine != null and transLine != ''">trans_line,</if>
<if test="siteCode != null and siteCode != ''">site_code,</if> <if test="siteCode != null and siteCode != ''">site_code,</if>
<if test="siteName != null and siteName != ''">site_name,</if> <if test="siteName != null and siteName != ''">site_name,</if>
<if test="province != null and province != ''">province,</if> <if test="province != null and province != ''">province,</if>
@ -87,10 +85,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="tenantId != null and tenantId != ''">tenant_id,</if> <if test="tenantId != null and tenantId != ''">tenant_id,</if>
<if test="delFlag != null and delFlag != ''">del_flag,</if> <if test="delFlag != null and delFlag != ''">del_flag,</if>
<if test="createBy != null and createBy != ''">create_by,</if> <if test="createBy != null and createBy != ''">create_by,</if>
<if test="createSite != null and createSite != ''">create_site,</if>
<if test="createTime != null">create_time,</if> <if test="createTime != null">create_time,</if>
<if test="updateBy != null and updateBy != ''">update_by,</if> <if test="updateBy != null and updateBy != ''">update_by,</if>
<if test="updateSite != null and updateSite != ''">update_site,</if>
<if test="updateTime != null">update_time,</if> <if test="updateTime != null">update_time,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if> <if test="id != null">#{id},</if>
<if test="destCode != null and destCode != ''">#{destCode},</if> <if test="destCode != null and destCode != ''">#{destCode},</if>
@ -98,8 +98,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="destNameEn != null and destNameEn != ''">#{destNameEn},</if> <if test="destNameEn != null and destNameEn != ''">#{destNameEn},</if>
<if test="status != null">#{status},</if> <if test="status != null">#{status},</if>
<if test="country != null and country != ''">#{country},</if> <if test="country != null and country != ''">#{country},</if>
<if test="transLineCode != null and transLineCode != ''">#{transLineCode},</if>
<if test="transLine != null and transLine != ''">#{transLine},</if>
<if test="siteCode != null and siteCode != ''">#{siteCode},</if> <if test="siteCode != null and siteCode != ''">#{siteCode},</if>
<if test="siteName != null and siteName != ''">#{siteName},</if> <if test="siteName != null and siteName != ''">#{siteName},</if>
<if test="province != null and province != ''">#{province},</if> <if test="province != null and province != ''">#{province},</if>
@ -110,10 +108,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="tenantId != null and tenantId != ''">#{tenantId},</if> <if test="tenantId != null and tenantId != ''">#{tenantId},</if>
<if test="delFlag != null and delFlag != ''">#{delFlag},</if> <if test="delFlag != null and delFlag != ''">#{delFlag},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if> <if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="createSite != null and createSite != ''">#{createSite},</if>
<if test="createTime != null">#{createTime},</if> <if test="createTime != null">#{createTime},</if>
<if test="updateBy != null and updateBy != ''">#{updateBy},</if> <if test="updateBy != null and updateBy != ''">#{updateBy},</if>
<if test="updateSite != null and updateSite != ''">#{updateSite},</if>
<if test="updateTime != null">#{updateTime},</if> <if test="updateTime != null">#{updateTime},</if>
</trim> </trim>
</insert> </insert>
<update id="updateEmisDestination" parameterType="EmisDestination"> <update id="updateEmisDestination" parameterType="EmisDestination">
@ -124,8 +124,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="destNameEn != null and destNameEn != ''">dest_name_en = #{destNameEn},</if> <if test="destNameEn != null and destNameEn != ''">dest_name_en = #{destNameEn},</if>
<if test="status != null">status = #{status},</if> <if test="status != null">status = #{status},</if>
<if test="country != null and country != ''">country = #{country},</if> <if test="country != null and country != ''">country = #{country},</if>
<if test="transLineCode != null and transLineCode != ''">trans_line_code = #{transLineCode},</if>
<if test="transLine != null and transLine != ''">trans_line = #{transLine},</if>
<if test="siteCode != null and siteCode != ''">site_code = #{siteCode},</if> <if test="siteCode != null and siteCode != ''">site_code = #{siteCode},</if>
<if test="siteName != null and siteName != ''">site_name = #{siteName},</if> <if test="siteName != null and siteName != ''">site_name = #{siteName},</if>
<if test="province != null and province != ''">province = #{province},</if> <if test="province != null and province != ''">province = #{province},</if>
@ -136,8 +134,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="tenantId != null and tenantId != ''">tenant_id = #{tenantId},</if> <if test="tenantId != null and tenantId != ''">tenant_id = #{tenantId},</if>
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if> <if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if> <if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
<if test="createSite != null and createSite != ''">create_site = #{createSite},</if>
<if test="createTime != null">create_time = #{createTime},</if> <if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
<if test="updateSite != null and updateSite != ''">update_site = #{updateSite},</if>
<if test="updateTime != null">update_time = #{updateTime},</if> <if test="updateTime != null">update_time = #{updateTime},</if>
</trim> </trim>
where id = #{id} where id = #{id}