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/AssetAdMaterialPriceMapper.xml |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/ruoyi-system/src/main/resources/mapper/system/AssetAdMaterialPriceMapper.xml b/ruoyi-system/src/main/resources/mapper/system/AssetAdMaterialPriceMapper.xml
index b517ed8..77fd44e 100644
--- a/ruoyi-system/src/main/resources/mapper/system/AssetAdMaterialPriceMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/AssetAdMaterialPriceMapper.xml
@@ -21,4 +21,30 @@
         id, material_name, unit_price, price_unit, remarks, create_time, create_by, update_time, update_by, disabled
     </sql>
 
+    <!-- 分页查询 -->
+    <select id="getPageList" resultType="com.ruoyi.system.vo.asset.AssetAdMaterialPriceVO">
+        SELECT
+            id,
+            material_name,
+            dept_id,
+            unit_price,
+            price_unit,
+            remarks,
+            create_time,
+            create_by,
+            update_time,
+            update_by
+        FROM asset_ad_material_price aamp LEFT JOIN t_dept td ON aamp.dept_id = td.id
+        <where>
+            disabled = 0
+            <if test="query.materialName != null and query.materialName != ''">
+                AND material_name LIKE CONCAT('%', #{query.materialName}, '%')
+            </if>
+            <if test="query.deptId != null">
+                AND (td.id = #{query.deptId} OR FIND_IN_SET(#{query.deptId}, od.parent_id))
+            </if>
+        </where>
+        ORDER BY create_time DESC
+    </select>
+
 </mapper>

--
Gitblit v1.7.1