md
This commit is contained in:
parent
395495a598
commit
b3ab0e9848
@ -1,10 +1,10 @@
|
||||
/**
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisDestination.java
|
||||
* @author linfso
|
||||
* @date 2024-01-10 02:53:35
|
||||
* @date 2024-01-11 05:16:09
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @version v1.0
|
||||
* @Description: <p> 目的地 实体类 </p>
|
||||
*/
|
||||
|
||||
@ -25,9 +25,9 @@ import lombok.Data;
|
||||
* @ClassName EmisDestination
|
||||
* @Description 目的地
|
||||
* @author linfso
|
||||
* @date 2024-01-10 02:53:35
|
||||
* @date 2024-01-11 05:16:09
|
||||
*/
|
||||
@Data
|
||||
@Data
|
||||
public class EmisDestination extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
@ -44,10 +44,6 @@ public class EmisDestination extends BaseEntity
|
||||
private Integer status;
|
||||
/* 所属国家 */
|
||||
private String country;
|
||||
/* 所属线路 */
|
||||
private String transLineCode;
|
||||
/* 所属线路名称 */
|
||||
private String transLine;
|
||||
/* 服务网点编号 */
|
||||
private String siteCode;
|
||||
/* 服务网点名称 */
|
||||
@ -61,4 +57,9 @@ public class EmisDestination extends BaseEntity
|
||||
/* 乡镇 */
|
||||
private String town;
|
||||
|
||||
/* 创建网点 */
|
||||
private String createSite;
|
||||
/* 更新网点 */
|
||||
private String updateSite;
|
||||
|
||||
}
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
<?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">
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.xdadan.erp.emis.mapper.EmisDestinationMapper">
|
||||
|
||||
|
||||
<resultMap type="EmisDestination" id="EmisDestinationResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="destCode" column="dest_code" />
|
||||
@ -11,8 +11,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="destNameEn" column="dest_name_en" />
|
||||
<result property="status" column="status" />
|
||||
<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="siteName" column="site_name" />
|
||||
<result property="province" column="province" />
|
||||
@ -23,26 +21,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="tenantId" column="tenant_id" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createSite" column="create_site" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateSite" column="update_site" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<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>
|
||||
|
||||
<select id="selectEmisDestinationList" parameterType="EmisDestination" resultMap="EmisDestinationResult">
|
||||
<include refid="selectEmisDestinationVo"/>
|
||||
<where>
|
||||
<where>
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="destCode != null and destCode != ''"> and dest_code like concat('%', #{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="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="siteName != null and siteName != ''"> and site_name like concat('%', #{siteName}, '%')</if>
|
||||
<if test="province != null and province != ''"> and province like concat('%', #{province}, '%')</if>
|
||||
@ -53,19 +51,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<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="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="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>
|
||||
</where>
|
||||
order by create_time desc
|
||||
</select>
|
||||
|
||||
|
||||
<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
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
|
||||
<insert id="insertEmisDestination" parameterType="EmisDestination">
|
||||
insert into emis_destination
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
@ -75,8 +75,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="destNameEn != null and destNameEn != ''">dest_name_en,</if>
|
||||
<if test="status != null">status,</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="siteName != null and siteName != ''">site_name,</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="delFlag != null and delFlag != ''">del_flag,</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="updateBy != null and updateBy != ''">update_by,</if>
|
||||
<if test="updateSite != null and updateSite != ''">update_site,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</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="status != null">#{status},</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="siteName != null and siteName != ''">#{siteName},</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="delFlag != null and delFlag != ''">#{delFlag},</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="updateBy != null and updateBy != ''">#{updateBy},</if>
|
||||
<if test="updateSite != null and updateSite != ''">#{updateSite},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<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="status != null">status = #{status},</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="siteName != null and siteName != ''">site_name = #{siteName},</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="delFlag != null and delFlag != ''">del_flag = #{delFlag},</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="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>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
@ -148,7 +148,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEmisDestinationByIds" parameterType="String">
|
||||
delete from emis_destination where id in
|
||||
delete from emis_destination where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user