From cff854df2740e862a9255df58c7629e5c559d973 Mon Sep 17 00:00:00 2001
From: mitao <2763622819@qq.com>
Date: 星期二, 21 十月 2025 19:54:04 +0800
Subject: [PATCH] 广告物料单价接口
---
ruoyi-system/src/main/resources/mapper/system/AssetAdMapper.xml | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/ruoyi-system/src/main/resources/mapper/system/AssetAdMapper.xml b/ruoyi-system/src/main/resources/mapper/system/AssetAdMapper.xml
index 83ebde0..42946b4 100644
--- a/ruoyi-system/src/main/resources/mapper/system/AssetAdMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/AssetAdMapper.xml
@@ -24,5 +24,31 @@
<sql id="Base_Column_List">
id, asset_name, asset_code, asset_type_id, location, rental_type, asset_status, remarks, attachment_urls, create_time, create_by, update_time, update_by, disabled
</sql>
+ <select id="getPageList" resultType="com.ruoyi.system.vo.asset.AssetAdVO">
+ SELECT aa.id,
+ asset_name,
+ asset_code,
+ dept_id,
+ asset_type_id,
+ location,
+ rental_type,
+ asset_status,
+ remarks,
+ attachment_urls,
+ create_time,
+ create_by
+ FROM asset_ad aa LEFT JOIN t_dept td ON aa.dept_id = td.id
+ <where>
+ aa.disabled = 0
+ <if test="query.keyword != null and query.keyword != ''">
+ AND (aa.asset_name LIKE CONCAT('%', #{query.keyword}, '%')
+ OR aa.asset_code LIKE CONCAT('%', #{query.keyword}, '%'))
+ </if>
+ <if test="query.deptId != null">
+ AND (td.id = #{query.deptId} OR FIND_IN_SET(#{query.deptId}, od.parent_id))
+ </if>
+ </where>
+ ORDER BY aa.create_time DESC
+ </select>
</mapper>
--
Gitblit v1.7.1