From e6ee956618b3c1a6371a6c22dfbb70868dbd3f17 Mon Sep 17 00:00:00 2001
From: 44323 <443237572@qq.com>
Date: 星期六, 07 十月 2023 15:23:06 +0800
Subject: [PATCH] 后台代码

---
 cloud-server-management/src/main/resources/mapper/TOperatorMapper.xml |   30 +++++++++++++++++++++++++++++-
 1 files changed, 29 insertions(+), 1 deletions(-)

diff --git a/cloud-server-management/src/main/resources/mapper/TOperatorMapper.xml b/cloud-server-management/src/main/resources/mapper/TOperatorMapper.xml
index 9250045..780ffae 100644
--- a/cloud-server-management/src/main/resources/mapper/TOperatorMapper.xml
+++ b/cloud-server-management/src/main/resources/mapper/TOperatorMapper.xml
@@ -1,6 +1,34 @@
 <?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.dsh.course.mapper.TOperatorMapper">
+    <update id="changeState">
+        update t_operator set
+        state = #{state}
+        <where>
+            <if test="ids != null and ids.size()>0">
+                AND t_operator.id IN
+                <foreach collection="ids" separator="," item="id" open="(" close=")">
+                    #{id}
+                </foreach>
+            </if>
+        </where>
+    </update>
 
-
+    <select id="listAll" resultType="java.util.Map">
+        select t1.id as id, t1.name as name,t1.type as `type`,t1.state as state,t1.status as status,t2.name as userName,t2.phone as phone from t_operator t1
+        left join sys_user t2 on t1.userId = t2.id
+        where 1=1
+        <if test="userName != null and userName != ''">
+            and t2.name like CONCAT('%',#{userName},'%')
+        </if>
+        <if test="phone != null and phone != ''">
+            and t2.phone like CONCAT('%',#{phone},'%')
+        </if>
+        <if test="type != null and type != ''">
+            and t1.type =  #{type}
+        </if>
+    </select>
+    <select id="getBankList" resultType="com.dsh.guns.modular.system.model.Bank">
+        select * from t_bank
+    </select>
 </mapper>

--
Gitblit v1.7.1