From ebae0c1137ba96d38e5b2323577129d2c9ff2e6e Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期四, 22 五月 2025 09:45:59 +0800
Subject: [PATCH] 1、优化配置文件; 2、优化ID生成器代码; 3、修改注释; 4、修改权限初始化时算法; 5、导出Excel文件功能归为一个新类; 6、工站数据库存入验空修改;

---
 pms-parent/pms-global/src/main/resources/mapper/BaPrivilegeMapper.xml |   25 +++++++++++++++----------
 1 files changed, 15 insertions(+), 10 deletions(-)

diff --git a/pms-parent/pms-global/src/main/resources/mapper/BaPrivilegeMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/BaPrivilegeMapper.xml
index 3783013..803f50a 100644
--- a/pms-parent/pms-global/src/main/resources/mapper/BaPrivilegeMapper.xml
+++ b/pms-parent/pms-global/src/main/resources/mapper/BaPrivilegeMapper.xml
@@ -78,16 +78,16 @@
       <if test="id != null">
         id,
       </if>
-      <if test="num != null">
+      <if test="num != null and num !=''">
         num,
       </if>
-      <if test="name != null">
+      <if test="name != null and name !=''">
         `name`,
       </if>
       <if test="type != null">
         `type`,
       </if>
-      <if test="typeName != null">
+      <if test="typeName!= null and typeName !=''">
         type_name,
       </if>
     </trim>
@@ -98,13 +98,13 @@
       <if test="num != null">
         #{num},
       </if>
-      <if test="name != null">
+      <if test="name != null and name !=''">
         #{name},
       </if>
-      <if test="type != null">
+      <if test="type != null and type !=''">
         #{type},
       </if>
-      <if test="typeName != null">
+      <if test="typeName!= null and typeName !=''">
         #{typeName},
       </if>
     </trim>
@@ -113,16 +113,16 @@
     <!--@mbg.generated-->
     update ba_privilege
     <set>
-      <if test="num != null">
+      <if test="num != null and num !=''">
         num = #{num},
       </if>
-      <if test="name != null">
+      <if test="name != null and name !=''">
         `name` = #{name},
       </if>
-      <if test="type != null">
+      <if test="type != null and type !=''">
         `type` = #{type},
       </if>
-      <if test="typeName != null">
+      <if test="typeName!= null and typeName !=''">
         type_name = #{typeName},
       </if>
     </set>
@@ -144,6 +144,11 @@
     where id = #{id}
   </delete>
 
+  <delete id="deleteAll">
+    <!--@mbg.generated-->
+    delete from ba_privilege
+  </delete>
+
   <select id="selectByIds" parameterType="arraylist" resultMap="BaseResultMap">
     select
     <include refid="Base_Column_List" />

--
Gitblit v1.8.0