From a73b47ca82ea7e077ab2f2caadfdc05c134806db Mon Sep 17 00:00:00 2001
From: zhitan-cloud <394600+ustcyc@user.noreply.gitee.com>
Date: 星期四, 23 一月 2025 14:18:58 +0800
Subject: [PATCH] !40 节能管理项目修改返回政策类型 Merge pull request !40 from 张嘉伟/zhangjw

---
 zhitan-system/src/main/resources/mapper/saving/PoliciesRegulationsManagementMapper.xml |   25 ++++++++++++++-----------
 1 files changed, 14 insertions(+), 11 deletions(-)

diff --git a/zhitan-system/src/main/resources/mapper/saving/PoliciesRegulationsManagementMapper.xml b/zhitan-system/src/main/resources/mapper/saving/PoliciesRegulationsManagementMapper.xml
index 90a9c2f..55755f7 100644
--- a/zhitan-system/src/main/resources/mapper/saving/PoliciesRegulationsManagementMapper.xml
+++ b/zhitan-system/src/main/resources/mapper/saving/PoliciesRegulationsManagementMapper.xml
@@ -4,23 +4,26 @@
         "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.zhitan.saving.mapper.PoliciesRegulationsManagementMapper">
     <select id="getPageList" resultType="com.zhitan.saving.domain.vo.PoliciesRegulationsManagementPageVO">
-        select id,
-        title,
-        type,
-        dept,
-        issuing_time,
-        address
-        from policies_regulations_management
+        select
+        prm.id,
+        prm.title,
+        prm.type,
+        prm.dept,
+        prm.issuing_time,
+        prm.url,
+        sdd.dict_label as typeName
+        from policies_regulations_management AS prm
+        left join sys_dict_data AS sdd on prm.type = sdd.dict_value
         <where>
-            del_flag = 0
+            prm.del_flag = 0
             <if test="dto.type != null">
-                and type = #{dto.type}
+                and prm.type = #{dto.type}
             </if>
             <if test="dto.title != null and dto.title != ''">
-                and title like concat('%',#{dto.title},'%')
+                and prm.title like concat('%',#{dto.title},'%')
             </if>
         </where>
-        order by issuing_time desc
+        order by prm.issuing_time desc
     </select>
 
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3