md
This commit is contained in:
parent
83c2a3e2af
commit
e41f3410fa
@ -1,11 +1,11 @@
|
||||
/**
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisTmsSiteBatch.java
|
||||
* @author linfso
|
||||
* @date 2024-03-01 08:54:56
|
||||
* @date 2024-06-03 05:43:37
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 一级网点TMS组批次 实体类 </p>
|
||||
* @version v1.0
|
||||
* @Description: <p> TMS组批次 实体类 </p>
|
||||
*/
|
||||
|
||||
package com.xdadan.erp.emis.domain;
|
||||
@ -24,23 +24,26 @@ import lombok.Data;
|
||||
|
||||
/**
|
||||
* @ClassName EmisTmsSiteBatch
|
||||
* @Description 一级网点TMS组批次
|
||||
* @Description TMS组批次
|
||||
* @author linfso
|
||||
* @date 2024-03-01 08:54:56
|
||||
* @date 2024-06-03 05:43:37
|
||||
*/
|
||||
@Data
|
||||
@Data
|
||||
public class EmisTmsSiteBatch extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/* id */
|
||||
private Long id;
|
||||
/* 批次代码 */
|
||||
private String batchCode;
|
||||
/* 批次号 */
|
||||
private String batchNo;
|
||||
/* 批次名称 */
|
||||
private String batchName;
|
||||
/* 批次时间 */
|
||||
private String batchDate;
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date batchDate;
|
||||
/* 批次类型 1-网点组批次 2-总部组批 */
|
||||
private String batchType;
|
||||
/* 运输方式: 空运 陆运 海运 */
|
||||
private String transType;
|
||||
/* 起始网点 */
|
||||
@ -50,11 +53,13 @@ public class EmisTmsSiteBatch extends BaseEntity
|
||||
/* 航空单号 */
|
||||
private String airBilllNo;
|
||||
/* 预计出发时间 */
|
||||
private String etd;
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date etd;
|
||||
/* 预计到达时间 */
|
||||
private String eta;
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date eta;
|
||||
/* 包数 */
|
||||
private String packNum;
|
||||
private Integer packNum;
|
||||
/* 车牌号 */
|
||||
private String carNo;
|
||||
/* 船次号 */
|
||||
@ -63,9 +68,19 @@ public class EmisTmsSiteBatch extends BaseEntity
|
||||
private String clearanceResStatus;
|
||||
/* 报关资料状态 1-清关资料完整 2-清关资料异常 */
|
||||
private String declareResStatus;
|
||||
/* 创建站点代码 */
|
||||
private String createSiteCode;
|
||||
/* 修改站点代码 */
|
||||
private String modifySiteCode;
|
||||
/* 目的国家 */
|
||||
private String destCountry;
|
||||
/* 目的国家名称 */
|
||||
private String destCountryName;
|
||||
/* 总件数 */
|
||||
private Integer totalParcelQty;
|
||||
/* 总运单数 */
|
||||
private Integer totalWaybillQty;
|
||||
/* 总体积 */
|
||||
private BigDecimal totalVolume;
|
||||
/* 总重量 */
|
||||
private BigDecimal totalWeight;
|
||||
/* 操作员 */
|
||||
private String opMan;
|
||||
|
||||
}
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
/**
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisTmsSiteBatchDtl.java
|
||||
* @author linfso
|
||||
* @date 2024-03-01 08:54:56
|
||||
* @date 2024-06-03 05:44:39
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 一级网点TMS组批次明细 实体类 </p>
|
||||
* @version v1.0
|
||||
* @Description: <p> TMS组批次明细 实体类 </p>
|
||||
*/
|
||||
|
||||
package com.xdadan.erp.emis.domain;
|
||||
@ -24,22 +24,31 @@ import lombok.Data;
|
||||
|
||||
/**
|
||||
* @ClassName EmisTmsSiteBatchDtl
|
||||
* @Description 一级网点TMS组批次明细
|
||||
* @Description TMS组批次明细
|
||||
* @author linfso
|
||||
* @date 2024-03-01 08:54:56
|
||||
* @date 2024-06-03 05:44:39
|
||||
*/
|
||||
@Data
|
||||
@Data
|
||||
public class EmisTmsSiteBatchDtl extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/* id */
|
||||
private Long id;
|
||||
/* 批次号 */
|
||||
private Long batchId;
|
||||
/* 运单id */
|
||||
private Long waybillId;
|
||||
/* 运单号 */
|
||||
private Long billCode;
|
||||
private String billCode;
|
||||
/* 批次代码 */
|
||||
private String batchNo;
|
||||
/* 扫描时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date scanDate;
|
||||
/* 扫描状态 1-已扫描 0-未扫描 */
|
||||
private String scanStatus;
|
||||
/* 状态 1-组批 2-拿出 */
|
||||
private String groupStatus;
|
||||
/* 扫描员 */
|
||||
private String scanMan;
|
||||
/* 扫描站点 */
|
||||
private String scanSite;
|
||||
|
||||
}
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
/**
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisTmsSiteBatchLoading.java
|
||||
* @author linfso
|
||||
* @date 2024-03-01 08:54:57
|
||||
* @date 2024-06-03 05:44:54
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 一级网点TMS组批次配置 实体类 </p>
|
||||
* @version v1.0
|
||||
* @Description: <p> TMS组批次配载 实体类 </p>
|
||||
*/
|
||||
|
||||
package com.xdadan.erp.emis.domain;
|
||||
@ -24,11 +24,11 @@ import lombok.Data;
|
||||
|
||||
/**
|
||||
* @ClassName EmisTmsSiteBatchLoading
|
||||
* @Description 一级网点TMS组批次配置
|
||||
* @Description TMS组批次配载
|
||||
* @author linfso
|
||||
* @date 2024-03-01 08:54:57
|
||||
* @date 2024-06-03 05:44:54
|
||||
*/
|
||||
@Data
|
||||
@Data
|
||||
public class EmisTmsSiteBatchLoading extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
@ -36,9 +36,15 @@ public class EmisTmsSiteBatchLoading extends BaseEntity
|
||||
/* id */
|
||||
private Long id;
|
||||
/* 批次号 */
|
||||
private Long batchId;
|
||||
/* 位置信息 行列 00---05 00-20 3行6列 */
|
||||
private String batchNo;
|
||||
/* 位置编号 行列 00---05 00-20 3行6列 */
|
||||
private String posNo;
|
||||
/* 行坐标 */
|
||||
private String row;
|
||||
/* 列坐标 */
|
||||
private String col;
|
||||
/* 层坐标 */
|
||||
private String layer;
|
||||
/* 位置描述 */
|
||||
private String posDesc;
|
||||
|
||||
|
||||
@ -246,11 +246,11 @@
|
||||
and sign_date <![CDATA[ <= ]]> #{params.endSignDate}
|
||||
</if>
|
||||
|
||||
<if test="params.isUploadPic != null and params.isUploadPic = 1">
|
||||
<if test="params.isUploadPic != null and params.isUploadPic = '1'">
|
||||
and pic_url is not null
|
||||
</if>
|
||||
|
||||
<if test="params.isUploadPic != null and params.isUploadPic = 0">
|
||||
<if test="params.isUploadPic != null and params.isUploadPic = '0'">
|
||||
and pic_url is null
|
||||
</if>
|
||||
|
||||
|
||||
@ -1,89 +1,139 @@
|
||||
<?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.EmisTmsSiteBatchDtlMapper">
|
||||
|
||||
<resultMap type="EmisTmsSiteBatchDtl" id="EmisTmsSiteBatchDtlResult" >
|
||||
|
||||
<resultMap type="EmisTmsSiteBatchDtl" id="EmisTmsSiteBatchDtlResult" extends="com.xdadan.erp.emis.mapper.EmisBaseMapper.EmisBaseResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="batchId" column="batch_id" />
|
||||
<result property="waybillId" column="waybill_id" />
|
||||
<result property="billCode" column="bill_code" />
|
||||
<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" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="batchNo" column="batch_no" />
|
||||
<result property="scanDate" column="scan_date" />
|
||||
<result property="scanStatus" column="scan_status" />
|
||||
<result property="groupStatus" column="group_status" />
|
||||
<result property="scanMan" column="scan_man" />
|
||||
<result property="scanSite" column="scan_site" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmisTmsSiteBatchDtlVo">
|
||||
select id, batch_id, waybill_id, bill_code, del_flag, create_by, create_time, update_by, update_time, remark from emis_tms_site_batch_dtl
|
||||
select id, bill_code, batch_no, scan_date, scan_status, group_status, scan_man, scan_site, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_tms_site_batch_dtl
|
||||
</sql>
|
||||
|
||||
<select id="selectEmisTmsSiteBatchDtlList" parameterType="EmisTmsSiteBatchDtl" resultMap="EmisTmsSiteBatchDtlResult">
|
||||
<include refid="selectEmisTmsSiteBatchDtlVo"/>
|
||||
<where>
|
||||
<where>
|
||||
del_flag='0'
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="batchId != null "> and batch_id = #{batchId}</if>
|
||||
<if test="waybillId != null "> and waybill_id = #{waybillId}</if>
|
||||
<if test="billCode != null "> and bill_code = #{billCode}</if>
|
||||
<if test="billCode != null and billCode != ''"> and bill_code like concat('%', #{billCode}, '%')</if>
|
||||
<if test="batchNo != null and batchNo != ''"> and batch_no like concat('%', #{batchNo}, '%')</if>
|
||||
<if test="scanDate != null "> and scan_date = #{scanDate}</if>
|
||||
<if test="scanStatus != null and scanStatus != ''"> and scan_status like concat('%', #{scanStatus}, '%')</if>
|
||||
<if test="groupStatus != null and groupStatus != ''"> and group_status like concat('%', #{groupStatus}, '%')</if>
|
||||
<if test="scanMan != null and scanMan != ''"> and scan_man like concat('%', #{scanMan}, '%')</if>
|
||||
<if test="scanSite != null and scanSite != ''"> and scan_site like concat('%', #{scanSite}, '%')</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>
|
||||
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
|
||||
<if test="createSite != null and createSite != ''"> and create_site like concat('%', #{createSite}, '%')</if>
|
||||
<if test="updateSite != null and updateSite != ''"> and update_site like concat('%', #{updateSite}, '%')</if>
|
||||
</where>
|
||||
order by create_time desc
|
||||
</select>
|
||||
|
||||
|
||||
<select id="checkUnique" parameterType="EmisTmsSiteBatchDtl" resultType="int">
|
||||
select count(1) from emis_tms_site_batch_dtl
|
||||
where del_flag='0'
|
||||
and id = #{id}
|
||||
and bill_code = #{billCode}
|
||||
and batch_no = #{batchNo}
|
||||
and scan_date = #{scanDate}
|
||||
and scan_status = #{scanStatus}
|
||||
and group_status = #{groupStatus}
|
||||
and scan_man = #{scanMan}
|
||||
and scan_site = #{scanSite}
|
||||
and remark = #{remark}
|
||||
and tenant_id = #{tenantId}
|
||||
and del_flag = #{delFlag}
|
||||
and create_by = #{createBy}
|
||||
and create_time = #{createTime}
|
||||
and update_by = #{updateBy}
|
||||
and update_time = #{updateTime}
|
||||
and create_site = #{createSite}
|
||||
and update_site = #{updateSite}
|
||||
limit 1
|
||||
</select>
|
||||
|
||||
<select id="selectEmisTmsSiteBatchDtlById" parameterType="Long" resultMap="EmisTmsSiteBatchDtlResult">
|
||||
select id, batch_id, waybill_id, bill_code, del_flag, create_by, create_time, update_by, update_time, remark
|
||||
select id, bill_code, batch_no, scan_date, scan_status, group_status, scan_man, scan_site, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
||||
from emis_tms_site_batch_dtl a
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertEmisTmsSiteBatchDtl" parameterType="EmisTmsSiteBatchDtl">
|
||||
|
||||
<insert id="insertEmisTmsSiteBatchDtl" parameterType="EmisTmsSiteBatchDtl" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into emis_tms_site_batch_dtl
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="batchId != null">batch_id,</if>
|
||||
<if test="waybillId != null">waybill_id,</if>
|
||||
<if test="billCode != null">bill_code,</if>
|
||||
<if test="billCode != null and billCode != ''">bill_code,</if>
|
||||
<if test="batchNo != null and batchNo != ''">batch_no,</if>
|
||||
<if test="scanDate != null">scan_date,</if>
|
||||
<if test="scanStatus != null and scanStatus != ''">scan_status,</if>
|
||||
<if test="groupStatus != null and groupStatus != ''">group_status,</if>
|
||||
<if test="scanMan != null and scanMan != ''">scan_man,</if>
|
||||
<if test="scanSite != null and scanSite != ''">scan_site,</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>
|
||||
<if test="remark != null and remark != ''">remark,</if>
|
||||
</trim>
|
||||
<if test="createSite != null and createSite != ''">create_site,</if>
|
||||
<if test="updateSite != null and updateSite != ''">update_site,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="batchId != null">#{batchId},</if>
|
||||
<if test="waybillId != null">#{waybillId},</if>
|
||||
<if test="billCode != null">#{billCode},</if>
|
||||
<if test="billCode != null and billCode != ''">#{billCode},</if>
|
||||
<if test="batchNo != null and batchNo != ''">#{batchNo},</if>
|
||||
<if test="scanDate != null">#{scanDate},</if>
|
||||
<if test="scanStatus != null and scanStatus != ''">#{scanStatus},</if>
|
||||
<if test="groupStatus != null and groupStatus != ''">#{groupStatus},</if>
|
||||
<if test="scanMan != null and scanMan != ''">#{scanMan},</if>
|
||||
<if test="scanSite != null and scanSite != ''">#{scanSite},</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>
|
||||
<if test="remark != null and remark != ''">#{remark},</if>
|
||||
</trim>
|
||||
<if test="createSite != null and createSite != ''">#{createSite},</if>
|
||||
<if test="updateSite != null and updateSite != ''">#{updateSite},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateEmisTmsSiteBatchDtl" parameterType="EmisTmsSiteBatchDtl">
|
||||
update emis_tms_site_batch_dtl
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="batchId != null">batch_id = #{batchId},</if>
|
||||
<if test="waybillId != null">waybill_id = #{waybillId},</if>
|
||||
<if test="billCode != null">bill_code = #{billCode},</if>
|
||||
<if test="billCode != null and billCode != ''">bill_code = #{billCode},</if>
|
||||
<if test="batchNo != null and batchNo != ''">batch_no = #{batchNo},</if>
|
||||
<if test="scanDate != null">scan_date = #{scanDate},</if>
|
||||
<if test="scanStatus != null and scanStatus != ''">scan_status = #{scanStatus},</if>
|
||||
<if test="groupStatus != null and groupStatus != ''">group_status = #{groupStatus},</if>
|
||||
<if test="scanMan != null and scanMan != ''">scan_man = #{scanMan},</if>
|
||||
<if test="scanSite != null and scanSite != ''">scan_site = #{scanSite},</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>
|
||||
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
||||
<if test="createSite != null and createSite != ''">create_site = #{createSite},</if>
|
||||
<if test="updateSite != null and updateSite != ''">update_site = #{updateSite},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
@ -93,7 +143,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEmisTmsSiteBatchDtlByIds" parameterType="String">
|
||||
delete from emis_tms_site_batch_dtl where id in
|
||||
delete from emis_tms_site_batch_dtl where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
|
||||
@ -1,84 +1,133 @@
|
||||
<?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.EmisTmsSiteBatchLoadingMapper">
|
||||
|
||||
|
||||
<resultMap type="EmisTmsSiteBatchLoading" id="EmisTmsSiteBatchLoadingResult" extends="com.xdadan.erp.emis.mapper.EmisBaseMapper.EmisBaseResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="batchId" column="batch_id" />
|
||||
<result property="batchNo" column="batch_no" />
|
||||
<result property="posNo" column="pos_no" />
|
||||
<result property="row" column="row" />
|
||||
<result property="col" column="col" />
|
||||
<result property="layer" column="layer" />
|
||||
<result property="posDesc" column="pos_desc" />
|
||||
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmisTmsSiteBatchLoadingVo">
|
||||
select id, batch_id, pos_no, pos_desc, del_flag, create_by, create_time, update_by, update_time, remark from emis_tms_site_batch_loading
|
||||
select id, batch_no, pos_no, row, col, layer, pos_desc, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_tms_site_batch_loading
|
||||
</sql>
|
||||
|
||||
<select id="selectEmisTmsSiteBatchLoadingList" parameterType="EmisTmsSiteBatchLoading" resultMap="EmisTmsSiteBatchLoadingResult">
|
||||
<include refid="selectEmisTmsSiteBatchLoadingVo"/>
|
||||
<where>
|
||||
<where>
|
||||
del_flag='0'
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="batchId != null "> and batch_id = #{batchId}</if>
|
||||
<if test="batchNo != null and batchNo != ''"> and batch_no like concat('%', #{batchNo}, '%')</if>
|
||||
<if test="posNo != null and posNo != ''"> and pos_no like concat('%', #{posNo}, '%')</if>
|
||||
<if test="row != null and row != ''"> and row like concat('%', #{row}, '%')</if>
|
||||
<if test="col != null and col != ''"> and col like concat('%', #{col}, '%')</if>
|
||||
<if test="layer != null and layer != ''"> and layer like concat('%', #{layer}, '%')</if>
|
||||
<if test="posDesc != null and posDesc != ''"> and pos_desc like concat('%', #{posDesc}, '%')</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>
|
||||
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
|
||||
<if test="createSite != null and createSite != ''"> and create_site like concat('%', #{createSite}, '%')</if>
|
||||
<if test="updateSite != null and updateSite != ''"> and update_site like concat('%', #{updateSite}, '%')</if>
|
||||
</where>
|
||||
order by create_time desc
|
||||
</select>
|
||||
|
||||
|
||||
<select id="checkUnique" parameterType="EmisTmsSiteBatchLoading" resultType="int">
|
||||
select count(1) from emis_tms_site_batch_loading
|
||||
where del_flag='0'
|
||||
and id = #{id}
|
||||
and batch_no = #{batchNo}
|
||||
and pos_no = #{posNo}
|
||||
and row = #{row}
|
||||
and col = #{col}
|
||||
and layer = #{layer}
|
||||
and pos_desc = #{posDesc}
|
||||
and remark = #{remark}
|
||||
and tenant_id = #{tenantId}
|
||||
and del_flag = #{delFlag}
|
||||
and create_by = #{createBy}
|
||||
and create_time = #{createTime}
|
||||
and update_by = #{updateBy}
|
||||
and update_time = #{updateTime}
|
||||
and create_site = #{createSite}
|
||||
and update_site = #{updateSite}
|
||||
limit 1
|
||||
</select>
|
||||
|
||||
<select id="selectEmisTmsSiteBatchLoadingById" parameterType="Long" resultMap="EmisTmsSiteBatchLoadingResult">
|
||||
select id, batch_id, pos_no, pos_desc, del_flag, create_by, create_time, update_by, update_time, remark
|
||||
select id, batch_no, pos_no, row, col, layer, pos_desc, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
||||
from emis_tms_site_batch_loading a
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertEmisTmsSiteBatchLoading" parameterType="EmisTmsSiteBatchLoading">
|
||||
|
||||
<insert id="insertEmisTmsSiteBatchLoading" parameterType="EmisTmsSiteBatchLoading" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into emis_tms_site_batch_loading
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="batchId != null">batch_id,</if>
|
||||
<if test="batchNo != null and batchNo != ''">batch_no,</if>
|
||||
<if test="posNo != null and posNo != ''">pos_no,</if>
|
||||
<if test="row != null and row != ''">row,</if>
|
||||
<if test="col != null and col != ''">col,</if>
|
||||
<if test="layer != null and layer != ''">layer,</if>
|
||||
<if test="posDesc != null and posDesc != ''">pos_desc,</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>
|
||||
<if test="remark != null and remark != ''">remark,</if>
|
||||
</trim>
|
||||
<if test="createSite != null and createSite != ''">create_site,</if>
|
||||
<if test="updateSite != null and updateSite != ''">update_site,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="batchId != null">#{batchId},</if>
|
||||
<if test="batchNo != null and batchNo != ''">#{batchNo},</if>
|
||||
<if test="posNo != null and posNo != ''">#{posNo},</if>
|
||||
<if test="row != null and row != ''">#{row},</if>
|
||||
<if test="col != null and col != ''">#{col},</if>
|
||||
<if test="layer != null and layer != ''">#{layer},</if>
|
||||
<if test="posDesc != null and posDesc != ''">#{posDesc},</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>
|
||||
<if test="remark != null and remark != ''">#{remark},</if>
|
||||
</trim>
|
||||
<if test="createSite != null and createSite != ''">#{createSite},</if>
|
||||
<if test="updateSite != null and updateSite != ''">#{updateSite},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateEmisTmsSiteBatchLoading" parameterType="EmisTmsSiteBatchLoading">
|
||||
update emis_tms_site_batch_loading
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="batchId != null">batch_id = #{batchId},</if>
|
||||
<if test="batchNo != null and batchNo != ''">batch_no = #{batchNo},</if>
|
||||
<if test="posNo != null and posNo != ''">pos_no = #{posNo},</if>
|
||||
<if test="row != null and row != ''">row = #{row},</if>
|
||||
<if test="col != null and col != ''">col = #{col},</if>
|
||||
<if test="layer != null and layer != ''">layer = #{layer},</if>
|
||||
<if test="posDesc != null and posDesc != ''">pos_desc = #{posDesc},</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>
|
||||
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
||||
<if test="createSite != null and createSite != ''">create_site = #{createSite},</if>
|
||||
<if test="updateSite != null and updateSite != ''">update_site = #{updateSite},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
@ -88,7 +137,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEmisTmsSiteBatchLoadingByIds" parameterType="String">
|
||||
delete from emis_tms_site_batch_loading where id in
|
||||
delete from emis_tms_site_batch_loading where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
|
||||
@ -1,14 +1,15 @@
|
||||
<?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.EmisTmsSiteBatchMapper">
|
||||
|
||||
|
||||
<resultMap type="EmisTmsSiteBatch" id="EmisTmsSiteBatchResult" extends="com.xdadan.erp.emis.mapper.EmisBaseMapper.EmisBaseResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="batchCode" column="batch_code" />
|
||||
<result property="batchNo" column="batch_no" />
|
||||
<result property="batchName" column="batch_name" />
|
||||
<result property="batchDate" column="batch_date" />
|
||||
<result property="batchType" column="batch_type" />
|
||||
<result property="transType" column="trans_type" />
|
||||
<result property="startSiteCode" column="start_site_code" />
|
||||
<result property="nextSiteCode" column="next_site_code" />
|
||||
@ -20,128 +21,209 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="shipNo" column="ship_no" />
|
||||
<result property="clearanceResStatus" column="clearance_res_status" />
|
||||
<result property="declareResStatus" column="declare_res_status" />
|
||||
|
||||
<result property="destCountry" column="dest_country" />
|
||||
<result property="destCountryName" column="dest_country_name" />
|
||||
<result property="totalParcelQty" column="total_parcel_qty" />
|
||||
<result property="totalWaybillQty" column="total_waybill_qty" />
|
||||
<result property="totalVolume" column="total_volume" />
|
||||
<result property="totalWeight" column="total_weight" />
|
||||
<result property="opMan" column="op_man" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmisTmsSiteBatchVo">
|
||||
select id, batch_code, batch_name, batch_date, trans_type, start_site_code, next_site_code, air_billl_no, etd, eta, pack_num, car_no, ship_no, clearance_res_status, declare_res_status, create_site_code, modify_site_code, del_flag, create_by, create_time, update_by, update_time, remark from emis_tms_site_batch
|
||||
select id, batch_no, batch_name, batch_date, batch_type, trans_type, start_site_code, next_site_code, air_billl_no, etd, eta, pack_num, car_no, ship_no, clearance_res_status, declare_res_status, dest_country, dest_country_name, total_parcel_qty, total_waybill_qty, total_volume, total_weight, op_man, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_tms_site_batch
|
||||
</sql>
|
||||
|
||||
<select id="selectEmisTmsSiteBatchList" parameterType="EmisTmsSiteBatch" resultMap="EmisTmsSiteBatchResult">
|
||||
<include refid="selectEmisTmsSiteBatchVo"/>
|
||||
<where>
|
||||
<where>
|
||||
del_flag='0'
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="batchCode != null and batchCode != ''"> and batch_code like concat('%', #{batchCode}, '%')</if>
|
||||
<if test="batchNo != null and batchNo != ''"> and batch_no like concat('%', #{batchNo}, '%')</if>
|
||||
<if test="batchName != null and batchName != ''"> and batch_name like concat('%', #{batchName}, '%')</if>
|
||||
<if test="batchDate != null and batchDate != ''"> and batch_date like concat('%', #{batchDate}, '%')</if>
|
||||
<if test="batchDate != null "> and batch_date = #{batchDate}</if>
|
||||
<if test="batchType != null and batchType != ''"> and batch_type like concat('%', #{batchType}, '%')</if>
|
||||
<if test="transType != null and transType != ''"> and trans_type like concat('%', #{transType}, '%')</if>
|
||||
<if test="startSiteCode != null and startSiteCode != ''"> and start_site_code like concat('%', #{startSiteCode}, '%')</if>
|
||||
<if test="nextSiteCode != null and nextSiteCode != ''"> and next_site_code like concat('%', #{nextSiteCode}, '%')</if>
|
||||
<if test="airBilllNo != null and airBilllNo != ''"> and air_billl_no like concat('%', #{airBilllNo}, '%')</if>
|
||||
<if test="etd != null and etd != ''"> and etd like concat('%', #{etd}, '%')</if>
|
||||
<if test="eta != null and eta != ''"> and eta like concat('%', #{eta}, '%')</if>
|
||||
<if test="packNum != null and packNum != ''"> and pack_num like concat('%', #{packNum}, '%')</if>
|
||||
<if test="etd != null "> and etd = #{etd}</if>
|
||||
<if test="eta != null "> and eta = #{eta}</if>
|
||||
<if test="packNum != null "> and pack_num = #{packNum}</if>
|
||||
<if test="carNo != null and carNo != ''"> and car_no like concat('%', #{carNo}, '%')</if>
|
||||
<if test="shipNo != null and shipNo != ''"> and ship_no like concat('%', #{shipNo}, '%')</if>
|
||||
<if test="clearanceResStatus != null and clearanceResStatus != ''"> and clearance_res_status like concat('%', #{clearanceResStatus}, '%')</if>
|
||||
<if test="declareResStatus != null and declareResStatus != ''"> and declare_res_status like concat('%', #{declareResStatus}, '%')</if>
|
||||
<if test="createSiteCode != null and createSiteCode != ''"> and create_site_code like concat('%', #{createSiteCode}, '%')</if>
|
||||
<if test="modifySiteCode != null and modifySiteCode != ''"> and modify_site_code like concat('%', #{modifySiteCode}, '%')</if>
|
||||
<if test="destCountry != null and destCountry != ''"> and dest_country like concat('%', #{destCountry}, '%')</if>
|
||||
<if test="destCountryName != null and destCountryName != ''"> and dest_country_name like concat('%', #{destCountryName}, '%')</if>
|
||||
<if test="totalParcelQty != null "> and total_parcel_qty = #{totalParcelQty}</if>
|
||||
<if test="totalWaybillQty != null "> and total_waybill_qty = #{totalWaybillQty}</if>
|
||||
<if test="totalVolume != null "> and total_volume = #{totalVolume}</if>
|
||||
<if test="totalWeight != null "> and total_weight = #{totalWeight}</if>
|
||||
<if test="opMan != null and opMan != ''"> and op_man like concat('%', #{opMan}, '%')</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>
|
||||
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
|
||||
<if test="createSite != null and createSite != ''"> and create_site like concat('%', #{createSite}, '%')</if>
|
||||
<if test="updateSite != null and updateSite != ''"> and update_site like concat('%', #{updateSite}, '%')</if>
|
||||
</where>
|
||||
order by create_time desc
|
||||
</select>
|
||||
|
||||
|
||||
<select id="checkUnique" parameterType="EmisTmsSiteBatch" resultType="int">
|
||||
select count(1) from emis_tms_site_batch
|
||||
where del_flag='0'
|
||||
and id = #{id}
|
||||
and batch_no = #{batchNo}
|
||||
and batch_name = #{batchName}
|
||||
and batch_date = #{batchDate}
|
||||
and batch_type = #{batchType}
|
||||
and trans_type = #{transType}
|
||||
and start_site_code = #{startSiteCode}
|
||||
and next_site_code = #{nextSiteCode}
|
||||
and air_billl_no = #{airBilllNo}
|
||||
and etd = #{etd}
|
||||
and eta = #{eta}
|
||||
and pack_num = #{packNum}
|
||||
and car_no = #{carNo}
|
||||
and ship_no = #{shipNo}
|
||||
and clearance_res_status = #{clearanceResStatus}
|
||||
and declare_res_status = #{declareResStatus}
|
||||
and dest_country = #{destCountry}
|
||||
and dest_country_name = #{destCountryName}
|
||||
and total_parcel_qty = #{totalParcelQty}
|
||||
and total_waybill_qty = #{totalWaybillQty}
|
||||
and total_volume = #{totalVolume}
|
||||
and total_weight = #{totalWeight}
|
||||
and op_man = #{opMan}
|
||||
and remark = #{remark}
|
||||
and tenant_id = #{tenantId}
|
||||
and del_flag = #{delFlag}
|
||||
and create_by = #{createBy}
|
||||
and create_time = #{createTime}
|
||||
and update_by = #{updateBy}
|
||||
and update_time = #{updateTime}
|
||||
and create_site = #{createSite}
|
||||
and update_site = #{updateSite}
|
||||
limit 1
|
||||
</select>
|
||||
|
||||
<select id="selectEmisTmsSiteBatchById" parameterType="Long" resultMap="EmisTmsSiteBatchResult">
|
||||
select id, batch_code, batch_name, batch_date, trans_type, start_site_code, next_site_code, air_billl_no, etd, eta, pack_num, car_no, ship_no, clearance_res_status, declare_res_status, create_site_code, modify_site_code, del_flag, create_by, create_time, update_by, update_time, remark
|
||||
select id, batch_no, batch_name, batch_date, batch_type, trans_type, start_site_code, next_site_code, air_billl_no, etd, eta, pack_num, car_no, ship_no, clearance_res_status, declare_res_status, dest_country, dest_country_name, total_parcel_qty, total_waybill_qty, total_volume, total_weight, op_man, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
||||
from emis_tms_site_batch a
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertEmisTmsSiteBatch" parameterType="EmisTmsSiteBatch">
|
||||
|
||||
<insert id="insertEmisTmsSiteBatch" parameterType="EmisTmsSiteBatch" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into emis_tms_site_batch
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="batchCode != null and batchCode != ''">batch_code,</if>
|
||||
<if test="batchNo != null and batchNo != ''">batch_no,</if>
|
||||
<if test="batchName != null and batchName != ''">batch_name,</if>
|
||||
<if test="batchDate != null and batchDate != ''">batch_date,</if>
|
||||
<if test="batchDate != null">batch_date,</if>
|
||||
<if test="batchType != null and batchType != ''">batch_type,</if>
|
||||
<if test="transType != null and transType != ''">trans_type,</if>
|
||||
<if test="startSiteCode != null and startSiteCode != ''">start_site_code,</if>
|
||||
<if test="nextSiteCode != null and nextSiteCode != ''">next_site_code,</if>
|
||||
<if test="airBilllNo != null and airBilllNo != ''">air_billl_no,</if>
|
||||
<if test="etd != null and etd != ''">etd,</if>
|
||||
<if test="eta != null and eta != ''">eta,</if>
|
||||
<if test="packNum != null and packNum != ''">pack_num,</if>
|
||||
<if test="etd != null">etd,</if>
|
||||
<if test="eta != null">eta,</if>
|
||||
<if test="packNum != null">pack_num,</if>
|
||||
<if test="carNo != null and carNo != ''">car_no,</if>
|
||||
<if test="shipNo != null and shipNo != ''">ship_no,</if>
|
||||
<if test="clearanceResStatus != null and clearanceResStatus != ''">clearance_res_status,</if>
|
||||
<if test="declareResStatus != null and declareResStatus != ''">declare_res_status,</if>
|
||||
<if test="createSiteCode != null and createSiteCode != ''">create_site_code,</if>
|
||||
<if test="modifySiteCode != null and modifySiteCode != ''">modify_site_code,</if>
|
||||
<if test="destCountry != null and destCountry != ''">dest_country,</if>
|
||||
<if test="destCountryName != null and destCountryName != ''">dest_country_name,</if>
|
||||
<if test="totalParcelQty != null">total_parcel_qty,</if>
|
||||
<if test="totalWaybillQty != null">total_waybill_qty,</if>
|
||||
<if test="totalVolume != null">total_volume,</if>
|
||||
<if test="totalWeight != null">total_weight,</if>
|
||||
<if test="opMan != null and opMan != ''">op_man,</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>
|
||||
<if test="remark != null and remark != ''">remark,</if>
|
||||
</trim>
|
||||
<if test="createSite != null and createSite != ''">create_site,</if>
|
||||
<if test="updateSite != null and updateSite != ''">update_site,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="batchCode != null and batchCode != ''">#{batchCode},</if>
|
||||
<if test="batchNo != null and batchNo != ''">#{batchNo},</if>
|
||||
<if test="batchName != null and batchName != ''">#{batchName},</if>
|
||||
<if test="batchDate != null and batchDate != ''">#{batchDate},</if>
|
||||
<if test="batchDate != null">#{batchDate},</if>
|
||||
<if test="batchType != null and batchType != ''">#{batchType},</if>
|
||||
<if test="transType != null and transType != ''">#{transType},</if>
|
||||
<if test="startSiteCode != null and startSiteCode != ''">#{startSiteCode},</if>
|
||||
<if test="nextSiteCode != null and nextSiteCode != ''">#{nextSiteCode},</if>
|
||||
<if test="airBilllNo != null and airBilllNo != ''">#{airBilllNo},</if>
|
||||
<if test="etd != null and etd != ''">#{etd},</if>
|
||||
<if test="eta != null and eta != ''">#{eta},</if>
|
||||
<if test="packNum != null and packNum != ''">#{packNum},</if>
|
||||
<if test="etd != null">#{etd},</if>
|
||||
<if test="eta != null">#{eta},</if>
|
||||
<if test="packNum != null">#{packNum},</if>
|
||||
<if test="carNo != null and carNo != ''">#{carNo},</if>
|
||||
<if test="shipNo != null and shipNo != ''">#{shipNo},</if>
|
||||
<if test="clearanceResStatus != null and clearanceResStatus != ''">#{clearanceResStatus},</if>
|
||||
<if test="declareResStatus != null and declareResStatus != ''">#{declareResStatus},</if>
|
||||
<if test="createSiteCode != null and createSiteCode != ''">#{createSiteCode},</if>
|
||||
<if test="modifySiteCode != null and modifySiteCode != ''">#{modifySiteCode},</if>
|
||||
<if test="destCountry != null and destCountry != ''">#{destCountry},</if>
|
||||
<if test="destCountryName != null and destCountryName != ''">#{destCountryName},</if>
|
||||
<if test="totalParcelQty != null">#{totalParcelQty},</if>
|
||||
<if test="totalWaybillQty != null">#{totalWaybillQty},</if>
|
||||
<if test="totalVolume != null">#{totalVolume},</if>
|
||||
<if test="totalWeight != null">#{totalWeight},</if>
|
||||
<if test="opMan != null and opMan != ''">#{opMan},</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>
|
||||
<if test="remark != null and remark != ''">#{remark},</if>
|
||||
</trim>
|
||||
<if test="createSite != null and createSite != ''">#{createSite},</if>
|
||||
<if test="updateSite != null and updateSite != ''">#{updateSite},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateEmisTmsSiteBatch" parameterType="EmisTmsSiteBatch">
|
||||
update emis_tms_site_batch
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="batchCode != null and batchCode != ''">batch_code = #{batchCode},</if>
|
||||
<if test="batchNo != null and batchNo != ''">batch_no = #{batchNo},</if>
|
||||
<if test="batchName != null and batchName != ''">batch_name = #{batchName},</if>
|
||||
<if test="batchDate != null and batchDate != ''">batch_date = #{batchDate},</if>
|
||||
<if test="batchDate != null">batch_date = #{batchDate},</if>
|
||||
<if test="batchType != null and batchType != ''">batch_type = #{batchType},</if>
|
||||
<if test="transType != null and transType != ''">trans_type = #{transType},</if>
|
||||
<if test="startSiteCode != null and startSiteCode != ''">start_site_code = #{startSiteCode},</if>
|
||||
<if test="nextSiteCode != null and nextSiteCode != ''">next_site_code = #{nextSiteCode},</if>
|
||||
<if test="airBilllNo != null and airBilllNo != ''">air_billl_no = #{airBilllNo},</if>
|
||||
<if test="etd != null and etd != ''">etd = #{etd},</if>
|
||||
<if test="eta != null and eta != ''">eta = #{eta},</if>
|
||||
<if test="packNum != null and packNum != ''">pack_num = #{packNum},</if>
|
||||
<if test="etd != null">etd = #{etd},</if>
|
||||
<if test="eta != null">eta = #{eta},</if>
|
||||
<if test="packNum != null">pack_num = #{packNum},</if>
|
||||
<if test="carNo != null and carNo != ''">car_no = #{carNo},</if>
|
||||
<if test="shipNo != null and shipNo != ''">ship_no = #{shipNo},</if>
|
||||
<if test="clearanceResStatus != null and clearanceResStatus != ''">clearance_res_status = #{clearanceResStatus},</if>
|
||||
<if test="declareResStatus != null and declareResStatus != ''">declare_res_status = #{declareResStatus},</if>
|
||||
<if test="createSiteCode != null and createSiteCode != ''">create_site_code = #{createSiteCode},</if>
|
||||
<if test="modifySiteCode != null and modifySiteCode != ''">modify_site_code = #{modifySiteCode},</if>
|
||||
<if test="destCountry != null and destCountry != ''">dest_country = #{destCountry},</if>
|
||||
<if test="destCountryName != null and destCountryName != ''">dest_country_name = #{destCountryName},</if>
|
||||
<if test="totalParcelQty != null">total_parcel_qty = #{totalParcelQty},</if>
|
||||
<if test="totalWaybillQty != null">total_waybill_qty = #{totalWaybillQty},</if>
|
||||
<if test="totalVolume != null">total_volume = #{totalVolume},</if>
|
||||
<if test="totalWeight != null">total_weight = #{totalWeight},</if>
|
||||
<if test="opMan != null and opMan != ''">op_man = #{opMan},</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>
|
||||
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
||||
<if test="createSite != null and createSite != ''">create_site = #{createSite},</if>
|
||||
<if test="updateSite != null and updateSite != ''">update_site = #{updateSite},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
@ -151,7 +233,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEmisTmsSiteBatchByIds" parameterType="String">
|
||||
delete from emis_tms_site_batch where id in
|
||||
delete from emis_tms_site_batch where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user