From 17887cc8dbff75c93ae3c373630a2aca6a8963b7 Mon Sep 17 00:00:00 2001 From: xiang2lin <251481237@qq.com> Date: Sun, 18 May 2025 13:50:00 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=9E=E6=8E=A5=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/ISysDictionaryshopNewService.java | 7 + .../impl/SysDictionaryshopNewServiceImpl.java | 16 +- .../flow/entity/SysFlowStepAccountEntity.java | 31 ++- .../flow/entity/SysFlowStepAccountEntity.xml | 43 +++- .../sys/flow/entity/SysFlowStepEntity.java | 22 +- .../sys/flow/entity/SysFlowStepEntity.xml | 40 +-- .../service/ISysFlowStepAccountService.java | 52 ++++ .../sys/flow/service/ISysFlowStepService.java | 38 +++ .../flow/service/impl/SysFlowServiceImpl.java | 2 +- .../impl/SysFlowStepAccountServiceImpl.java | 234 +++++++++++++++++- .../service/impl/SysFlowStepServiceImpl.java | 150 ++++++++++- .../entity/SysApplicationAccountEntity.java | 3 +- 12 files changed, 595 insertions(+), 43 deletions(-) diff --git a/base-service/src/main/java/com/hzya/frame/sys/dictionaryshopNew/service/ISysDictionaryshopNewService.java b/base-service/src/main/java/com/hzya/frame/sys/dictionaryshopNew/service/ISysDictionaryshopNewService.java index 9bc3fe1d..97c043ad 100644 --- a/base-service/src/main/java/com/hzya/frame/sys/dictionaryshopNew/service/ISysDictionaryshopNewService.java +++ b/base-service/src/main/java/com/hzya/frame/sys/dictionaryshopNew/service/ISysDictionaryshopNewService.java @@ -22,4 +22,11 @@ public interface ISysDictionaryshopNewService { * @return */ SysDictionaryshopNew getDictionaryshopByValue(String tabName, String columnName, String columnValue); + + /** + * 查询列表 + * @param object + * @return + */ + JsonResultEntity queryDictionaryList(JSONObject object); } \ No newline at end of file diff --git a/base-service/src/main/java/com/hzya/frame/sys/dictionaryshopNew/service/impl/SysDictionaryshopNewServiceImpl.java b/base-service/src/main/java/com/hzya/frame/sys/dictionaryshopNew/service/impl/SysDictionaryshopNewServiceImpl.java index 72dac9f1..9cfe01ce 100644 --- a/base-service/src/main/java/com/hzya/frame/sys/dictionaryshopNew/service/impl/SysDictionaryshopNewServiceImpl.java +++ b/base-service/src/main/java/com/hzya/frame/sys/dictionaryshopNew/service/impl/SysDictionaryshopNewServiceImpl.java @@ -1,5 +1,6 @@ package com.hzya.frame.sys.dictionaryshopNew.service.impl; +import com.alibaba.fastjson.JSONObject; import com.hzya.frame.web.entity.BaseResult; import org.springframework.stereotype.Service; import com.hzya.frame.serviceUtil.ServiceUtil; @@ -11,7 +12,7 @@ import org.slf4j.LoggerFactory; import com.hzya.frame.web.entity.JsonResultEntity; import javax.annotation.Resource; - +import java.util.List; /** @@ -49,4 +50,17 @@ public class SysDictionaryshopNewServiceImpl extends ServiceUtil implements ISy sysDictionaryshopNew.setColumnValue(columnValue); return sysdictionaryshopnewMapper.entity_get_by_value(sysDictionaryshopNew); } + + /** + * 查询列表 + * + * @param object + * @return + */ + @Override + public JsonResultEntity queryDictionaryList(JSONObject object) { + SysDictionaryshopNew dictionary = getData("jsonStr", object, SysDictionaryshopNew.class); + List dictionaryList = sysdictionaryshopnewMapper.entity_list_base(dictionary); + return BaseResult.getSuccessMessageEntity("查询列表成功", dictionaryList); + } } diff --git a/base-service/src/main/java/com/hzya/frame/sys/flow/entity/SysFlowStepAccountEntity.java b/base-service/src/main/java/com/hzya/frame/sys/flow/entity/SysFlowStepAccountEntity.java index 246f11f4..ed39095e 100644 --- a/base-service/src/main/java/com/hzya/frame/sys/flow/entity/SysFlowStepAccountEntity.java +++ b/base-service/src/main/java/com/hzya/frame/sys/flow/entity/SysFlowStepAccountEntity.java @@ -9,7 +9,13 @@ import com.hzya.frame.web.entity.BaseEntity; * @since 2025-04-29 10:16:27 */ public class SysFlowStepAccountEntity extends BaseEntity { - + + //流程id + private String flowId; + //流程步骤id + private String stepId; + //应用id + private String appId; /** 账户名称 */ private String name; /** ip地址 */ @@ -122,5 +128,28 @@ public class SysFlowStepAccountEntity extends BaseEntity { this.agentid = agentid; } + public String getFlowId() { + return flowId; + } + + public void setFlowId(String flowId) { + this.flowId = flowId; + } + + public String getStepId() { + return stepId; + } + + public void setStepId(String stepId) { + this.stepId = stepId; + } + + public String getAppId() { + return appId; + } + + public void setAppId(String appId) { + this.appId = appId; + } } diff --git a/base-service/src/main/java/com/hzya/frame/sys/flow/entity/SysFlowStepAccountEntity.xml b/base-service/src/main/java/com/hzya/frame/sys/flow/entity/SysFlowStepAccountEntity.xml index acf594f0..328b5b02 100644 --- a/base-service/src/main/java/com/hzya/frame/sys/flow/entity/SysFlowStepAccountEntity.xml +++ b/base-service/src/main/java/com/hzya/frame/sys/flow/entity/SysFlowStepAccountEntity.xml @@ -15,6 +15,9 @@ + + + @@ -35,7 +38,10 @@ ,db_name ,user_name ,password - ,db_type + ,flow_id + ,step_id + ,app_id + ,db_type ,app_key ,app_secret ,corpId @@ -59,6 +65,9 @@ and db_name = #{dbName} and user_name = #{userName} and password = #{password} + and flow_id = #{flowId} + and step_id = #{stepId} + and app_id = #{appId} and db_type = #{dbType} and app_key = #{appKey} and app_secret = #{appSecret} @@ -86,6 +95,9 @@ and db_name = #{dbName} and user_name = #{userName} and password = #{password} + and flow_id = #{flowId} + and step_id = #{stepId} + and app_id = #{appId} and db_type = #{dbType} and app_key = #{appKey} and app_secret = #{appSecret} @@ -115,6 +127,9 @@ and db_name like concat('%',#{dbName},'%') and user_name like concat('%',#{userName},'%') and password like concat('%',#{password},'%') + and flow_id like concat('%',#{flowId},'%') + and step_id like concat('%',#{stepId},'%') + and app_id like concat('%',#{appId},'%') and db_type like concat('%',#{dbType},'%') and app_key like concat('%',#{appKey},'%') and app_secret like concat('%',#{appSecret},'%') @@ -144,6 +159,9 @@ or db_name = #{dbName} or user_name = #{userName} or password = #{password} + or flow_id = #{flowId} + or step_id = #{stepId} + or app_id = #{appId} or db_type = #{dbType} or app_key = #{appKey} or app_secret = #{appSecret} @@ -171,6 +189,9 @@ db_name , user_name , password , + flow_id , + step_id , + app_id , db_type , app_key , app_secret , @@ -193,6 +214,9 @@ #{dbName} , #{userName} , #{password} , + #{flowId} , + #{stepId} , + #{appId} , #{dbType} , #{appKey} , #{appSecret} , @@ -205,18 +229,18 @@ - insert into sys_flow_step_account(create_user_id, create_time, modify_user_id, modify_time, sts, name, ip_address, port, db_name, user_name, password, db_type, app_key, app_secret, corpId, agentId, sts) + insert into sys_flow_step_account(create_user_id, create_time, modify_user_id, modify_time, sts, name, ip_address, port, db_name, user_name, password,flow_id,step_id,app_id, db_type, app_key, app_secret, corpId, agentId, sts) values - (#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.name},#{entity.ipAddress},#{entity.port},#{entity.dbName},#{entity.userName},#{entity.password},#{entity.dbType},#{entity.appKey},#{entity.appSecret},#{entity.corpid},#{entity.agentid}, 'Y') + (#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.name},#{entity.ipAddress},#{entity.port},#{entity.dbName},#{entity.userName},#{entity.password},#{entity.flowId},#{entity.stepId},#{entity.appId},#{entity.dbType},#{entity.appKey},#{entity.appSecret},#{entity.corpid},#{entity.agentid}, 'Y') - insert into sys_flow_step_account(create_user_id, create_time, modify_user_id, modify_time, sts, name, ip_address, port, db_name, user_name, password, db_type, app_key, app_secret, corpId, agentId) + insert into sys_flow_step_account(create_user_id, create_time, modify_user_id, modify_time, sts, name, ip_address, port, db_name, user_name, password,flow_id,step_id,app_id, db_type, app_key, app_secret, corpId, agentId) values - (#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.name},#{entity.ipAddress},#{entity.port},#{entity.dbName},#{entity.userName},#{entity.password},#{entity.dbType},#{entity.appKey},#{entity.appSecret},#{entity.corpid},#{entity.agentid}) + (#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.name},#{entity.ipAddress},#{entity.port},#{entity.dbName},#{entity.userName},#{entity.password},#{entity.flowId},#{entity.stepId},#{entity.appId},#{entity.dbType},#{entity.appKey},#{entity.appSecret},#{entity.corpid},#{entity.agentid}) on duplicate key update create_user_id = values(create_user_id), @@ -230,6 +254,9 @@ db_name = values(db_name), user_name = values(user_name), password = values(password), + flow_id = values(flow_id), + step_id = values(step_id), + app_id = values(app_id), db_type = values(db_type), app_key = values(app_key), app_secret = values(app_secret), @@ -250,6 +277,9 @@ update sys_flow_step_account set db_name = #{dbName}, user_name = #{userName}, password = #{password}, + flow_id = #{flowId}, + step_id = #{stepId}, + app_id = #{appId}, db_type = #{dbType}, app_key = #{appKey}, app_secret = #{appSecret}, @@ -275,6 +305,9 @@ update sys_flow_step_account set sts= 'N' ,modify_time = #{modify_time},modify_ and db_name = #{dbName} and user_name = #{userName} and password = #{password} + and flow_id = #{flowId} + and step_id = #{stepId} + and app_id = #{appId} and db_type = #{dbType} and app_key = #{appKey} and app_secret = #{appSecret} diff --git a/base-service/src/main/java/com/hzya/frame/sys/flow/entity/SysFlowStepEntity.java b/base-service/src/main/java/com/hzya/frame/sys/flow/entity/SysFlowStepEntity.java index bbef689c..bb0be1c4 100644 --- a/base-service/src/main/java/com/hzya/frame/sys/flow/entity/SysFlowStepEntity.java +++ b/base-service/src/main/java/com/hzya/frame/sys/flow/entity/SysFlowStepEntity.java @@ -32,8 +32,10 @@ public class SysFlowStepEntity extends BaseEntity { private String nifiApiId; /** nifi应用排序模式;先进先出/先进后出 */ private String sortMode; - - + //定时任务 corn表达式 + private String taskCorn; + //账户对象 + private SysFlowStepAccountEntity account; public Integer getStep() { return step; } @@ -121,5 +123,21 @@ public class SysFlowStepEntity extends BaseEntity { public void setFlowId(String flowId) { this.flowId = flowId; } + + public SysFlowStepAccountEntity getAccount() { + return account; + } + + public void setAccount(SysFlowStepAccountEntity account) { + this.account = account; + } + + public String getTaskCorn() { + return taskCorn; + } + + public void setTaskCorn(String taskCorn) { + this.taskCorn = taskCorn; + } } diff --git a/base-service/src/main/java/com/hzya/frame/sys/flow/entity/SysFlowStepEntity.xml b/base-service/src/main/java/com/hzya/frame/sys/flow/entity/SysFlowStepEntity.xml index adc6a741..1ce89b42 100644 --- a/base-service/src/main/java/com/hzya/frame/sys/flow/entity/SysFlowStepEntity.xml +++ b/base-service/src/main/java/com/hzya/frame/sys/flow/entity/SysFlowStepEntity.xml @@ -17,29 +17,31 @@ + - id - ,create_user_id - ,create_time - ,modify_user_id - ,modify_time - ,sts - ,step - ,step_type - ,flowId - ,description - ,api_name - ,action_type - ,app_id - ,api_id - ,nifi_app_id - ,nifi_api_id - ,sort_mode + id, + create_user_id, + create_time, + modify_user_id, + modify_time, + sts, + step, + step_type, + flowId, + description, + api_name, + action_type, + app_id, + api_id, + taskCorn, + nifi_app_id, + nifi_api_id, + sort_mode