|
|
|
@ -0,0 +1,333 @@
|
|
|
|
|
<?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.hzya.frame.sysnew.application.appAcount.dao.impl.SysApplicationAccountDaoImpl">
|
|
|
|
|
|
|
|
|
|
<resultMap id="get-SysApplicationAccountEntity-result"
|
|
|
|
|
type="com.hzya.frame.sysnew.application.appAcount.entity.SysApplicationAccountEntity">
|
|
|
|
|
<result property="id" column="id" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="create_user_id" column="create_user_id" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
|
|
|
|
|
<result property="modify_user_id" column="modify_user_id" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
|
|
|
|
|
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="sorts" column="sorts" jdbcType="INTEGER"/>
|
|
|
|
|
<result property="appId" column="app_id" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="name" column="name" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="ipAddress" column="ip_address" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="port" column="port" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="dbName" column="db_name" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="userName" column="user_name" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="password" column="password" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="dbType" column="db_type" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="appKey" column="app_key" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="appSecret" column="app_secret" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="corpid" column="corpId" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="agentid" column="agentId" jdbcType="VARCHAR"/>
|
|
|
|
|
</resultMap>
|
|
|
|
|
<!-- 查询的字段-->
|
|
|
|
|
<sql id="SysApplicationAccountEntity_Base_Column_List">
|
|
|
|
|
id
|
|
|
|
|
,create_user_id
|
|
|
|
|
,create_time
|
|
|
|
|
,modify_user_id
|
|
|
|
|
,modify_time
|
|
|
|
|
,sts
|
|
|
|
|
,sorts
|
|
|
|
|
,appId
|
|
|
|
|
,name
|
|
|
|
|
,ip_address
|
|
|
|
|
,port
|
|
|
|
|
,db_name
|
|
|
|
|
,user_name
|
|
|
|
|
,password
|
|
|
|
|
,db_type
|
|
|
|
|
,app_key
|
|
|
|
|
,app_secret
|
|
|
|
|
,corpId
|
|
|
|
|
,agentId
|
|
|
|
|
</sql>
|
|
|
|
|
<!-- 查询 采用==查询 -->
|
|
|
|
|
<select id="entity_list_base" resultMap="get-SysApplicationAccountEntity-result"
|
|
|
|
|
parameterType="com.hzya.frame.sysnew.application.appAcount.entity.SysApplicationAccountEntity">
|
|
|
|
|
select
|
|
|
|
|
<include refid="SysApplicationAccountEntity_Base_Column_List"/>
|
|
|
|
|
from sys_application_account
|
|
|
|
|
<trim prefix="where" prefixOverrides="and">
|
|
|
|
|
<if test="id != null and id != ''">and id = #{id}</if>
|
|
|
|
|
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
|
|
|
|
|
<if test="create_time != null">and create_time = #{create_time}</if>
|
|
|
|
|
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id = #{modify_user_id}</if>
|
|
|
|
|
<if test="modify_time != null">and modify_time = #{modify_time}</if>
|
|
|
|
|
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
|
|
|
|
<if test="sorts != null">and sorts = #{sorts}</if>
|
|
|
|
|
<if test="appId != null and appId != ''">and app_id = #{appId}</if>
|
|
|
|
|
<if test="name != null and name != ''">and name = #{name}</if>
|
|
|
|
|
<if test="ipAddress != null and ipAddress != ''">and ip_address = #{ipAddress}</if>
|
|
|
|
|
<if test="port != null and port != ''">and port = #{port}</if>
|
|
|
|
|
<if test="dbName != null and dbName != ''">and db_name = #{dbName}</if>
|
|
|
|
|
<if test="userName != null and userName != ''">and user_name = #{userName}</if>
|
|
|
|
|
<if test="password != null and password != ''">and password = #{password}</if>
|
|
|
|
|
<if test="dbType != null and dbType != ''">and db_type = #{dbType}</if>
|
|
|
|
|
<if test="appKey != null and appKey != ''">and app_key = #{appKey}</if>
|
|
|
|
|
<if test="appSecret != null and appSecret != ''">and app_secret = #{appSecret}</if>
|
|
|
|
|
<if test="corpid != null and corpid != ''">and corpId = #{corpid}</if>
|
|
|
|
|
<if test="agentid != null and agentid != ''">and agentId = #{agentid}</if>
|
|
|
|
|
and sts='Y'
|
|
|
|
|
</trim>
|
|
|
|
|
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
|
|
|
|
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<!-- 查询符合条件的数量 -->
|
|
|
|
|
<select id="entity_count" resultType="Integer"
|
|
|
|
|
parameterType="com.hzya.frame.sysnew.application.appAcount.entity.SysApplicationAccountEntity">
|
|
|
|
|
select count(1) from sys_application_account
|
|
|
|
|
<trim prefix="where" prefixOverrides="and">
|
|
|
|
|
<if test="id != null and id != ''">and id = #{id}</if>
|
|
|
|
|
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
|
|
|
|
|
<if test="create_time != null">and create_time = #{create_time}</if>
|
|
|
|
|
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id = #{modify_user_id}</if>
|
|
|
|
|
<if test="modify_time != null">and modify_time = #{modify_time}</if>
|
|
|
|
|
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
|
|
|
|
<if test="sorts != null">and sorts = #{sorts}</if>
|
|
|
|
|
<if test="appId != null and appId != ''">and app_id = #{appId}</if>
|
|
|
|
|
<if test="name != null and name != ''">and name = #{name}</if>
|
|
|
|
|
<if test="ipAddress != null and ipAddress != ''">and ip_address = #{ipAddress}</if>
|
|
|
|
|
<if test="port != null and port != ''">and port = #{port}</if>
|
|
|
|
|
<if test="dbName != null and dbName != ''">and db_name = #{dbName}</if>
|
|
|
|
|
<if test="userName != null and userName != ''">and user_name = #{userName}</if>
|
|
|
|
|
<if test="password != null and password != ''">and password = #{password}</if>
|
|
|
|
|
<if test="dbType != null and dbType != ''">and db_type = #{dbType}</if>
|
|
|
|
|
<if test="appKey != null and appKey != ''">and app_key = #{appKey}</if>
|
|
|
|
|
<if test="appSecret != null and appSecret != ''">and app_secret = #{appSecret}</if>
|
|
|
|
|
<if test="corpid != null and corpid != ''">and corpId = #{corpid}</if>
|
|
|
|
|
<if test="agentid != null and agentid != ''">and agentId = #{agentid}</if>
|
|
|
|
|
and sts='Y'
|
|
|
|
|
</trim>
|
|
|
|
|
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
|
|
|
|
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<!-- 分页查询列表 采用like格式 -->
|
|
|
|
|
<select id="entity_list_like" resultMap="get-SysApplicationAccountEntity-result"
|
|
|
|
|
parameterType="com.hzya.frame.sysnew.application.appAcount.entity.SysApplicationAccountEntity">
|
|
|
|
|
select
|
|
|
|
|
<include refid="SysApplicationAccountEntity_Base_Column_List"/>
|
|
|
|
|
from sys_application_account
|
|
|
|
|
<trim prefix="where" prefixOverrides="and">
|
|
|
|
|
<if test="id != null and id != ''">and id like concat('%',#{id},'%')</if>
|
|
|
|
|
<if test="create_user_id != null and create_user_id != ''">and create_user_id like
|
|
|
|
|
concat('%',#{create_user_id},'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="create_time != null">and create_time like concat('%',#{create_time},'%')</if>
|
|
|
|
|
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id like
|
|
|
|
|
concat('%',#{modify_user_id},'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="modify_time != null">and modify_time like concat('%',#{modify_time},'%')</if>
|
|
|
|
|
<if test="sts != null and sts != ''">and sts like concat('%',#{sts},'%')</if>
|
|
|
|
|
<if test="sorts != null">and sorts like concat('%',#{sorts},'%')</if>
|
|
|
|
|
<if test="name != null and name != ''">and name like concat('%',#{name},'%')</if>
|
|
|
|
|
<if test="appId != null and appId != ''">and app_id like concat('%',#{appId},'%')</if>
|
|
|
|
|
<if test="ipAddress != null and ipAddress != ''">and ip_address like concat('%',#{ipAddress},'%')</if>
|
|
|
|
|
<if test="port != null and port != ''">and port like concat('%',#{port},'%')</if>
|
|
|
|
|
<if test="dbName != null and dbName != ''">and db_name like concat('%',#{dbName},'%')</if>
|
|
|
|
|
<if test="userName != null and userName != ''">and user_name like concat('%',#{userName},'%')</if>
|
|
|
|
|
<if test="password != null and password != ''">and password like concat('%',#{password},'%')</if>
|
|
|
|
|
<if test="dbType != null and dbType != ''">and db_type like concat('%',#{dbType},'%')</if>
|
|
|
|
|
<if test="appKey != null and appKey != ''">and app_key like concat('%',#{appKey},'%')</if>
|
|
|
|
|
<if test="appSecret != null and appSecret != ''">and app_secret like concat('%',#{appSecret},'%')</if>
|
|
|
|
|
<if test="corpid != null and corpid != ''">and corpId like concat('%',#{corpid},'%')</if>
|
|
|
|
|
<if test="agentid != null and agentid != ''">and agentId like concat('%',#{agentid},'%')</if>
|
|
|
|
|
and sts='Y'
|
|
|
|
|
</trim>
|
|
|
|
|
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
|
|
|
|
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<!-- 查询列表 字段采用or格式 -->
|
|
|
|
|
<select id="SysApplicationAccountentity_list_or" resultMap="get-SysApplicationAccountEntity-result"
|
|
|
|
|
parameterType="com.hzya.frame.sysnew.application.appAcount.entity.SysApplicationAccountEntity">
|
|
|
|
|
select
|
|
|
|
|
<include refid="SysApplicationAccountEntity_Base_Column_List"/>
|
|
|
|
|
from sys_application_account
|
|
|
|
|
<trim prefix="where" prefixOverrides="and">
|
|
|
|
|
<if test="id != null and id != ''">or id = #{id}</if>
|
|
|
|
|
<if test="create_user_id != null and create_user_id != ''">or create_user_id = #{create_user_id}</if>
|
|
|
|
|
<if test="create_time != null">or create_time = #{create_time}</if>
|
|
|
|
|
<if test="modify_user_id != null and modify_user_id != ''">or modify_user_id = #{modify_user_id}</if>
|
|
|
|
|
<if test="modify_time != null">or modify_time = #{modify_time}</if>
|
|
|
|
|
<if test="sts != null and sts != ''">or sts = #{sts}</if>
|
|
|
|
|
<if test="sorts != null">or sorts = #{sorts}</if>
|
|
|
|
|
<if test="name != null and name != ''">or name = #{name}</if>
|
|
|
|
|
<if test="ipAddress != null and ipAddress != ''">or ip_address = #{ipAddress}</if>
|
|
|
|
|
<if test="port != null and port != ''">or port = #{port}</if>
|
|
|
|
|
<if test="dbName != null and dbName != ''">or db_name = #{dbName}</if>
|
|
|
|
|
<if test="userName != null and userName != ''">or user_name = #{userName}</if>
|
|
|
|
|
<if test="password != null and password != ''">or password = #{password}</if>
|
|
|
|
|
<if test="dbType != null and dbType != ''">or db_type = #{dbType}</if>
|
|
|
|
|
<if test="appKey != null and appKey != ''">or app_key = #{appKey}</if>
|
|
|
|
|
<if test="appSecret != null and appSecret != ''">or app_secret = #{appSecret}</if>
|
|
|
|
|
<if test="corpid != null and corpid != ''">or corpId = #{corpid}</if>
|
|
|
|
|
<if test="agentid != null and agentid != ''">or agentId = #{agentid}</if>
|
|
|
|
|
and sts='Y'
|
|
|
|
|
</trim>
|
|
|
|
|
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
|
|
|
|
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<!--新增所有列-->
|
|
|
|
|
<insert id="entity_insert"
|
|
|
|
|
parameterType="com.hzya.frame.sysnew.application.appAcount.entity.SysApplicationAccountEntity"
|
|
|
|
|
keyProperty="id" useGeneratedKeys="true">
|
|
|
|
|
insert into sys_application_account(
|
|
|
|
|
<trim suffix="" suffixOverrides=",">
|
|
|
|
|
<if test="id != null and id != ''">id ,</if>
|
|
|
|
|
<if test="create_user_id != null and create_user_id != ''">create_user_id ,</if>
|
|
|
|
|
<if test="create_time != null">create_time ,</if>
|
|
|
|
|
<if test="modify_user_id != null and modify_user_id != ''">modify_user_id ,</if>
|
|
|
|
|
<if test="modify_time != null">modify_time ,</if>
|
|
|
|
|
<if test="sts != null and sts != ''">sts ,</if>
|
|
|
|
|
<if test="sorts != null">sorts ,</if>
|
|
|
|
|
<if test="name != null and name != ''">name ,</if>
|
|
|
|
|
<if test="ipAddress != null and ipAddress != ''">ip_address ,</if>
|
|
|
|
|
<if test="port != null and port != ''">port ,</if>
|
|
|
|
|
<if test="dbName != null and dbName != ''">db_name ,</if>
|
|
|
|
|
<if test="userName != null and userName != ''">user_name ,</if>
|
|
|
|
|
<if test="password != null and password != ''">password ,</if>
|
|
|
|
|
<if test="dbType != null and dbType != ''">db_type ,</if>
|
|
|
|
|
<if test="appKey != null and appKey != ''">app_key ,</if>
|
|
|
|
|
<if test="appSecret != null and appSecret != ''">app_secret ,</if>
|
|
|
|
|
<if test="corpid != null and corpid != ''">corpId ,</if>
|
|
|
|
|
<if test="agentid != null and agentid != ''">agentId ,</if>
|
|
|
|
|
<if test="sorts == null ">sorts,</if>
|
|
|
|
|
<if test="sts == null ">sts,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
)values(
|
|
|
|
|
<trim suffix="" suffixOverrides=",">
|
|
|
|
|
<if test="id != null and id != ''">#{id} ,</if>
|
|
|
|
|
<if test="create_user_id != null and create_user_id != ''">#{create_user_id} ,</if>
|
|
|
|
|
<if test="create_time != null">#{create_time} ,</if>
|
|
|
|
|
<if test="modify_user_id != null and modify_user_id != ''">#{modify_user_id} ,</if>
|
|
|
|
|
<if test="modify_time != null">#{modify_time} ,</if>
|
|
|
|
|
<if test="sts != null and sts != ''">#{sts} ,</if>
|
|
|
|
|
<if test="sorts != null">#{sorts} ,</if>
|
|
|
|
|
<if test="name != null and name != ''">#{name} ,</if>
|
|
|
|
|
<if test="ipAddress != null and ipAddress != ''">#{ipAddress} ,</if>
|
|
|
|
|
<if test="port != null and port != ''">#{port} ,</if>
|
|
|
|
|
<if test="dbName != null and dbName != ''">#{dbName} ,</if>
|
|
|
|
|
<if test="userName != null and userName != ''">#{userName} ,</if>
|
|
|
|
|
<if test="password != null and password != ''">#{password} ,</if>
|
|
|
|
|
<if test="dbType != null and dbType != ''">#{dbType} ,</if>
|
|
|
|
|
<if test="appKey != null and appKey != ''">#{appKey} ,</if>
|
|
|
|
|
<if test="appSecret != null and appSecret != ''">#{appSecret} ,</if>
|
|
|
|
|
<if test="corpid != null and corpid != ''">#{corpid} ,</if>
|
|
|
|
|
<if test="agentid != null and agentid != ''">#{agentid} ,</if>
|
|
|
|
|
<if test="sorts == null ">COALESCE((select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_application_account a
|
|
|
|
|
WHERE a.sts = 'Y' )1),
|
|
|
|
|
</if>
|
|
|
|
|
<if test="sts == null ">'Y',</if>
|
|
|
|
|
</trim>
|
|
|
|
|
)
|
|
|
|
|
</insert>
|
|
|
|
|
<!-- 批量新增 -->
|
|
|
|
|
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
|
|
|
|
|
insert into sys_application_account(create_user_id, create_time, modify_user_id, modify_time, sts, sorts, name,
|
|
|
|
|
ip_address, port, db_name, user_name, password, db_type, app_key, app_secret, corpId, agentId, sts)
|
|
|
|
|
values
|
|
|
|
|
<foreach collection="entities" item="entity" separator=",">
|
|
|
|
|
(#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.sorts},#{entity.name},#{entity.ipAddress},#{entity.port},#{entity.dbName},#{entity.userName},#{entity.password},#{entity.dbType},#{entity.appKey},#{entity.appSecret},#{entity.corpid},#{entity.agentid},
|
|
|
|
|
'Y')
|
|
|
|
|
</foreach>
|
|
|
|
|
</insert>
|
|
|
|
|
<!-- 批量新增或者修改-->
|
|
|
|
|
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
|
|
|
|
insert into sys_application_account(create_user_id, create_time, modify_user_id, modify_time, sts, sorts, name,
|
|
|
|
|
ip_address, port, db_name, user_name, password, db_type, app_key, app_secret, corpId, agentId)
|
|
|
|
|
values
|
|
|
|
|
<foreach collection="entities" item="entity" separator=",">
|
|
|
|
|
(#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.sorts},#{entity.name},#{entity.ipAddress},#{entity.port},#{entity.dbName},#{entity.userName},#{entity.password},#{entity.dbType},#{entity.appKey},#{entity.appSecret},#{entity.corpid},#{entity.agentid})
|
|
|
|
|
</foreach>
|
|
|
|
|
on duplicate key update
|
|
|
|
|
create_user_id = values(create_user_id),
|
|
|
|
|
create_time = values(create_time),
|
|
|
|
|
modify_user_id = values(modify_user_id),
|
|
|
|
|
modify_time = values(modify_time),
|
|
|
|
|
sts = values(sts),
|
|
|
|
|
sorts = values(sorts),
|
|
|
|
|
name = values(name),
|
|
|
|
|
ip_address = values(ip_address),
|
|
|
|
|
port = values(port),
|
|
|
|
|
db_name = values(db_name),
|
|
|
|
|
user_name = values(user_name),
|
|
|
|
|
password = values(password),
|
|
|
|
|
db_type = values(db_type),
|
|
|
|
|
app_key = values(app_key),
|
|
|
|
|
app_secret = values(app_secret),
|
|
|
|
|
corpId = values(corpId),
|
|
|
|
|
agentId = values(agentId)
|
|
|
|
|
</insert>
|
|
|
|
|
<!--通过主键修改方法-->
|
|
|
|
|
<update id="entity_update"
|
|
|
|
|
parameterType="com.hzya.frame.sysnew.application.appAcount.entity.SysApplicationAccountEntity">
|
|
|
|
|
update sys_application_account set
|
|
|
|
|
<trim suffix="" suffixOverrides=",">
|
|
|
|
|
<if test="create_user_id != null and create_user_id != ''">create_user_id = #{create_user_id},</if>
|
|
|
|
|
<if test="create_time != null">create_time = #{create_time},</if>
|
|
|
|
|
<if test="modify_user_id != null and modify_user_id != ''">modify_user_id = #{modify_user_id},</if>
|
|
|
|
|
<if test="modify_time != null">modify_time = #{modify_time},</if>
|
|
|
|
|
<if test="sts != null and sts != ''">sts = #{sts},</if>
|
|
|
|
|
<if test="sorts != null">sorts = #{sorts},</if>
|
|
|
|
|
<if test="name != null and name != ''">name = #{name},</if>
|
|
|
|
|
<if test="ipAddress != null and ipAddress != ''">ip_address = #{ipAddress},</if>
|
|
|
|
|
<if test="port != null and port != ''">port = #{port},</if>
|
|
|
|
|
<if test="dbName != null and dbName != ''">db_name = #{dbName},</if>
|
|
|
|
|
<if test="userName != null and userName != ''">user_name = #{userName},</if>
|
|
|
|
|
<if test="password != null and password != ''">password = #{password},</if>
|
|
|
|
|
<if test="dbType != null and dbType != ''">db_type = #{dbType},</if>
|
|
|
|
|
<if test="appKey != null and appKey != ''">app_key = #{appKey},</if>
|
|
|
|
|
<if test="appSecret != null and appSecret != ''">app_secret = #{appSecret},</if>
|
|
|
|
|
<if test="corpid != null and corpid != ''">corpId = #{corpid},</if>
|
|
|
|
|
<if test="agentid != null and agentid != ''">agentId = #{agentid},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where id = #{id}
|
|
|
|
|
</update>
|
|
|
|
|
<!-- 逻辑删除 -->
|
|
|
|
|
<update id="entity_logicDelete"
|
|
|
|
|
parameterType="com.hzya.frame.sysnew.application.appAcount.entity.SysApplicationAccountEntity">
|
|
|
|
|
update sys_application_account
|
|
|
|
|
set sts= 'N',
|
|
|
|
|
modify_time = #{modify_time},
|
|
|
|
|
modify_user_id = #{modify_user_id}
|
|
|
|
|
where id = #{id}
|
|
|
|
|
</update>
|
|
|
|
|
<!-- 多条件逻辑删除 -->
|
|
|
|
|
<update id="entity_logicDelete_Multi_Condition"
|
|
|
|
|
parameterType="com.hzya.frame.sysnew.application.appAcount.entity.SysApplicationAccountEntity">
|
|
|
|
|
update sys_application_account set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
|
|
|
|
<trim prefix="where" prefixOverrides="and">
|
|
|
|
|
<if test="id != null and id != ''">and id = #{id}</if>
|
|
|
|
|
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
|
|
|
|
<if test="sorts != null">and sorts = #{sorts}</if>
|
|
|
|
|
<if test="name != null and name != ''">and name = #{name}</if>
|
|
|
|
|
<if test="ipAddress != null and ipAddress != ''">and ip_address = #{ipAddress}</if>
|
|
|
|
|
<if test="port != null and port != ''">and port = #{port}</if>
|
|
|
|
|
<if test="dbName != null and dbName != ''">and db_name = #{dbName}</if>
|
|
|
|
|
<if test="userName != null and userName != ''">and user_name = #{userName}</if>
|
|
|
|
|
<if test="password != null and password != ''">and password = #{password}</if>
|
|
|
|
|
<if test="dbType != null and dbType != ''">and db_type = #{dbType}</if>
|
|
|
|
|
<if test="appKey != null and appKey != ''">and app_key = #{appKey}</if>
|
|
|
|
|
<if test="appSecret != null and appSecret != ''">and app_secret = #{appSecret}</if>
|
|
|
|
|
<if test="corpid != null and corpid != ''">and corpId = #{corpid}</if>
|
|
|
|
|
<if test="agentid != null and agentid != ''">and agentId = #{agentid}</if>
|
|
|
|
|
and sts='Y'
|
|
|
|
|
</trim>
|
|
|
|
|
</update>
|
|
|
|
|
<!--通过主键删除-->
|
|
|
|
|
<delete id="entity_delete">
|
|
|
|
|
delete
|
|
|
|
|
from sys_application_account
|
|
|
|
|
where id = #{id}
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
</mapper>
|
|
|
|
|
|