From 3a73d5c21bb96dde33c97a6d4d50f4632678b329 Mon Sep 17 00:00:00 2001
From: zhouxiantao <1026371446@qq.com>
Date: Wed, 09 Oct 2024 20:32:35 +0800
Subject: [PATCH] web查询个人来访记录
---
dyh-service/dyh-sys/src/main/java/cn/huge/module/file/dao/mapper/xml/FileRelateMapper.xml | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/dyh-service/dyh-sys/src/main/java/cn/huge/module/file/dao/mapper/xml/FileRelateMapper.xml b/dyh-service/dyh-sys/src/main/java/cn/huge/module/file/dao/mapper/xml/FileRelateMapper.xml
index bb7588a..67c56be 100644
--- a/dyh-service/dyh-sys/src/main/java/cn/huge/module/file/dao/mapper/xml/FileRelateMapper.xml
+++ b/dyh-service/dyh-sys/src/main/java/cn/huge/module/file/dao/mapper/xml/FileRelateMapper.xml
@@ -13,6 +13,7 @@
<resultMap id="dataResult" type="cn.huge.module.file.domain.po.FileRelate">
<result property="id" column="id"/>
<result property="fileId" column="file_id"/>
+ <result property="mainId" column="main_id"/>
<result property="ownerId" column="owner_id"/>
<result property="ownerCat" column="owner_cat"/>
<result property="ownerType" column="owner_type"/>
@@ -29,6 +30,7 @@
<sql id="column-part">
id,
file_id,
+ main_id,
owner_id,
owner_cat,
owner_type,
@@ -42,6 +44,7 @@
<!-- 更新实体字段 -->
<sql id="set-part">
<if test="entity.fileId != null">file_id = #{entity.fileId},</if>
+ <if test="entity.mainId != null">main_id = #{entity.mainId},</if>
<if test="entity.ownerId != null">owner_id = #{entity.ownerId},</if>
<if test="entity.ownerCat != null">owner_cat = #{entity.ownerCat},</if>
<if test="entity.ownerType != null">owner_type = #{entity.ownerType},</if>
@@ -62,6 +65,9 @@
<if test="terms.fileId != null and terms.fileId !=''">
and file_id = #{terms.fileId}
</if>
+ <if test="terms.mainId != null and terms.mainId !=''">
+ and main_id = #{terms.mainId}
+ </if>
<if test="terms.ownerId != null and terms.ownerId !=''">
and owner_id = #{terms.ownerId}
</if>
--
Gitblit v1.8.0