md
This commit is contained in:
parent
a0d807a47e
commit
5b3e76f29f
@ -1,10 +1,10 @@
|
||||
/**
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisTransLine.java
|
||||
* @author linfso
|
||||
* @date 2023-12-14 13:02:47
|
||||
* @date 2023-12-26 12:30:16
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @version v1.0
|
||||
* @Description: <p> 线路 实体类 </p>
|
||||
*/
|
||||
|
||||
@ -25,9 +25,9 @@ import lombok.Data;
|
||||
* @ClassName EmisTransLine
|
||||
* @Description 线路
|
||||
* @author linfso
|
||||
* @date 2023-12-14 13:02:47
|
||||
* @date 2023-12-26 12:30:16
|
||||
*/
|
||||
@Data
|
||||
@Data
|
||||
public class EmisTransLine extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
@ -52,11 +52,14 @@ public class EmisTransLine extends BaseEntity
|
||||
private String operateMan;
|
||||
/* 操作员代码 */
|
||||
private String operateManCode;
|
||||
/* 起始国 */
|
||||
private String fromCountry;
|
||||
/* 目的国家 */
|
||||
private String country;
|
||||
/* 适用范围 */
|
||||
private String applyScope;
|
||||
/* 品牌类型 */
|
||||
/* 所属品牌 */
|
||||
private String logoType;
|
||||
|
||||
/* 运输方式 */
|
||||
private String transType;
|
||||
}
|
||||
|
||||
@ -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.EmisTransLineMapper">
|
||||
|
||||
|
||||
<resultMap type="EmisTransLine" id="EmisTransLineResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="lineCode" column="line_code" />
|
||||
@ -15,18 +15,27 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="marketManCode" column="market_man_code" />
|
||||
<result property="operateMan" column="operate_man" />
|
||||
<result property="operateManCode" column="operate_man_code" />
|
||||
<result property="fromCountry" column="from_country" />
|
||||
<result property="country" column="country" />
|
||||
<result property="applyScope" column="apply_scope" />
|
||||
<result property="logoType" column="logo_type" />
|
||||
<result property="transType" column="trans_type" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="tenantId" column="tenant_id" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmisTransLineVo">
|
||||
select id, line_code, line_name, status, site_audit_man, site_audit_man_code, market_man, market_man_code, operate_man, operate_man_code, country, apply_scope, logo_type from emis_trans_line
|
||||
select id, line_code, line_name, status, site_audit_man, site_audit_man_code, market_man, market_man_code, operate_man, operate_man_code, from_country, country, apply_scope, logo_type, trans_type, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time from emis_trans_line
|
||||
</sql>
|
||||
|
||||
<select id="selectEmisTransLineList" parameterType="EmisTransLine" resultMap="EmisTransLineResult">
|
||||
<include refid="selectEmisTransLineVo"/>
|
||||
<where>
|
||||
<where>
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="lineCode != null and lineCode != ''"> and line_code like concat('%', #{lineCode}, '%')</if>
|
||||
<if test="lineName != null and lineName != ''"> and line_name like concat('%', #{lineName}, '%')</if>
|
||||
@ -37,19 +46,28 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="marketManCode != null and marketManCode != ''"> and market_man_code like concat('%', #{marketManCode}, '%')</if>
|
||||
<if test="operateMan != null and operateMan != ''"> and operate_man like concat('%', #{operateMan}, '%')</if>
|
||||
<if test="operateManCode != null and operateManCode != ''"> and operate_man_code like concat('%', #{operateManCode}, '%')</if>
|
||||
<if test="fromCountry != null and fromCountry != ''"> and from_country like concat('%', #{fromCountry}, '%')</if>
|
||||
<if test="country != null and country != ''"> and country like concat('%', #{country}, '%')</if>
|
||||
<if test="applyScope != null and applyScope != ''"> and apply_scope like concat('%', #{applyScope}, '%')</if>
|
||||
<if test="logoType != null and logoType != ''"> and logo_type like concat('%', #{logoType}, '%')</if>
|
||||
<if test="transType != null and transType != ''"> and trans_type like concat('%', #{transType}, '%')</if>
|
||||
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</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="createBy != null and createBy != ''"> and create_by like concat('%', #{createBy}, '%')</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="updateTime != null "> and update_time = #{updateTime}</if>
|
||||
</where>
|
||||
order by create_time desc
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectEmisTransLineById" parameterType="Long" resultMap="EmisTransLineResult">
|
||||
select id, line_code, line_name, status, site_audit_man, site_audit_man_code, market_man, market_man_code, operate_man, operate_man_code, country, apply_scope, logo_type
|
||||
select id, line_code, line_name, status, site_audit_man, site_audit_man_code, market_man, market_man_code, operate_man, operate_man_code, from_country, country, apply_scope, logo_type, trans_type, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time
|
||||
from emis_trans_line a
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
|
||||
<insert id="insertEmisTransLine" parameterType="EmisTransLine">
|
||||
insert into emis_trans_line
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
@ -63,10 +81,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="marketManCode != null and marketManCode != ''">market_man_code,</if>
|
||||
<if test="operateMan != null and operateMan != ''">operate_man,</if>
|
||||
<if test="operateManCode != null and operateManCode != ''">operate_man_code,</if>
|
||||
<if test="fromCountry != null and fromCountry != ''">from_country,</if>
|
||||
<if test="country != null and country != ''">country,</if>
|
||||
<if test="applyScope != null and applyScope != ''">apply_scope,</if>
|
||||
<if test="logoType != null and logoType != ''">logo_type,</if>
|
||||
</trim>
|
||||
<if test="transType != null and transType != ''">trans_type,</if>
|
||||
<if test="remark != null and remark != ''">remark,</if>
|
||||
<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="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="lineCode != null and lineCode != ''">#{lineCode},</if>
|
||||
@ -78,10 +105,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="marketManCode != null and marketManCode != ''">#{marketManCode},</if>
|
||||
<if test="operateMan != null and operateMan != ''">#{operateMan},</if>
|
||||
<if test="operateManCode != null and operateManCode != ''">#{operateManCode},</if>
|
||||
<if test="fromCountry != null and fromCountry != ''">#{fromCountry},</if>
|
||||
<if test="country != null and country != ''">#{country},</if>
|
||||
<if test="applyScope != null and applyScope != ''">#{applyScope},</if>
|
||||
<if test="logoType != null and logoType != ''">#{logoType},</if>
|
||||
</trim>
|
||||
<if test="transType != null and transType != ''">#{transType},</if>
|
||||
<if test="remark != null and remark != ''">#{remark},</if>
|
||||
<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="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateEmisTransLine" parameterType="EmisTransLine">
|
||||
@ -96,9 +132,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="marketManCode != null and marketManCode != ''">market_man_code = #{marketManCode},</if>
|
||||
<if test="operateMan != null and operateMan != ''">operate_man = #{operateMan},</if>
|
||||
<if test="operateManCode != null and operateManCode != ''">operate_man_code = #{operateManCode},</if>
|
||||
<if test="fromCountry != null and fromCountry != ''">from_country = #{fromCountry},</if>
|
||||
<if test="country != null and country != ''">country = #{country},</if>
|
||||
<if test="applyScope != null and applyScope != ''">apply_scope = #{applyScope},</if>
|
||||
<if test="logoType != null and logoType != ''">logo_type = #{logoType},</if>
|
||||
<if test="transType != null and transType != ''">trans_type = #{transType},</if>
|
||||
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
||||
<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="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
@ -108,7 +153,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEmisTransLineByIds" parameterType="String">
|
||||
delete from emis_trans_line where id in
|
||||
delete from emis_trans_line where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user