From 076baf821f6ff0296826ecebac31b45ecce346a3 Mon Sep 17 00:00:00 2001
From: heheng <475597332@qq.com>
Date: 星期三, 25 六月 2025 15:19:17 +0800
Subject: [PATCH] 部分功能调整

---
 multi-system/src/main/resources/mapper/system/CompanyRosterMapper.xml |   56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 56 insertions(+), 0 deletions(-)

diff --git a/multi-system/src/main/resources/mapper/system/CompanyRosterMapper.xml b/multi-system/src/main/resources/mapper/system/CompanyRosterMapper.xml
new file mode 100644
index 0000000..2030fad
--- /dev/null
+++ b/multi-system/src/main/resources/mapper/system/CompanyRosterMapper.xml
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.gkhy.exam.system.mapper.CompanyRosterMapper">
+    <update id="updateRosterById">
+        UPDATE company_roster
+        <set>
+            <if test="companyId != null and companyId != ''" >
+                company_id = #{companyId},
+            </if>
+            <if test="companyName != null and companyName != ''" >
+                company_name = #{companyName},
+            </if>
+            <if test="companyRoster != null and companyRoster !=''" >
+                company_roster = #{companyRoster},
+            </if>
+            <if test="delFlag != null and delFlag != ''" >
+                del_flag = #{delFlag},
+            </if>
+            <if test="createBy != null" >
+                create_by = #{createBy},
+            </if>
+            <if test="createTime != null" >
+                create_time = #{createTime},
+            </if>
+            <if test="updateBy != null" >
+                update_by = #{updateBy},
+            </if>
+            <if test="updateTime != null" >
+                update_time = #{updateTime}
+            </if>
+        </set>
+        where id = #{id}
+    </update>
+
+    <select id="selectCompanyRosterList" resultType="com.gkhy.exam.system.domain.CompanyRoster">
+        SELECT
+            `id`,
+            `company_id`,
+            `company_name`,
+            `company_roster`,
+            `del_flag`,
+            `create_by`,
+            `create_time`,
+            `update_by`,
+            `update_time`
+        FROM
+            company_roster
+        WHERE
+            del_flag = 1
+        <if test="companyId!=null and companyId!=''">
+            and company_id = #{companyId}
+        </if>
+        ORDER BY
+            create_time DESC
+    </select>
+</mapper>

--
Gitblit v1.9.2