From 09a73af712366265c9b7d200e1dac2fa83c82b9a Mon Sep 17 00:00:00 2001
From: tangzy <tangzy123456>
Date: Wed, 15 Sep 2021 09:12:53 +0800
Subject: [PATCH] 1.接口调整

---
 src/main/java/org/springblade/modules/information/mapper/InformationMapper.xml |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/springblade/modules/information/mapper/InformationMapper.xml b/src/main/java/org/springblade/modules/information/mapper/InformationMapper.xml
index 128cee9..57e3da1 100644
--- a/src/main/java/org/springblade/modules/information/mapper/InformationMapper.xml
+++ b/src/main/java/org/springblade/modules/information/mapper/InformationMapper.xml
@@ -1168,7 +1168,7 @@
             and A.jurisdiction =#{jurisdiction}
         </if>
         <if test="deptid!=null and deptid!=''">
-            and d.dept_name like concat(concat('%', #{deptid}),'%')
+            and d.enterpriseName like concat(concat('%', #{deptid}),'%')
         </if>
         <if test="stats!=null and stats!=''">
             and d.stats =#{stats}
@@ -1678,7 +1678,7 @@
 
     <select id="selectAge" resultType="java.util.HashMap">
         SELECT
-        YEAR (now()) - YEAR (substring(bu.cardid, 7, 8)) AS age
+        IFNULL(YEAR (now()) - YEAR (substring(bu.cardid, 7, 8)),0) AS age
         FROM
         blade_user bu
         LEFT JOIN sys_information si ON si.departmentid = bu.dept_id

--
Gitblit v1.9.3