增加nifi_api_id字段

This commit is contained in:
xiang2lin 2025-05-16 14:50:19 +08:00
parent c9f3e36482
commit 0124e5898f
2 changed files with 33 additions and 5 deletions

View File

@ -82,6 +82,9 @@ public class SysApplicationApiEntity extends BaseEntity {
/** 返回描述字段*/ /** 返回描述字段*/
private String returnMsg; private String returnMsg;
//对应nifi的apiid
private String nifiApiId;
public String getReturnMsg() { public String getReturnMsg() {
return returnMsg; return returnMsg;
} }
@ -321,5 +324,13 @@ public class SysApplicationApiEntity extends BaseEntity {
public void setAppCode(Long appCode) { public void setAppCode(Long appCode) {
this.appCode = appCode; this.appCode = appCode;
} }
public String getNifiApiId() {
return nifiApiId;
}
public void setNifiApiId(String nifiApiId) {
this.nifiApiId = nifiApiId;
}
} }

View File

@ -10,6 +10,7 @@
<result property="appCode" column="app_code"/> <result property="appCode" column="app_code"/>
<result property="apiPath" column="api_path" jdbcType="VARCHAR"/> <result property="apiPath" column="api_path" jdbcType="VARCHAR"/>
<result property="appId" column="app_id" jdbcType="VARCHAR"/> <result property="appId" column="app_id" jdbcType="VARCHAR"/>
<result property="nifiApiId" column="nifi_api_id" jdbcType="VARCHAR"/>
<result property="appName" column="app_name" jdbcType="VARCHAR"/> <result property="appName" column="app_name" jdbcType="VARCHAR"/>
<result property="appUrl" column="app_url" jdbcType="VARCHAR"/> <result property="appUrl" column="app_url" jdbcType="VARCHAR"/>
<result property="catalogueId" column="catalogue_id" jdbcType="VARCHAR"/> <result property="catalogueId" column="catalogue_id" jdbcType="VARCHAR"/>
@ -51,7 +52,8 @@
,api_code ,api_code
,api_path ,api_path
,app_id ,app_id
,catalogue_id ,nifi_api_id
,catalogue_id
,api_name ,api_name
,api_remark ,api_remark
,need_Login ,need_Login
@ -85,6 +87,7 @@
<sql id="SysApplicationApiEntity_join_sysApp_like_Column_Lis"> <sql id="SysApplicationApiEntity_join_sysApp_like_Column_Lis">
sys_application_api.id, sys_application_api.id,
sys_application.app_id as app_code, sys_application.app_id as app_code,
sys_application.nifi_api_id as nifi_api_id,
sys_application_api.api_code, sys_application_api.api_code,
sys_application_api.api_name, sys_application_api.api_name,
sys_application_api.api_remark, sys_application_api.api_remark,
@ -111,6 +114,7 @@
b.name as app_name, b.name as app_name,
b.interface_address as app_url, b.interface_address as app_url,
a.app_id, a.app_id,
a.nifi_api_id,
a.catalogue_id, a.catalogue_id,
c.name as catalogue_name, c.name as catalogue_name,
a.api_name, a.api_name,
@ -162,6 +166,7 @@ WHERE
,api.api_code ,api.api_code
,api.api_path ,api.api_path
,api.app_id ,api.app_id
,api.nifi_api_id
,api.catalogue_id ,api.catalogue_id
,api.api_name ,api.api_name
,api.api_remark ,api.api_remark
@ -200,6 +205,7 @@ WHERE
<if test="apiCode != null ">and api.api_code = #{apiCode}</if> <if test="apiCode != null ">and api.api_code = #{apiCode}</if>
<if test="apiPath != null and apiPath != ''">and api.api_path = #{apiPath}</if> <if test="apiPath != null and apiPath != ''">and api.api_path = #{apiPath}</if>
<if test="appId != null and appId != ''">and api.app_id = #{appId}</if> <if test="appId != null and appId != ''">and api.app_id = #{appId}</if>
<if test="nifiApiId != null and nifiApiId != ''">and api.nifi_api_id = #{nifiApiId}</if>
<if test="catalogueId != null and catalogueId != ''">and api.catalogue_id = #{catalogueId}</if> <if test="catalogueId != null and catalogueId != ''">and api.catalogue_id = #{catalogueId}</if>
<if test="apiName != null and apiName != ''">and api.api_name = #{apiName}</if> <if test="apiName != null and apiName != ''">and api.api_name = #{apiName}</if>
<if test="apiRemark != null and apiRemark != ''">and api.api_remark = #{apiRemark}</if> <if test="apiRemark != null and apiRemark != ''">and api.api_remark = #{apiRemark}</if>
@ -251,6 +257,7 @@ WHERE
<if test="apiCode != null ">and api_code = #{apiCode}</if> <if test="apiCode != null ">and api_code = #{apiCode}</if>
<if test="apiPath != null and apiPath != ''">and api_path = #{apiPath}</if> <if test="apiPath != null and apiPath != ''">and api_path = #{apiPath}</if>
<if test="appId != null and appId != ''">and app_id = #{appId}</if> <if test="appId != null and appId != ''">and app_id = #{appId}</if>
<if test="nifiApiId != null and nifiApiId != ''">and nifi_api_id = #{nifiApiId}</if>
<if test="catalogueId != null and catalogueId != ''">and catalogue_id = #{catalogueId}</if> <if test="catalogueId != null and catalogueId != ''">and catalogue_id = #{catalogueId}</if>
<if test="apiName != null and apiName != ''">and api_name = #{apiName}</if> <if test="apiName != null and apiName != ''">and api_name = #{apiName}</if>
<if test="apiRemark != null and apiRemark != ''">and api_remark = #{apiRemark}</if> <if test="apiRemark != null and apiRemark != ''">and api_remark = #{apiRemark}</if>
@ -304,6 +311,7 @@ WHERE
<if test="apiCode != null ">and api_code like concat('%',#{apiCode},'%')</if> <if test="apiCode != null ">and api_code like concat('%',#{apiCode},'%')</if>
<if test="apiPath != null and apiPath != ''">and api_path like concat('%',#{apiPath},'%')</if> <if test="apiPath != null and apiPath != ''">and api_path like concat('%',#{apiPath},'%')</if>
<if test="appId != null and appId != ''">and app_id like concat('%',#{appId},'%')</if> <if test="appId != null and appId != ''">and app_id like concat('%',#{appId},'%')</if>
<if test="nifiApiId != null and nifiApiId != ''">and nifi_api_id like concat('%',#{nifiApiId},'%')</if>
<if test="catalogueId != null and catalogueId != ''">and catalogue_id like concat('%',#{catalogueId},'%') <if test="catalogueId != null and catalogueId != ''">and catalogue_id like concat('%',#{catalogueId},'%')
</if> </if>
<if test="apiName != null and apiName != ''">and api_name like concat('%',#{apiName},'%')</if> <if test="apiName != null and apiName != ''">and api_name like concat('%',#{apiName},'%')</if>
@ -372,6 +380,7 @@ WHERE
<if test="apiCode != null ">and sys_application_api.api_code like concat('%',#{apiCode},'%')</if> <if test="apiCode != null ">and sys_application_api.api_code like concat('%',#{apiCode},'%')</if>
<if test="apiPath != null and apiPath != ''">and sys_application_api.api_path like concat('%',#{apiPath},'%')</if> <if test="apiPath != null and apiPath != ''">and sys_application_api.api_path like concat('%',#{apiPath},'%')</if>
<if test="appId != null and appId != ''">and sys_application_api.app_id like concat('%',#{appId},'%')</if> <if test="appId != null and appId != ''">and sys_application_api.app_id like concat('%',#{appId},'%')</if>
<if test="nifiApiId != null and nifiApiId != ''">and sys_application_api.nifi_api_id like concat('%',#{nifiApiId},'%')</if>
<if test="catalogueId != null and catalogueId != ''">and sys_application_api.catalogue_id like concat('%',#{catalogueId},'%') <if test="catalogueId != null and catalogueId != ''">and sys_application_api.catalogue_id like concat('%',#{catalogueId},'%')
</if> </if>
<if test="apiName != null and apiName != ''">and sys_application_api.api_name like concat('%',#{apiName},'%')</if> <if test="apiName != null and apiName != ''">and sys_application_api.api_name like concat('%',#{apiName},'%')</if>
@ -438,6 +447,7 @@ WHERE
<if test="apiCode != null ">or api_code = #{apiCode}</if> <if test="apiCode != null ">or api_code = #{apiCode}</if>
<if test="apiPath != null and apiPath != ''">or api_path = #{apiPath}</if> <if test="apiPath != null and apiPath != ''">or api_path = #{apiPath}</if>
<if test="appId != null and appId != ''">or app_id = #{appId}</if> <if test="appId != null and appId != ''">or app_id = #{appId}</if>
<if test="nifiApiId != null and nifiApiId != ''">or nifi_api_id = #{nifiApiId}</if>
<if test="catalogueId != null and catalogueId != ''">or catalogue_id = #{catalogueId}</if> <if test="catalogueId != null and catalogueId != ''">or catalogue_id = #{catalogueId}</if>
<if test="apiName != null and apiName != ''">or api_name = #{apiName}</if> <if test="apiName != null and apiName != ''">or api_name = #{apiName}</if>
<if test="apiRemark != null and apiRemark != ''">or api_remark = #{apiRemark}</if> <if test="apiRemark != null and apiRemark != ''">or api_remark = #{apiRemark}</if>
@ -490,6 +500,7 @@ WHERE
<if test="apiCode == null ">api_code ,</if> <if test="apiCode == null ">api_code ,</if>
<if test="apiPath != null and apiPath != ''">api_path ,</if> <if test="apiPath != null and apiPath != ''">api_path ,</if>
<if test="appId != null and appId != ''">app_id ,</if> <if test="appId != null and appId != ''">app_id ,</if>
<if test="nifiApiId != null and nifiApiId != ''">nifi_api_id ,</if>
<if test="catalogueId != null and catalogueId != ''">catalogue_id ,</if> <if test="catalogueId != null and catalogueId != ''">catalogue_id ,</if>
<if test="apiName != null and apiName != ''">api_name ,</if> <if test="apiName != null and apiName != ''">api_name ,</if>
<if test="apiRemark != null and apiRemark != ''">api_remark ,</if> <if test="apiRemark != null and apiRemark != ''">api_remark ,</if>
@ -531,6 +542,7 @@ WHERE
</if> </if>
<if test="apiPath != null and apiPath != ''">#{apiPath} ,</if> <if test="apiPath != null and apiPath != ''">#{apiPath} ,</if>
<if test="appId != null and appId != ''">#{appId} ,</if> <if test="appId != null and appId != ''">#{appId} ,</if>
<if test="nifiApiId != null and nifiApiId != ''">#{nifiApiId} ,</if>
<if test="catalogueId != null and catalogueId != ''">#{catalogueId} ,</if> <if test="catalogueId != null and catalogueId != ''">#{catalogueId} ,</if>
<if test="apiName != null and apiName != ''">#{apiName} ,</if> <if test="apiName != null and apiName != ''">#{apiName} ,</if>
<if test="apiRemark != null and apiRemark != ''">#{apiRemark} ,</if> <if test="apiRemark != null and apiRemark != ''">#{apiRemark} ,</if>
@ -567,31 +579,32 @@ WHERE
</insert> </insert>
<!-- 批量新增 --> <!-- 批量新增 -->
<insert id="entityInsertBatch" > <insert id="entityInsertBatch" >
insert into sys_application_api(api_status,api_code,api_path, app_id, catalogue_id, api_name, api_remark, insert into sys_application_api(api_status,api_code,api_path, app_id,nifi_api_id, catalogue_id, api_name, api_remark,
need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method,
timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, bean_name,return_msg,return_success_field,return_success_value, fun_name, extension_api, sorts, create_user_id, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, bean_name,return_msg,return_success_field,return_success_value, fun_name, extension_api, sorts, create_user_id,
create_time, modify_user_id, modify_time, sts, org_id, sts) create_time, modify_user_id, modify_time, sts, org_id, sts)
values values
<foreach collection="entities" item="entity" separator=","> <foreach collection="entities" item="entity" separator=",">
(#{entity.apiStatus},#{entity.apiCode},#{entity.apiPath},#{entity.appId},#{entity.catalogueId},#{entity.apiName},#{entity.apiRemark},#{entity.needLogin},#{entity.authenticationPort},#{entity.parameterPassingMode},#{entity.destinationAddress},#{entity.requestCoding},#{entity.requestMethod},#{entity.timeoutPeriod},#{entity.currentLimiting},#{entity.headerIn},#{entity.queryIn},#{entity.bodyInType},#{entity.bodyIn},#{entity.bodyOut},#{entity.beanName},#{entity.returnMsg},#{entity.returnSuccessField},#{entity.returnSuccessValue},#{entity.funName},#{entity.extensionApi},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id}, (#{entity.apiStatus},#{entity.apiCode},#{entity.apiPath},#{entity.appId},#{entity.nifiApiId},#{entity.catalogueId},#{entity.apiName},#{entity.apiRemark},#{entity.needLogin},#{entity.authenticationPort},#{entity.parameterPassingMode},#{entity.destinationAddress},#{entity.requestCoding},#{entity.requestMethod},#{entity.timeoutPeriod},#{entity.currentLimiting},#{entity.headerIn},#{entity.queryIn},#{entity.bodyInType},#{entity.bodyIn},#{entity.bodyOut},#{entity.beanName},#{entity.returnMsg},#{entity.returnSuccessField},#{entity.returnSuccessValue},#{entity.funName},#{entity.extensionApi},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},
'Y') 'Y')
</foreach> </foreach>
</insert> </insert>
<!-- 批量新增或者修改--> <!-- 批量新增或者修改-->
<insert id="entityInsertOrUpdateBatch" > <insert id="entityInsertOrUpdateBatch" >
insert into sys_application_api(api_status,api_code,api_path, app_id, catalogue_id, api_name, api_remark, insert into sys_application_api(api_status,api_code,api_path, app_id,nifi_api_id, catalogue_id, api_name, api_remark,
need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method,
timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out,bean_name,return_msg,return_success_field,return_success_value,fun_name,extension_api, sorts, create_user_id, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out,bean_name,return_msg,return_success_field,return_success_value,fun_name,extension_api, sorts, create_user_id,
create_time, modify_user_id, modify_time, sts, org_id) create_time, modify_user_id, modify_time, sts, org_id)
values values
<foreach collection="entities" item="entity" separator=","> <foreach collection="entities" item="entity" separator=",">
(#{entity.apiStatus},#{entity.apiCode},#{entity.apiPath},#{entity.appId},#{entity.catalogueId},#{entity.apiName},#{entity.apiRemark},#{entity.needLogin},#{entity.authenticationPort},#{entity.parameterPassingMode},#{entity.destinationAddress},#{entity.requestCoding},#{entity.requestMethod},#{entity.timeoutPeriod},#{entity.currentLimiting},#{entity.headerIn},#{entity.queryIn},#{entity.bodyInType},#{entity.bodyIn},#{entity.bodyOut},#{entity.beanName},#{entity.returnMsg},#{entity.returnSuccessField},#{entity.returnSuccessValue},#{entity.funName},#{entity.extensionApi},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id}) (#{entity.apiStatus},#{entity.apiCode},#{entity.apiPath},#{entity.appId},#{entity.nifiApiId},#{entity.catalogueId},#{entity.apiName},#{entity.apiRemark},#{entity.needLogin},#{entity.authenticationPort},#{entity.parameterPassingMode},#{entity.destinationAddress},#{entity.requestCoding},#{entity.requestMethod},#{entity.timeoutPeriod},#{entity.currentLimiting},#{entity.headerIn},#{entity.queryIn},#{entity.bodyInType},#{entity.bodyIn},#{entity.bodyOut},#{entity.beanName},#{entity.returnMsg},#{entity.returnSuccessField},#{entity.returnSuccessValue},#{entity.funName},#{entity.extensionApi},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id})
</foreach> </foreach>
on duplicate key update on duplicate key update
api_status = values(api_status), api_status = values(api_status),
api_code = values(api_code), api_code = values(api_code),
api_path = values(api_path), api_path = values(api_path),
app_id = values(app_id), app_id = values(app_id),
nifi_api_id = values(nifi_api_id),
catalogue_id = values(catalogue_id), catalogue_id = values(catalogue_id),
api_name = values(api_name), api_name = values(api_name),
api_remark = values(api_remark), api_remark = values(api_remark),
@ -630,6 +643,7 @@ WHERE
<if test="apiCode != null ">api_code = #{apiCode},</if> <if test="apiCode != null ">api_code = #{apiCode},</if>
<if test="apiPath != null and apiPath != ''">api_path = #{apiPath},</if> <if test="apiPath != null and apiPath != ''">api_path = #{apiPath},</if>
<if test="appId != null and appId != ''">app_id = #{appId},</if> <if test="appId != null and appId != ''">app_id = #{appId},</if>
<if test="nifiApiId != null and nifiApiId != ''">nifi_api_id = #{nifiApiId},</if>
<if test="catalogueId != null and catalogueId != ''">catalogue_id = #{catalogueId},</if> <if test="catalogueId != null and catalogueId != ''">catalogue_id = #{catalogueId},</if>
<if test="apiName != null and apiName != ''">api_name = #{apiName},</if> <if test="apiName != null and apiName != ''">api_name = #{apiName},</if>
<if test="apiRemark != null and apiRemark != ''">api_remark = #{apiRemark},</if> <if test="apiRemark != null and apiRemark != ''">api_remark = #{apiRemark},</if>
@ -683,6 +697,7 @@ where id = #{id}
<if test="apiCode != null ">and api_code = #{apiCode}</if> <if test="apiCode != null ">and api_code = #{apiCode}</if>
<if test="apiPath != null and apiPath != ''">and api_path = #{apiPath}</if> <if test="apiPath != null and apiPath != ''">and api_path = #{apiPath}</if>
<if test="appId != null and appId != ''">and app_id = #{appId}</if> <if test="appId != null and appId != ''">and app_id = #{appId}</if>
<if test="nifiApiId != null and nifiApiId != ''">and nifi_api_id = #{nifiApiId}</if>
<if test="catalogueId != null and catalogueId != ''">and catalogue_id = #{catalogueId}</if> <if test="catalogueId != null and catalogueId != ''">and catalogue_id = #{catalogueId}</if>
<if test="apiName != null and apiName != ''">and api_name = #{apiName}</if> <if test="apiName != null and apiName != ''">and api_name = #{apiName}</if>
<if test="apiRemark != null and apiRemark != ''">and api_remark = #{apiRemark}</if> <if test="apiRemark != null and apiRemark != ''">and api_remark = #{apiRemark}</if>
@ -919,6 +934,7 @@ where id = #{id}
select select
id id
,app_id ,app_id
,nifi_api_id
,api_name ,api_name
from sys_application_api from sys_application_api
<trim prefix="where" prefixOverrides="and"> <trim prefix="where" prefixOverrides="and">
@ -927,6 +943,7 @@ where id = #{id}
<if test="apiCode != null ">and api_code = #{apiCode}</if> <if test="apiCode != null ">and api_code = #{apiCode}</if>
<if test="apiPath != null and apiPath != ''">and api_path = #{apiPath}</if> <if test="apiPath != null and apiPath != ''">and api_path = #{apiPath}</if>
<if test="appId != null and appId != ''">and app_id = #{appId}</if> <if test="appId != null and appId != ''">and app_id = #{appId}</if>
<if test="nifiApiId != null and nifiApiId != ''">and nifi_api_id = #{nifiApiId}</if>
<if test="catalogueId != null and catalogueId != ''">and catalogue_id = #{catalogueId}</if> <if test="catalogueId != null and catalogueId != ''">and catalogue_id = #{catalogueId}</if>
<if test="apiName != null and apiName != ''">and api_name = #{apiName}</if> <if test="apiName != null and apiName != ''">and api_name = #{apiName}</if>
<if test="apiRemark != null and apiRemark != ''">and api_remark = #{apiRemark}</if> <if test="apiRemark != null and apiRemark != ''">and api_remark = #{apiRemark}</if>