zyp 2 tygodni temu
rodzic
commit
d5d8bf3462

+ 1 - 0
fs-company/src/main/java/com/fs/company/controller/companyWorkflow/CompanyWorkflowTagTemplateBindingController.java

@@ -9,6 +9,7 @@ import com.fs.company.service.ICompanyTagTemplateBindingService;
 import com.fs.framework.security.LoginUser;
 import com.fs.framework.service.TokenService;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.context.annotation.Profile;
 import org.springframework.web.bind.annotation.*;
 
 import java.util.List;

+ 1 - 0
fs-company/src/main/java/com/fs/company/controller/knowledge/AiKnowledgeBaseController.java

@@ -11,6 +11,7 @@ import com.fs.company.service.AiKnowledgeBaseService;
 import com.fs.framework.security.LoginUser;
 import com.fs.framework.service.TokenService;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.context.annotation.Profile;
 import org.springframework.web.bind.annotation.*;
 
 import java.io.Serializable;

+ 1 - 0
fs-company/src/main/java/com/fs/company/controller/knowledge/CompanyAiProviderController.java

@@ -9,6 +9,7 @@ import com.fs.company.service.llm.MultiModelRouter;
 import com.fs.framework.security.LoginUser;
 import com.fs.framework.service.TokenService;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.context.annotation.Profile;
 import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.web.bind.annotation.*;
 

+ 1 - 0
fs-company/src/main/java/com/fs/company/controller/tag/CompanyTagTemplateBindingController.java

@@ -9,6 +9,7 @@ import com.fs.company.service.ICompanyTagTemplateBindingService;
 import com.fs.framework.security.LoginUser;
 import com.fs.framework.service.TokenService;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.context.annotation.Profile;
 import org.springframework.web.bind.annotation.*;
 
 import java.util.List;

+ 1 - 0
fs-company/src/main/java/com/fs/company/controller/workflow/LobsterApiRegistryController.java

@@ -8,6 +8,7 @@ import com.fs.company.service.workflow.api.ApiRegistryService.ApiEndpoint;
 import com.fs.framework.security.LoginUser;
 import com.fs.framework.service.TokenService;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.context.annotation.Profile;
 import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.web.bind.annotation.*;
 

+ 1 - 0
fs-company/src/main/java/com/fs/company/controller/workflow/LobsterBillingController.java

@@ -7,6 +7,7 @@ import com.fs.company.service.billing.BillingService;
 import com.fs.framework.security.LoginUser;
 import com.fs.framework.service.TokenService;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.context.annotation.Profile;
 import org.springframework.jdbc.core.JdbcTemplate;
 import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.web.bind.annotation.*;

+ 1 - 0
fs-company/src/main/java/com/fs/company/controller/workflow/LobsterDeadLetterController.java

@@ -8,6 +8,7 @@ import com.fs.company.service.workflow.queue.DeadLetterQueue.DeadMessage;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.context.annotation.Profile;
 import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.web.bind.annotation.*;
 

+ 3 - 2
fs-company/src/main/java/com/fs/company/controller/workflow/LobsterEventAuditController.java

@@ -8,6 +8,7 @@ import com.fs.company.service.workflow.event.WorkflowPatcher;
 import com.fs.framework.security.LoginUser;
 import com.fs.framework.service.TokenService;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.context.annotation.Profile;
 import org.springframework.jdbc.core.JdbcTemplate;
 import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.web.bind.annotation.*;
@@ -16,10 +17,10 @@ import java.util.*;
 
 /**
  * 龙虾事件节点审核Controller
- * 
+ *
  * 表: lobster_event_node_audit
  * 页面: 节点审核 → 待审列表/通过/驳回
- * 
+ *
  * 关联: EventDecisionEngine AI决策后写入 → 运营审核通过 → WorkflowPatcher注入节点
  */
 @Profile("company")

+ 1 - 0
fs-company/src/main/java/com/fs/company/controller/workflow/LobsterOptimizationController.java

@@ -7,6 +7,7 @@ import com.fs.framework.security.LoginUser;
 import com.fs.common.utils.ServletUtils;
 import com.fs.framework.service.TokenService;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.context.annotation.Profile;
 import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.web.bind.annotation.*;
 

+ 2 - 1
fs-company/src/main/java/com/fs/company/controller/workflow/LobsterPromptController.java

@@ -7,6 +7,7 @@ import com.fs.company.service.workflow.prompt.SystemPromptService;
 import com.fs.framework.security.LoginUser;
 import com.fs.framework.service.TokenService;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.context.annotation.Profile;
 import org.springframework.jdbc.core.JdbcTemplate;
 import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.web.bind.annotation.*;
@@ -120,7 +121,7 @@ public class LobsterPromptController extends BaseController {
     @DeleteMapping("/{id}")
     public AjaxResult delete(@PathVariable Long id) {
         LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
-        jdbcTemplate.update("UPDATE " + TABLE + " SET enabled=0, update_time=NOW() WHERE id=? AND company_id=?", 
+        jdbcTemplate.update("UPDATE " + TABLE + " SET enabled=0, update_time=NOW() WHERE id=? AND company_id=?",
                 id, loginUser.getCompany().getCompanyId());
         if (promptService != null) promptService.refreshCache();
         return AjaxResult.success("删除成功");

+ 3 - 2
fs-company/src/main/java/com/fs/company/controller/workflow/LobsterSalesCorpusController.java

@@ -10,6 +10,7 @@ import com.fs.company.service.workflow.learning.SalesCorpusAnalyzer.CorpusEntry;
 import com.fs.framework.security.LoginUser;
 import com.fs.framework.service.TokenService;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.context.annotation.Profile;
 import org.springframework.jdbc.core.JdbcTemplate;
 import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.web.bind.annotation.*;
@@ -18,10 +19,10 @@ import java.util.*;
 
 /**
  * 龙虾销冠语料管理Controller
- * 
+ *
  * 表: lobster_learning_corpus
  * 页面: 销冠语料 → 录入/批量导入/AI分析/话术库查询
- * 
+ *
  * 核心价值: 租户上传销冠/金牌客服聊天话术 → AI分析提取沟通模式 → 进化引擎学习 → 全租户共享
  */
 @Profile("company")