增加app_id字段

账户详情接口
This commit is contained in:
xiang2lin 2025-05-26 16:36:07 +08:00
parent da1820e368
commit 070090b3a7
1 changed files with 16 additions and 3 deletions

View File

@ -33,7 +33,7 @@
,modify_time
,sts
,sorts
,appId
,app_id
,name
,ip_address
,port
@ -46,6 +46,14 @@
,corpId
,agentId
</sql>
<select id="entity_get" parameterType="com.hzya.frame.sysnew.application.appAcount.entity.SysApplicationAccountEntity" resultMap="get-SysApplicationAccountEntity-result">
select
<include refid="SysApplicationAccountEntity_Base_Column_List"/>
from sys_application_account
where id = #{id}
and sts = 'Y'
</select>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-SysApplicationAccountEntity-result"
parameterType="com.hzya.frame.sysnew.application.appAcount.entity.SysApplicationAccountEntity">
@ -199,6 +207,7 @@
<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="appId != null and appId != ''">app_id ,</if>
<if test="sorts == null ">sorts,</if>
<if test="sts == null ">sts,</if>
</trim>
@ -222,8 +231,10 @@
<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 test="appId != null and appId != ''">#{appId} ,</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>
@ -284,6 +295,7 @@
<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="appId != null and appId != ''">app_id = #{appId},</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>
@ -318,6 +330,7 @@
<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="appId != null and appId != ''">and app_id = #{appId}</if>
<if test="agentid != null and agentid != ''">and agentId = #{agentid}</if>
and sts='Y'
</trim>