Explorar el Código

删除AccountsStrategyMapper.xml

shimingxy hace 1 día
padre
commit
3b9f182b5d

+ 0 - 39
maxkey-persistence/src/main/resources/org/dromara/maxkey/persistence/mapper/xml/mysql/AccountsMapper.xml

@@ -31,43 +31,4 @@
 		<include refid="where_statement"/>
 	</select>
 	
-	<select id="queryUserNotInStrategy" parameterType="AccountsStrategy" resultType="UserInfo">
-        select 
-            *
-        from mxk_userinfo u
-        where u.instid = #{instId} 
-            and not exists(
-                select  1 from mxk_accounts ac 
-                where   ac.appid = #{appId}
-                    and ac.instid = #{instId} 
-                    and ac.userid = u.id
-                    and ac.createtype='automatic'
-            )
-        <if test="filters != null and filters != ''">
-                and (${filters})
-        </if>
-        <if test="orgIdsList != null and orgIdsList != ''">
-                and u.departmentid in( ${orgIdsList})
-        </if>
-    </select>
-    
-	<delete id="deleteByStrategy" parameterType="AccountsStrategy" >
-        delete from mxk_accounts ac
-        where   ac.instid = #{instId} 
-            and ac.createtype = 'automatic'
-            and ac.appid = #{appId}
-            and ac.strategyid = #{id}
-            and not exists(
-                select 1
-                from mxk_userinfo u
-                where instid = #{instId} 
-                    and u.id=ac.userid
-                <if test="filters != null and filters != ''">
-                        and (${filters})
-                </if>
-                <if test="orgIdsList != null and orgIdsList != ''">
-                        and u.departmentid in ( ${orgIdsList})
-                </if>
-            )
-    </delete>
 </mapper>

+ 0 - 32
maxkey-persistence/src/main/resources/org/dromara/maxkey/persistence/mapper/xml/mysql/AccountsStrategyMapper.xml

@@ -1,32 +0,0 @@
-<?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="org.dromara.maxkey.persistence.mapper.AccountsStrategyMapper">
-
-	<sql id="where_statement">
-        <if test="id != null and id != ''">
-            and mas.id  =   #{id}
-        </if> 
-        <if test="appId != null and appId != ''">
-            and mas.appid   =   #{appId}
-        </if> 
-        <if test="appName != null and appName != ''">
-            and mas.appname    =   #{appName}
-        </if>
-    </sql>
-    
-    
-    
-    <select id="fetchPageResults" parameterType="AccountsStrategy" resultType="AccountsStrategy">
-        select
-            mas.*,
-            ma.icon appicon
-        from
-            mxk_accounts_strategy mas,
-            mxk_apps    ma
-        where   ma.instid = #{instId}
-            and mas.instid = #{instId}
-            and mas.appid = ma.id
-        <include refid="where_statement"/>
-    </select>
-	
-</mapper>

+ 0 - 31
maxkey-persistence/src/main/resources/org/dromara/maxkey/persistence/mapper/xml/postgresql/AccountsStrategyMapper.xml

@@ -1,31 +0,0 @@
-<?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="org.maxkey.persistence.mapper.AccountsStrategyMapper">
-
-    <sql id="where_statement">
-        <if test="id != null and id != ''">
-            and mas.id = #{id}
-        </if>
-        <if test="appId != null and appId != ''">
-            and mas.appid = #{appId}
-        </if>
-        <if test="name != null and name != ''">
-            and mas.name = #{name}
-        </if>
-    </sql>
-
-
-    <select id="queryPageResults" parameterType="AccountsStrategy" resultType="AccountsStrategy">
-        select
-        mas.*,
-        ma.icon appicon
-        from
-        mxk_accounts_strategy mas,
-        mxk_apps ma
-        where ma.instid = #{instId}
-        and mas.instid = #{instId}
-        and mas.appid = ma.id
-        <include refid="where_statement"/>
-    </select>
-
-</mapper>