boss 2 дней назад
Родитель
Сommit
f289a76d7e

+ 4 - 1
fs-service/src/main/resources/mapper/company/LobsterSystemPromptMapper.xml

@@ -112,7 +112,10 @@
     </insert>
 
     <select id="selectByScope" resultMap="LobsterSystemPromptResult">
-        SELECT * FROM lobster_prompt_config WHERE scope = #{scope} AND company_id = #{companyId} AND deleted = 0
+        SELECT id, company_id, prompt_type AS prompt_category, content AS prompt_content,
+               workflow_code, node_code, scope, create_time, update_time
+        FROM lobster_prompt_config
+        WHERE scope = #{scope} AND company_id = #{companyId} AND deleted = 0
     </select>
 
     <select id="ensureTable" resultType="java.lang.Integer">

+ 2 - 1
fs-service/src/main/resources/mapper/company/LobsterWorkflowInstanceMapper.xml

@@ -10,6 +10,7 @@
         <result property="status" column="status"/>
         <result property="contactId" column="contact_id"/>
         <result property="contactName" column="contact_name"/>
+        <result property="channelType" column="channel_type"/>
         <result property="currentNodeIndex" column="current_node_index"/>
         <result property="currentNodeName" column="current_node_name"/>
         <result property="totalNodes" column="total_nodes"/>
@@ -32,7 +33,7 @@
 
     <sql id="selectVo">
         select id, company_id, workflow_id, instance_name, status, contact_id, contact_name,
-               current_node_index, current_node_name, total_nodes, completed_nodes,
+               channel_type, current_node_index, current_node_name, total_nodes, completed_nodes,
                context_snapshot, variables, start_time, end_time, last_activity_time,
                error_message, del_flag, control_mode, control_updated_by, control_updated_at,
                create_by, create_time, update_by, update_time