This commit is contained in:
linfso 2024-05-24 15:37:09 +08:00
parent a7eab6ea5b
commit ca09051d1e
2 changed files with 12 additions and 4 deletions

View File

@ -2,7 +2,7 @@
* @Project: emis
* @Title: EmisWaybillAttachment.java
* @author linfso
* @date 2024-05-23 15:35:53
* @date 2024-05-24 07:36:24
* @Copyright: ShangHai Duta 2022 All rights reserved.
* @version v1.0
* @Description: <p> 运单附件 实体类 </p>
@ -26,7 +26,7 @@ import lombok.Data;
* @ClassName EmisWaybillAttachment
* @Description 运单附件
* @author linfso
* @date 2024-05-23 15:35:53
* @date 2024-05-24 07:36:24
*/
@Data
public class EmisWaybillAttachment extends BaseEntity
@ -51,5 +51,7 @@ public class EmisWaybillAttachment extends BaseEntity
private String fileDesc;
/* 排序 */
private Integer orderNum;
/* 数据来源 */
private String dataFrom;
}

View File

@ -14,6 +14,7 @@
<result property="fileSiez" column="file_siez" />
<result property="fileDesc" column="file_desc" />
<result property="orderNum" column="order_num" />
<result property="dataFrom" column="data_from" />
<result property="remark" column="remark" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
@ -25,7 +26,7 @@
</resultMap>
<sql id="selectEmisWaybillAttachmentVo">
select id, waybill_id, bill_code, attach_type, file_name, file_url, file_siez, file_desc, order_num, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_waybill_attachment
select id, waybill_id, bill_code, attach_type, file_name, file_url, file_siez, file_desc, order_num, data_from, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_waybill_attachment
</sql>
<select id="selectEmisWaybillAttachmentList" parameterType="EmisWaybillAttachment" resultMap="EmisWaybillAttachmentResult">
@ -41,6 +42,7 @@
<if test="fileSiez != null "> and file_siez = #{fileSiez}</if>
<if test="fileDesc != null and fileDesc != ''"> and file_desc like concat('%', #{fileDesc}, '%')</if>
<if test="orderNum != null "> and order_num like concat('%', #{orderNum}, '%')</if>
<if test="dataFrom != null and dataFrom != ''"> and data_from like concat('%', #{dataFrom}, '%')</if>
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</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>
@ -65,6 +67,7 @@
and file_siez = #{fileSiez}
and file_desc = #{fileDesc}
and order_num = #{orderNum}
and data_from = #{dataFrom}
and remark = #{remark}
and del_flag = #{delFlag}
and create_by = #{createBy}
@ -77,7 +80,7 @@
</select>
<select id="selectEmisWaybillAttachmentById" parameterType="Long" resultMap="EmisWaybillAttachmentResult">
select id, waybill_id, bill_code, attach_type, file_name, file_url, file_siez, file_desc, order_num, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
select id, waybill_id, bill_code, attach_type, file_name, file_url, file_siez, file_desc, order_num, data_from, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
from emis_waybill_attachment a
where a.id = #{id}
</select>
@ -94,6 +97,7 @@
<if test="fileSiez != null">file_siez,</if>
<if test="fileDesc != null and fileDesc != ''">file_desc,</if>
<if test="orderNum != null">order_num,</if>
<if test="dataFrom != null and dataFrom != ''">data_from,</if>
<if test="remark != null and remark != ''">remark,</if>
<if test="delFlag != null and delFlag != ''">del_flag,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
@ -113,6 +117,7 @@
<if test="fileSiez != null">#{fileSiez},</if>
<if test="fileDesc != null and fileDesc != ''">#{fileDesc},</if>
<if test="orderNum != null">#{orderNum},</if>
<if test="dataFrom != null and dataFrom != ''">#{dataFrom},</if>
<if test="remark != null and remark != ''">#{remark},</if>
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
@ -135,6 +140,7 @@
<if test="fileSiez != null">file_siez = #{fileSiez},</if>
<if test="fileDesc != null and fileDesc != ''">file_desc = #{fileDesc},</if>
<if test="orderNum != null">order_num = #{orderNum},</if>
<if test="dataFrom != null and dataFrom != ''">data_from = #{dataFrom},</if>
<if test="remark != null and remark != ''">remark = #{remark},</if>
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>