Bläddra i källkod

第一次定稿以后的基本的增删改查处理

wangmiaomiao 10 månader sedan
förälder
incheckning
ca9e635c2c
23 ändrade filer med 1940 tillägg och 16 borttagningar
  1. 4 4
      slibra-admin/src/main/java/com/slibra/web/controller/business/GRPCController.java
  2. 106 0
      slibra-admin/src/main/java/com/slibra/web/controller/business/TXinyiAgentAssistantController.java
  3. 1 1
      slibra-admin/src/main/java/com/slibra/web/controller/business/TXinyiChatRecordController.java
  4. 106 0
      slibra-admin/src/main/java/com/slibra/web/controller/business/TXinyiRecommendQaController.java
  5. 106 0
      slibra-admin/src/main/java/com/slibra/web/controller/business/TXinyiWarningRecordController.java
  6. 139 0
      slibra-system/src/main/java/com/slibra/business/domain/TXinyiAgentAssistant.java
  7. 20 3
      slibra-system/src/main/java/com/slibra/business/domain/TXinyiChatRecord.java
  8. 111 0
      slibra-system/src/main/java/com/slibra/business/domain/TXinyiRecommendQa.java
  9. 270 0
      slibra-system/src/main/java/com/slibra/business/domain/TXinyiWarningRecord.java
  10. 61 0
      slibra-system/src/main/java/com/slibra/business/mapper/TXinyiAgentAssistantMapper.java
  11. 61 0
      slibra-system/src/main/java/com/slibra/business/mapper/TXinyiRecommendQaMapper.java
  12. 61 0
      slibra-system/src/main/java/com/slibra/business/mapper/TXinyiWarningRecordMapper.java
  13. 27 0
      slibra-system/src/main/java/com/slibra/business/req/ChatReq.java
  14. 61 0
      slibra-system/src/main/java/com/slibra/business/service/ITXinyiAgentAssistantService.java
  15. 61 0
      slibra-system/src/main/java/com/slibra/business/service/ITXinyiRecommendQaService.java
  16. 61 0
      slibra-system/src/main/java/com/slibra/business/service/ITXinyiWarningRecordService.java
  17. 96 0
      slibra-system/src/main/java/com/slibra/business/service/impl/TXinyiAgentAssistantServiceImpl.java
  18. 96 0
      slibra-system/src/main/java/com/slibra/business/service/impl/TXinyiRecommendQaServiceImpl.java
  19. 96 0
      slibra-system/src/main/java/com/slibra/business/service/impl/TXinyiWarningRecordServiceImpl.java
  20. 110 0
      slibra-system/src/main/resources/mapper/business/TXinyiAgentAssistantMapper.xml
  21. 31 8
      slibra-system/src/main/resources/mapper/business/TXinyiChatRecordMapper.xml
  22. 100 0
      slibra-system/src/main/resources/mapper/business/TXinyiRecommendQaMapper.xml
  23. 155 0
      slibra-system/src/main/resources/mapper/business/TXinyiWarningRecordMapper.xml

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 4 - 4
slibra-admin/src/main/java/com/slibra/web/controller/business/GRPCController.java


+ 106 - 0
slibra-admin/src/main/java/com/slibra/web/controller/business/TXinyiAgentAssistantController.java

@@ -0,0 +1,106 @@
+package com.slibra.web.controller.business;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.slibra.common.annotation.Log;
+import com.slibra.common.core.controller.BaseController;
+import com.slibra.common.core.domain.AjaxResult;
+import com.slibra.common.enums.BusinessType;
+import com.slibra.business.domain.TXinyiAgentAssistant;
+import com.slibra.business.service.ITXinyiAgentAssistantService;
+import com.slibra.common.utils.poi.ExcelUtil;
+import com.slibra.common.core.page.TableDataInfo;
+
+/**
+ * 信义智能体助手配置Controller
+ * 
+ * @author slibra
+ * @date 2024-05-17
+ */
+@RestController
+@RequestMapping("/business/assistant")
+public class TXinyiAgentAssistantController extends BaseController
+{
+    @Autowired
+    private ITXinyiAgentAssistantService tXinyiAgentAssistantService;
+
+    /**
+     * 查询信义智能体助手配置列表
+     */
+    @PreAuthorize("@ss.hasPermi('business:assistant:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(TXinyiAgentAssistant tXinyiAgentAssistant)
+    {
+        startPage();
+        List<TXinyiAgentAssistant> list = tXinyiAgentAssistantService.selectTXinyiAgentAssistantList(tXinyiAgentAssistant);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出信义智能体助手配置列表
+     */
+    @PreAuthorize("@ss.hasPermi('business:assistant:export')")
+    @Log(title = "信义智能体助手配置", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, TXinyiAgentAssistant tXinyiAgentAssistant)
+    {
+        List<TXinyiAgentAssistant> list = tXinyiAgentAssistantService.selectTXinyiAgentAssistantList(tXinyiAgentAssistant);
+        ExcelUtil<TXinyiAgentAssistant> util = new ExcelUtil<TXinyiAgentAssistant>(TXinyiAgentAssistant.class);
+        util.exportExcel(response, list, "信义智能体助手配置数据");
+    }
+
+    /**
+     * 获取信义智能体助手配置详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('business:assistant:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(tXinyiAgentAssistantService.selectTXinyiAgentAssistantById(id));
+    }
+
+    /**
+     * 新增信义智能体助手配置
+     */
+    @PreAuthorize("@ss.hasPermi('business:assistant:add')")
+    @Log(title = "信义智能体助手配置", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody TXinyiAgentAssistant tXinyiAgentAssistant)
+    {
+        tXinyiAgentAssistant.setCreateBy(getUsername());
+        return toAjax(tXinyiAgentAssistantService.insertTXinyiAgentAssistant(tXinyiAgentAssistant));
+    }
+
+    /**
+     * 修改信义智能体助手配置
+     */
+    @PreAuthorize("@ss.hasPermi('business:assistant:edit')")
+    @Log(title = "信义智能体助手配置", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody TXinyiAgentAssistant tXinyiAgentAssistant)
+    {
+        tXinyiAgentAssistant.setUpdateBy(getUsername());
+        return toAjax(tXinyiAgentAssistantService.updateTXinyiAgentAssistant(tXinyiAgentAssistant));
+    }
+
+    /**
+     * 删除信义智能体助手配置
+     */
+    @PreAuthorize("@ss.hasPermi('business:assistant:remove')")
+    @Log(title = "信义智能体助手配置", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(tXinyiAgentAssistantService.deleteTXinyiAgentAssistantByIds(ids));
+    }
+}

+ 1 - 1
slibra-admin/src/main/java/com/slibra/web/controller/business/TXinyiChatRecordController.java

@@ -28,7 +28,7 @@ import com.slibra.common.core.page.TableDataInfo;
  * @date 2024-05-15
  * @date 2024-05-15
  */
  */
 @RestController
 @RestController
-@RequestMapping("/business/record")
+@RequestMapping("/business/chatRecord")
 public class TXinyiChatRecordController extends BaseController
 public class TXinyiChatRecordController extends BaseController
 {
 {
     @Autowired
     @Autowired

+ 106 - 0
slibra-admin/src/main/java/com/slibra/web/controller/business/TXinyiRecommendQaController.java

@@ -0,0 +1,106 @@
+package com.slibra.web.controller.business;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.slibra.common.annotation.Log;
+import com.slibra.common.core.controller.BaseController;
+import com.slibra.common.core.domain.AjaxResult;
+import com.slibra.common.enums.BusinessType;
+import com.slibra.business.domain.TXinyiRecommendQa;
+import com.slibra.business.service.ITXinyiRecommendQaService;
+import com.slibra.common.utils.poi.ExcelUtil;
+import com.slibra.common.core.page.TableDataInfo;
+
+/**
+ * 信义推荐问答列Controller
+ * 
+ * @author slibra
+ * @date 2024-05-17
+ */
+@RestController
+@RequestMapping("/business/qa")
+public class TXinyiRecommendQaController extends BaseController
+{
+    @Autowired
+    private ITXinyiRecommendQaService tXinyiRecommendQaService;
+
+    /**
+     * 查询信义推荐问答列列表
+     */
+    @PreAuthorize("@ss.hasPermi('business:qa:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(TXinyiRecommendQa tXinyiRecommendQa)
+    {
+        startPage();
+        List<TXinyiRecommendQa> list = tXinyiRecommendQaService.selectTXinyiRecommendQaList(tXinyiRecommendQa);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出信义推荐问答列列表
+     */
+    @PreAuthorize("@ss.hasPermi('business:qa:export')")
+    @Log(title = "信义推荐问答列", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, TXinyiRecommendQa tXinyiRecommendQa)
+    {
+        List<TXinyiRecommendQa> list = tXinyiRecommendQaService.selectTXinyiRecommendQaList(tXinyiRecommendQa);
+        ExcelUtil<TXinyiRecommendQa> util = new ExcelUtil<TXinyiRecommendQa>(TXinyiRecommendQa.class);
+        util.exportExcel(response, list, "信义推荐问答列数据");
+    }
+
+    /**
+     * 获取信义推荐问答列详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('business:qa:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(tXinyiRecommendQaService.selectTXinyiRecommendQaById(id));
+    }
+
+    /**
+     * 新增信义推荐问答列
+     */
+    @PreAuthorize("@ss.hasPermi('business:qa:add')")
+    @Log(title = "信义推荐问答列", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody TXinyiRecommendQa tXinyiRecommendQa)
+    {
+        tXinyiRecommendQa.setCreateBy(getUsername());
+        return toAjax(tXinyiRecommendQaService.insertTXinyiRecommendQa(tXinyiRecommendQa));
+    }
+
+    /**
+     * 修改信义推荐问答列
+     */
+    @PreAuthorize("@ss.hasPermi('business:qa:edit')")
+    @Log(title = "信义推荐问答列", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody TXinyiRecommendQa tXinyiRecommendQa)
+    {
+        tXinyiRecommendQa.setUpdateBy(getUsername());
+        return toAjax(tXinyiRecommendQaService.updateTXinyiRecommendQa(tXinyiRecommendQa));
+    }
+
+    /**
+     * 删除信义推荐问答列
+     */
+    @PreAuthorize("@ss.hasPermi('business:qa:remove')")
+    @Log(title = "信义推荐问答列", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(tXinyiRecommendQaService.deleteTXinyiRecommendQaByIds(ids));
+    }
+}

+ 106 - 0
slibra-admin/src/main/java/com/slibra/web/controller/business/TXinyiWarningRecordController.java

@@ -0,0 +1,106 @@
+package com.slibra.web.controller.business;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.slibra.common.annotation.Log;
+import com.slibra.common.core.controller.BaseController;
+import com.slibra.common.core.domain.AjaxResult;
+import com.slibra.common.enums.BusinessType;
+import com.slibra.business.domain.TXinyiWarningRecord;
+import com.slibra.business.service.ITXinyiWarningRecordService;
+import com.slibra.common.utils.poi.ExcelUtil;
+import com.slibra.common.core.page.TableDataInfo;
+
+/**
+ * 信义告警记录Controller
+ * 
+ * @author slibra
+ * @date 2024-05-17
+ */
+@RestController
+@RequestMapping("/business/record")
+public class TXinyiWarningRecordController extends BaseController
+{
+    @Autowired
+    private ITXinyiWarningRecordService tXinyiWarningRecordService;
+
+    /**
+     * 查询信义告警记录列表
+     */
+    @PreAuthorize("@ss.hasPermi('business:record:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(TXinyiWarningRecord tXinyiWarningRecord)
+    {
+        startPage();
+        List<TXinyiWarningRecord> list = tXinyiWarningRecordService.selectTXinyiWarningRecordList(tXinyiWarningRecord);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出信义告警记录列表
+     */
+    @PreAuthorize("@ss.hasPermi('business:record:export')")
+    @Log(title = "信义告警记录", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, TXinyiWarningRecord tXinyiWarningRecord)
+    {
+        List<TXinyiWarningRecord> list = tXinyiWarningRecordService.selectTXinyiWarningRecordList(tXinyiWarningRecord);
+        ExcelUtil<TXinyiWarningRecord> util = new ExcelUtil<TXinyiWarningRecord>(TXinyiWarningRecord.class);
+        util.exportExcel(response, list, "信义告警记录数据");
+    }
+
+    /**
+     * 获取信义告警记录详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('business:record:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(tXinyiWarningRecordService.selectTXinyiWarningRecordById(id));
+    }
+
+    /**
+     * 新增信义告警记录
+     */
+    @PreAuthorize("@ss.hasPermi('business:record:add')")
+    @Log(title = "信义告警记录", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody TXinyiWarningRecord tXinyiWarningRecord)
+    {
+        tXinyiWarningRecord.setCreateBy(getUsername());
+        return toAjax(tXinyiWarningRecordService.insertTXinyiWarningRecord(tXinyiWarningRecord));
+    }
+
+    /**
+     * 修改信义告警记录
+     */
+    @PreAuthorize("@ss.hasPermi('business:record:edit')")
+    @Log(title = "信义告警记录", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody TXinyiWarningRecord tXinyiWarningRecord)
+    {
+        tXinyiWarningRecord.setUpdateBy(getUsername());
+        return toAjax(tXinyiWarningRecordService.updateTXinyiWarningRecord(tXinyiWarningRecord));
+    }
+
+    /**
+     * 删除信义告警记录
+     */
+    @PreAuthorize("@ss.hasPermi('business:record:remove')")
+    @Log(title = "信义告警记录", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(tXinyiWarningRecordService.deleteTXinyiWarningRecordByIds(ids));
+    }
+}

+ 139 - 0
slibra-system/src/main/java/com/slibra/business/domain/TXinyiAgentAssistant.java

@@ -0,0 +1,139 @@
+package com.slibra.business.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.slibra.common.annotation.Excel;
+import com.slibra.common.core.domain.BaseEntity;
+
+/**
+ * 信义智能体助手配置对象 t_xinyi_agent_assistant
+ * 
+ * @author slibra
+ * @date 2024-05-17
+ */
+public class TXinyiAgentAssistant extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 主键 */
+    private Long id;
+
+    /** 分类(写报告 日常生活 工作文案) */
+    @Excel(name = "分类", readConverterExp = "写=报告,日=常生活,工=作文案")
+    private String category;
+
+    /** 标题 */
+    @Excel(name = "标题")
+    private String title;
+
+    /** 提示词内容 */
+    @Excel(name = "提示词内容")
+    private String content;
+
+    /** banner地址 */
+    @Excel(name = "banner地址")
+    private String banner;
+
+    /** 排序(按升序排列) */
+    @Excel(name = "排序", readConverterExp = "按=升序排列")
+    private String sort;
+
+    /** 删除标志(0代表存在 2代表删除) */
+    private Long delFlag;
+
+    /** 乐观锁 */
+    @Excel(name = "乐观锁")
+    private Long revision;
+
+    public void setId(Long id) 
+    {
+        this.id = id;
+    }
+
+    public Long getId() 
+    {
+        return id;
+    }
+    public void setCategory(String category) 
+    {
+        this.category = category;
+    }
+
+    public String getCategory() 
+    {
+        return category;
+    }
+    public void setTitle(String title) 
+    {
+        this.title = title;
+    }
+
+    public String getTitle() 
+    {
+        return title;
+    }
+    public void setContent(String content) 
+    {
+        this.content = content;
+    }
+
+    public String getContent() 
+    {
+        return content;
+    }
+    public void setBanner(String banner) 
+    {
+        this.banner = banner;
+    }
+
+    public String getBanner() 
+    {
+        return banner;
+    }
+    public void setSort(String sort) 
+    {
+        this.sort = sort;
+    }
+
+    public String getSort() 
+    {
+        return sort;
+    }
+    public void setDelFlag(Long delFlag) 
+    {
+        this.delFlag = delFlag;
+    }
+
+    public Long getDelFlag() 
+    {
+        return delFlag;
+    }
+    public void setRevision(Long revision) 
+    {
+        this.revision = revision;
+    }
+
+    public Long getRevision() 
+    {
+        return revision;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("category", getCategory())
+            .append("title", getTitle())
+            .append("content", getContent())
+            .append("banner", getBanner())
+            .append("sort", getSort())
+            .append("delFlag", getDelFlag())
+            .append("revision", getRevision())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .append("remark", getRemark())
+            .toString();
+    }
+}

+ 20 - 3
slibra-system/src/main/java/com/slibra/business/domain/TXinyiChatRecord.java

@@ -30,8 +30,8 @@ public class TXinyiChatRecord extends BaseEntity
     @Excel(name = "会话ID")
     @Excel(name = "会话ID")
     private String sessionId;
     private String sessionId;
 
 
-    /** 类型(0普通问答 1rag问答 2决策) */
-    @Excel(name = "类型", readConverterExp = "0=普通问答,1=rag问答,2=决策")
+    /** 类型(0问答 1决策) */
+    @Excel(name = "类型", readConverterExp = "0=问答,1=决策")
     private Long type;
     private Long type;
 
 
     /** 隶属哪个模块(0专家问答 1智能工单 2智能体助手) */
     /** 隶属哪个模块(0专家问答 1智能工单 2智能体助手) */
@@ -42,9 +42,13 @@ public class TXinyiChatRecord extends BaseEntity
     @Excel(name = "用户ID")
     @Excel(name = "用户ID")
     private String userId;
     private String userId;
 
 
+    /** 显示内容(JSON) */
+    @Excel(name = "显示内容", readConverterExp = "J=SON")
+    private String showVal;
+
     /** 用户提问 */
     /** 用户提问 */
     @Excel(name = "用户提问")
     @Excel(name = "用户提问")
-    private String ask;
+    private String question;
 
 
     /** 大模型回答 */
     /** 大模型回答 */
     @Excel(name = "大模型回答")
     @Excel(name = "大模型回答")
@@ -58,6 +62,18 @@ public class TXinyiChatRecord extends BaseEntity
     @Excel(name = "问答次数")
     @Excel(name = "问答次数")
     private Long counts;
     private Long counts;
 
 
+    /** 是否使用搜索增强(0否 1是) */
+    @Excel(name = "是否使用搜索增强", readConverterExp = "0=否,1=是")
+    private String isStrong;
+
+    /** 回复是否满意(0否 1是) */
+    @Excel(name = "回复是否满意", readConverterExp = "0=否,1=是")
+    private String isSatisfied;
+
+    /** 是否中断问答(0否 1是) */
+    @Excel(name = "是否中断问答", readConverterExp = "0=否,1=是")
+    private String isShutdown;
+
     /** 删除标志(0代表存在 2代表删除) */
     /** 删除标志(0代表存在 2代表删除) */
     private Long delFlag;
     private Long delFlag;
 
 
@@ -65,4 +81,5 @@ public class TXinyiChatRecord extends BaseEntity
     @Excel(name = "乐观锁")
     @Excel(name = "乐观锁")
     private Long revision;
     private Long revision;
 
 
+
 }
 }

+ 111 - 0
slibra-system/src/main/java/com/slibra/business/domain/TXinyiRecommendQa.java

@@ -0,0 +1,111 @@
+package com.slibra.business.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.slibra.common.annotation.Excel;
+import com.slibra.common.core.domain.BaseEntity;
+
+/**
+ * 信义推荐问答列对象 t_xinyi_recommend_qa
+ * 
+ * @author slibra
+ * @date 2024-05-17
+ */
+public class TXinyiRecommendQa extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 主键 */
+    private Long id;
+
+    /** 类型(0专家问答 1水质报警  2生化报警 3预测预警 ) */
+    @Excel(name = "类型(0专家问答 1水质报警  2生化报警 3预测预警 )")
+    private Long type;
+
+    /** 问题 */
+    @Excel(name = "问题")
+    private String question;
+
+    /** 排序(升序排列) */
+    @Excel(name = "排序", readConverterExp = "升=序排列")
+    private String sort;
+
+    /** 删除标志(0代表存在 2代表删除) */
+    private Long delFlag;
+
+    /** 乐观锁 */
+    @Excel(name = "乐观锁")
+    private Long revision;
+
+    public void setId(Long id) 
+    {
+        this.id = id;
+    }
+
+    public Long getId() 
+    {
+        return id;
+    }
+    public void setType(Long type) 
+    {
+        this.type = type;
+    }
+
+    public Long getType() 
+    {
+        return type;
+    }
+    public void setQuestion(String question) 
+    {
+        this.question = question;
+    }
+
+    public String getQuestion() 
+    {
+        return question;
+    }
+    public void setSort(String sort) 
+    {
+        this.sort = sort;
+    }
+
+    public String getSort() 
+    {
+        return sort;
+    }
+    public void setDelFlag(Long delFlag) 
+    {
+        this.delFlag = delFlag;
+    }
+
+    public Long getDelFlag() 
+    {
+        return delFlag;
+    }
+    public void setRevision(Long revision) 
+    {
+        this.revision = revision;
+    }
+
+    public Long getRevision() 
+    {
+        return revision;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("type", getType())
+            .append("question", getQuestion())
+            .append("sort", getSort())
+            .append("delFlag", getDelFlag())
+            .append("revision", getRevision())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .append("remark", getRemark())
+            .toString();
+    }
+}

+ 270 - 0
slibra-system/src/main/java/com/slibra/business/domain/TXinyiWarningRecord.java

@@ -0,0 +1,270 @@
+package com.slibra.business.domain;
+
+import java.math.BigDecimal;
+import java.util.Date;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.slibra.common.annotation.Excel;
+import com.slibra.common.core.domain.BaseEntity;
+
+/**
+ * 信义告警记录对象 t_xinyi_warning_record
+ * 
+ * @author slibra
+ * @date 2024-05-17
+ */
+public class TXinyiWarningRecord extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 主键 */
+    private Long id;
+
+    /** 类型(0水质报警  1生化报警 2预测报警) */
+    @Excel(name = "类型", readConverterExp = "0=水质报警,1=生化报警,2=预测报警")
+    private Long type;
+
+    /** 报警指标(存储字符串) */
+    @Excel(name = "报警指标", readConverterExp = "存=储字符串")
+    private String category;
+
+    /** 发生时间/预计超标时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @Excel(name = "发生时间/预计超标时间", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date time;
+
+    /** 报警原因 */
+    @Excel(name = "报警原因")
+    private String reason;
+
+    /** 报警值 */
+    @Excel(name = "报警值")
+    private BigDecimal warningVal;
+
+    /** 设计值 */
+    @Excel(name = "设计值")
+    private BigDecimal designVal;
+
+    /** 预测值 */
+    @Excel(name = "预测值")
+    private BigDecimal forecastVal;
+
+    /** 报警级别 */
+    @Excel(name = "报警级别")
+    private String level;
+
+    /** 报警状态(告警:0报警中 1用户关闭 2系统自动关闭 3用户转为应急处理中  预警:0预警中 1已完成) */
+    @Excel(name = "报警状态", readConverterExp = "告=警:0报警中,1=用户关闭,2=系统自动关闭,3=用户转为应急处理中,预=警:0预警中,1=已完成")
+    private Long status;
+
+    /** 是否转为了应急(0否  1是) */
+    @Excel(name = "是否转为了应急", readConverterExp = "0=否,1=是")
+    private String isEmergency;
+
+    /** 关闭报警时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @Excel(name = "关闭报警时间", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date offTime;
+
+    /** 操作人 */
+    @Excel(name = "操作人")
+    private String operator;
+
+    /** 复盘档案/应急方案Excel的URL */
+    @Excel(name = "复盘档案/应急方案Excel的URL")
+    private String review;
+
+    /** 是否使用了大模型推送的决策方案(0否 1是) */
+    @Excel(name = "是否使用了大模型推送的决策方案", readConverterExp = "0=否,1=是")
+    private Long useRecommend;
+
+    /** 删除标志(0代表存在 2代表删除) */
+    private Long delFlag;
+
+    /** 乐观锁 */
+    @Excel(name = "乐观锁")
+    private Long revision;
+
+    public void setId(Long id) 
+    {
+        this.id = id;
+    }
+
+    public Long getId() 
+    {
+        return id;
+    }
+    public void setType(Long type) 
+    {
+        this.type = type;
+    }
+
+    public Long getType() 
+    {
+        return type;
+    }
+    public void setCategory(String category) 
+    {
+        this.category = category;
+    }
+
+    public String getCategory() 
+    {
+        return category;
+    }
+    public void setTime(Date time) 
+    {
+        this.time = time;
+    }
+
+    public Date getTime() 
+    {
+        return time;
+    }
+    public void setReason(String reason) 
+    {
+        this.reason = reason;
+    }
+
+    public String getReason() 
+    {
+        return reason;
+    }
+    public void setWarningVal(BigDecimal warningVal) 
+    {
+        this.warningVal = warningVal;
+    }
+
+    public BigDecimal getWarningVal() 
+    {
+        return warningVal;
+    }
+    public void setDesignVal(BigDecimal designVal) 
+    {
+        this.designVal = designVal;
+    }
+
+    public BigDecimal getDesignVal() 
+    {
+        return designVal;
+    }
+    public void setForecastVal(BigDecimal forecastVal) 
+    {
+        this.forecastVal = forecastVal;
+    }
+
+    public BigDecimal getForecastVal() 
+    {
+        return forecastVal;
+    }
+    public void setLevel(String level) 
+    {
+        this.level = level;
+    }
+
+    public String getLevel() 
+    {
+        return level;
+    }
+    public void setStatus(Long status) 
+    {
+        this.status = status;
+    }
+
+    public Long getStatus() 
+    {
+        return status;
+    }
+    public void setIsEmergency(String isEmergency) 
+    {
+        this.isEmergency = isEmergency;
+    }
+
+    public String getIsEmergency() 
+    {
+        return isEmergency;
+    }
+    public void setOffTime(Date offTime) 
+    {
+        this.offTime = offTime;
+    }
+
+    public Date getOffTime() 
+    {
+        return offTime;
+    }
+    public void setOperator(String operator) 
+    {
+        this.operator = operator;
+    }
+
+    public String getOperator() 
+    {
+        return operator;
+    }
+    public void setReview(String review) 
+    {
+        this.review = review;
+    }
+
+    public String getReview() 
+    {
+        return review;
+    }
+    public void setUseRecommend(Long useRecommend) 
+    {
+        this.useRecommend = useRecommend;
+    }
+
+    public Long getUseRecommend() 
+    {
+        return useRecommend;
+    }
+    public void setDelFlag(Long delFlag) 
+    {
+        this.delFlag = delFlag;
+    }
+
+    public Long getDelFlag() 
+    {
+        return delFlag;
+    }
+    public void setRevision(Long revision) 
+    {
+        this.revision = revision;
+    }
+
+    public Long getRevision() 
+    {
+        return revision;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("type", getType())
+            .append("category", getCategory())
+            .append("time", getTime())
+            .append("reason", getReason())
+            .append("warningVal", getWarningVal())
+            .append("designVal", getDesignVal())
+            .append("forecastVal", getForecastVal())
+            .append("level", getLevel())
+            .append("status", getStatus())
+            .append("isEmergency", getIsEmergency())
+            .append("offTime", getOffTime())
+            .append("operator", getOperator())
+            .append("review", getReview())
+            .append("useRecommend", getUseRecommend())
+            .append("delFlag", getDelFlag())
+            .append("revision", getRevision())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .append("remark", getRemark())
+            .toString();
+    }
+}

+ 61 - 0
slibra-system/src/main/java/com/slibra/business/mapper/TXinyiAgentAssistantMapper.java

@@ -0,0 +1,61 @@
+package com.slibra.business.mapper;
+
+import java.util.List;
+import com.slibra.business.domain.TXinyiAgentAssistant;
+
+/**
+ * 信义智能体助手配置Mapper接口
+ * 
+ * @author slibra
+ * @date 2024-05-17
+ */
+public interface TXinyiAgentAssistantMapper 
+{
+    /**
+     * 查询信义智能体助手配置
+     * 
+     * @param id 信义智能体助手配置主键
+     * @return 信义智能体助手配置
+     */
+    public TXinyiAgentAssistant selectTXinyiAgentAssistantById(Long id);
+
+    /**
+     * 查询信义智能体助手配置列表
+     * 
+     * @param tXinyiAgentAssistant 信义智能体助手配置
+     * @return 信义智能体助手配置集合
+     */
+    public List<TXinyiAgentAssistant> selectTXinyiAgentAssistantList(TXinyiAgentAssistant tXinyiAgentAssistant);
+
+    /**
+     * 新增信义智能体助手配置
+     * 
+     * @param tXinyiAgentAssistant 信义智能体助手配置
+     * @return 结果
+     */
+    public int insertTXinyiAgentAssistant(TXinyiAgentAssistant tXinyiAgentAssistant);
+
+    /**
+     * 修改信义智能体助手配置
+     * 
+     * @param tXinyiAgentAssistant 信义智能体助手配置
+     * @return 结果
+     */
+    public int updateTXinyiAgentAssistant(TXinyiAgentAssistant tXinyiAgentAssistant);
+
+    /**
+     * 删除信义智能体助手配置
+     * 
+     * @param id 信义智能体助手配置主键
+     * @return 结果
+     */
+    public int deleteTXinyiAgentAssistantById(Long id);
+
+    /**
+     * 批量删除信义智能体助手配置
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteTXinyiAgentAssistantByIds(Long[] ids);
+}

+ 61 - 0
slibra-system/src/main/java/com/slibra/business/mapper/TXinyiRecommendQaMapper.java

@@ -0,0 +1,61 @@
+package com.slibra.business.mapper;
+
+import java.util.List;
+import com.slibra.business.domain.TXinyiRecommendQa;
+
+/**
+ * 信义推荐问答列Mapper接口
+ * 
+ * @author slibra
+ * @date 2024-05-17
+ */
+public interface TXinyiRecommendQaMapper 
+{
+    /**
+     * 查询信义推荐问答列
+     * 
+     * @param id 信义推荐问答列主键
+     * @return 信义推荐问答列
+     */
+    public TXinyiRecommendQa selectTXinyiRecommendQaById(Long id);
+
+    /**
+     * 查询信义推荐问答列列表
+     * 
+     * @param tXinyiRecommendQa 信义推荐问答列
+     * @return 信义推荐问答列集合
+     */
+    public List<TXinyiRecommendQa> selectTXinyiRecommendQaList(TXinyiRecommendQa tXinyiRecommendQa);
+
+    /**
+     * 新增信义推荐问答列
+     * 
+     * @param tXinyiRecommendQa 信义推荐问答列
+     * @return 结果
+     */
+    public int insertTXinyiRecommendQa(TXinyiRecommendQa tXinyiRecommendQa);
+
+    /**
+     * 修改信义推荐问答列
+     * 
+     * @param tXinyiRecommendQa 信义推荐问答列
+     * @return 结果
+     */
+    public int updateTXinyiRecommendQa(TXinyiRecommendQa tXinyiRecommendQa);
+
+    /**
+     * 删除信义推荐问答列
+     * 
+     * @param id 信义推荐问答列主键
+     * @return 结果
+     */
+    public int deleteTXinyiRecommendQaById(Long id);
+
+    /**
+     * 批量删除信义推荐问答列
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteTXinyiRecommendQaByIds(Long[] ids);
+}

+ 61 - 0
slibra-system/src/main/java/com/slibra/business/mapper/TXinyiWarningRecordMapper.java

@@ -0,0 +1,61 @@
+package com.slibra.business.mapper;
+
+import java.util.List;
+import com.slibra.business.domain.TXinyiWarningRecord;
+
+/**
+ * 信义告警记录Mapper接口
+ * 
+ * @author slibra
+ * @date 2024-05-17
+ */
+public interface TXinyiWarningRecordMapper 
+{
+    /**
+     * 查询信义告警记录
+     * 
+     * @param id 信义告警记录主键
+     * @return 信义告警记录
+     */
+    public TXinyiWarningRecord selectTXinyiWarningRecordById(Long id);
+
+    /**
+     * 查询信义告警记录列表
+     * 
+     * @param tXinyiWarningRecord 信义告警记录
+     * @return 信义告警记录集合
+     */
+    public List<TXinyiWarningRecord> selectTXinyiWarningRecordList(TXinyiWarningRecord tXinyiWarningRecord);
+
+    /**
+     * 新增信义告警记录
+     * 
+     * @param tXinyiWarningRecord 信义告警记录
+     * @return 结果
+     */
+    public int insertTXinyiWarningRecord(TXinyiWarningRecord tXinyiWarningRecord);
+
+    /**
+     * 修改信义告警记录
+     * 
+     * @param tXinyiWarningRecord 信义告警记录
+     * @return 结果
+     */
+    public int updateTXinyiWarningRecord(TXinyiWarningRecord tXinyiWarningRecord);
+
+    /**
+     * 删除信义告警记录
+     * 
+     * @param id 信义告警记录主键
+     * @return 结果
+     */
+    public int deleteTXinyiWarningRecordById(Long id);
+
+    /**
+     * 批量删除信义告警记录
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteTXinyiWarningRecordByIds(Long[] ids);
+}

+ 27 - 0
slibra-system/src/main/java/com/slibra/business/req/ChatReq.java

@@ -1,6 +1,7 @@
 package com.slibra.business.req;
 package com.slibra.business.req;
 
 
 import com.slibra.business.domain.TXinyiChatRecord;
 import com.slibra.business.domain.TXinyiChatRecord;
+import com.slibra.common.annotation.Excel;
 import lombok.AllArgsConstructor;
 import lombok.AllArgsConstructor;
 import lombok.Builder;
 import lombok.Builder;
 import lombok.Data;
 import lombok.Data;
@@ -8,4 +9,30 @@ import lombok.NoArgsConstructor;
 
 
 public class ChatReq extends TXinyiChatRecord {
 public class ChatReq extends TXinyiChatRecord {
 
 
+
+    //决策里是否携带alert的
+    private String feedback = "{}";
+
+    /** 告警记录ID */
+    @Excel(name = "告警记录ID")
+    private String warningId;
+
+
+    public String getFeedback() {
+        return feedback;
+    }
+
+    public void setFeedback(String feedback) {
+        this.feedback = feedback;
+    }
+
+    @Override
+    public String getWarningId() {
+        return warningId;
+    }
+
+    @Override
+    public void setWarningId(String warningId) {
+        this.warningId = warningId;
+    }
 }
 }

+ 61 - 0
slibra-system/src/main/java/com/slibra/business/service/ITXinyiAgentAssistantService.java

@@ -0,0 +1,61 @@
+package com.slibra.business.service;
+
+import java.util.List;
+import com.slibra.business.domain.TXinyiAgentAssistant;
+
+/**
+ * 信义智能体助手配置Service接口
+ * 
+ * @author slibra
+ * @date 2024-05-17
+ */
+public interface ITXinyiAgentAssistantService 
+{
+    /**
+     * 查询信义智能体助手配置
+     * 
+     * @param id 信义智能体助手配置主键
+     * @return 信义智能体助手配置
+     */
+    public TXinyiAgentAssistant selectTXinyiAgentAssistantById(Long id);
+
+    /**
+     * 查询信义智能体助手配置列表
+     * 
+     * @param tXinyiAgentAssistant 信义智能体助手配置
+     * @return 信义智能体助手配置集合
+     */
+    public List<TXinyiAgentAssistant> selectTXinyiAgentAssistantList(TXinyiAgentAssistant tXinyiAgentAssistant);
+
+    /**
+     * 新增信义智能体助手配置
+     * 
+     * @param tXinyiAgentAssistant 信义智能体助手配置
+     * @return 结果
+     */
+    public int insertTXinyiAgentAssistant(TXinyiAgentAssistant tXinyiAgentAssistant);
+
+    /**
+     * 修改信义智能体助手配置
+     * 
+     * @param tXinyiAgentAssistant 信义智能体助手配置
+     * @return 结果
+     */
+    public int updateTXinyiAgentAssistant(TXinyiAgentAssistant tXinyiAgentAssistant);
+
+    /**
+     * 批量删除信义智能体助手配置
+     * 
+     * @param ids 需要删除的信义智能体助手配置主键集合
+     * @return 结果
+     */
+    public int deleteTXinyiAgentAssistantByIds(Long[] ids);
+
+    /**
+     * 删除信义智能体助手配置信息
+     * 
+     * @param id 信义智能体助手配置主键
+     * @return 结果
+     */
+    public int deleteTXinyiAgentAssistantById(Long id);
+}

+ 61 - 0
slibra-system/src/main/java/com/slibra/business/service/ITXinyiRecommendQaService.java

@@ -0,0 +1,61 @@
+package com.slibra.business.service;
+
+import java.util.List;
+import com.slibra.business.domain.TXinyiRecommendQa;
+
+/**
+ * 信义推荐问答列Service接口
+ * 
+ * @author slibra
+ * @date 2024-05-17
+ */
+public interface ITXinyiRecommendQaService 
+{
+    /**
+     * 查询信义推荐问答列
+     * 
+     * @param id 信义推荐问答列主键
+     * @return 信义推荐问答列
+     */
+    public TXinyiRecommendQa selectTXinyiRecommendQaById(Long id);
+
+    /**
+     * 查询信义推荐问答列列表
+     * 
+     * @param tXinyiRecommendQa 信义推荐问答列
+     * @return 信义推荐问答列集合
+     */
+    public List<TXinyiRecommendQa> selectTXinyiRecommendQaList(TXinyiRecommendQa tXinyiRecommendQa);
+
+    /**
+     * 新增信义推荐问答列
+     * 
+     * @param tXinyiRecommendQa 信义推荐问答列
+     * @return 结果
+     */
+    public int insertTXinyiRecommendQa(TXinyiRecommendQa tXinyiRecommendQa);
+
+    /**
+     * 修改信义推荐问答列
+     * 
+     * @param tXinyiRecommendQa 信义推荐问答列
+     * @return 结果
+     */
+    public int updateTXinyiRecommendQa(TXinyiRecommendQa tXinyiRecommendQa);
+
+    /**
+     * 批量删除信义推荐问答列
+     * 
+     * @param ids 需要删除的信义推荐问答列主键集合
+     * @return 结果
+     */
+    public int deleteTXinyiRecommendQaByIds(Long[] ids);
+
+    /**
+     * 删除信义推荐问答列信息
+     * 
+     * @param id 信义推荐问答列主键
+     * @return 结果
+     */
+    public int deleteTXinyiRecommendQaById(Long id);
+}

+ 61 - 0
slibra-system/src/main/java/com/slibra/business/service/ITXinyiWarningRecordService.java

@@ -0,0 +1,61 @@
+package com.slibra.business.service;
+
+import java.util.List;
+import com.slibra.business.domain.TXinyiWarningRecord;
+
+/**
+ * 信义告警记录Service接口
+ * 
+ * @author slibra
+ * @date 2024-05-17
+ */
+public interface ITXinyiWarningRecordService 
+{
+    /**
+     * 查询信义告警记录
+     * 
+     * @param id 信义告警记录主键
+     * @return 信义告警记录
+     */
+    public TXinyiWarningRecord selectTXinyiWarningRecordById(Long id);
+
+    /**
+     * 查询信义告警记录列表
+     * 
+     * @param tXinyiWarningRecord 信义告警记录
+     * @return 信义告警记录集合
+     */
+    public List<TXinyiWarningRecord> selectTXinyiWarningRecordList(TXinyiWarningRecord tXinyiWarningRecord);
+
+    /**
+     * 新增信义告警记录
+     * 
+     * @param tXinyiWarningRecord 信义告警记录
+     * @return 结果
+     */
+    public int insertTXinyiWarningRecord(TXinyiWarningRecord tXinyiWarningRecord);
+
+    /**
+     * 修改信义告警记录
+     * 
+     * @param tXinyiWarningRecord 信义告警记录
+     * @return 结果
+     */
+    public int updateTXinyiWarningRecord(TXinyiWarningRecord tXinyiWarningRecord);
+
+    /**
+     * 批量删除信义告警记录
+     * 
+     * @param ids 需要删除的信义告警记录主键集合
+     * @return 结果
+     */
+    public int deleteTXinyiWarningRecordByIds(Long[] ids);
+
+    /**
+     * 删除信义告警记录信息
+     * 
+     * @param id 信义告警记录主键
+     * @return 结果
+     */
+    public int deleteTXinyiWarningRecordById(Long id);
+}

+ 96 - 0
slibra-system/src/main/java/com/slibra/business/service/impl/TXinyiAgentAssistantServiceImpl.java

@@ -0,0 +1,96 @@
+package com.slibra.business.service.impl;
+
+import java.util.List;
+import com.slibra.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.slibra.business.mapper.TXinyiAgentAssistantMapper;
+import com.slibra.business.domain.TXinyiAgentAssistant;
+import com.slibra.business.service.ITXinyiAgentAssistantService;
+
+/**
+ * 信义智能体助手配置Service业务层处理
+ * 
+ * @author slibra
+ * @date 2024-05-17
+ */
+@Service
+public class TXinyiAgentAssistantServiceImpl implements ITXinyiAgentAssistantService 
+{
+    @Autowired
+    private TXinyiAgentAssistantMapper tXinyiAgentAssistantMapper;
+
+    /**
+     * 查询信义智能体助手配置
+     * 
+     * @param id 信义智能体助手配置主键
+     * @return 信义智能体助手配置
+     */
+    @Override
+    public TXinyiAgentAssistant selectTXinyiAgentAssistantById(Long id)
+    {
+        return tXinyiAgentAssistantMapper.selectTXinyiAgentAssistantById(id);
+    }
+
+    /**
+     * 查询信义智能体助手配置列表
+     * 
+     * @param tXinyiAgentAssistant 信义智能体助手配置
+     * @return 信义智能体助手配置
+     */
+    @Override
+    public List<TXinyiAgentAssistant> selectTXinyiAgentAssistantList(TXinyiAgentAssistant tXinyiAgentAssistant)
+    {
+        return tXinyiAgentAssistantMapper.selectTXinyiAgentAssistantList(tXinyiAgentAssistant);
+    }
+
+    /**
+     * 新增信义智能体助手配置
+     * 
+     * @param tXinyiAgentAssistant 信义智能体助手配置
+     * @return 结果
+     */
+    @Override
+    public int insertTXinyiAgentAssistant(TXinyiAgentAssistant tXinyiAgentAssistant)
+    {
+        tXinyiAgentAssistant.setCreateTime(DateUtils.getNowDate());
+        return tXinyiAgentAssistantMapper.insertTXinyiAgentAssistant(tXinyiAgentAssistant);
+    }
+
+    /**
+     * 修改信义智能体助手配置
+     * 
+     * @param tXinyiAgentAssistant 信义智能体助手配置
+     * @return 结果
+     */
+    @Override
+    public int updateTXinyiAgentAssistant(TXinyiAgentAssistant tXinyiAgentAssistant)
+    {
+        tXinyiAgentAssistant.setUpdateTime(DateUtils.getNowDate());
+        return tXinyiAgentAssistantMapper.updateTXinyiAgentAssistant(tXinyiAgentAssistant);
+    }
+
+    /**
+     * 批量删除信义智能体助手配置
+     * 
+     * @param ids 需要删除的信义智能体助手配置主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTXinyiAgentAssistantByIds(Long[] ids)
+    {
+        return tXinyiAgentAssistantMapper.deleteTXinyiAgentAssistantByIds(ids);
+    }
+
+    /**
+     * 删除信义智能体助手配置信息
+     * 
+     * @param id 信义智能体助手配置主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTXinyiAgentAssistantById(Long id)
+    {
+        return tXinyiAgentAssistantMapper.deleteTXinyiAgentAssistantById(id);
+    }
+}

+ 96 - 0
slibra-system/src/main/java/com/slibra/business/service/impl/TXinyiRecommendQaServiceImpl.java

@@ -0,0 +1,96 @@
+package com.slibra.business.service.impl;
+
+import java.util.List;
+import com.slibra.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.slibra.business.mapper.TXinyiRecommendQaMapper;
+import com.slibra.business.domain.TXinyiRecommendQa;
+import com.slibra.business.service.ITXinyiRecommendQaService;
+
+/**
+ * 信义推荐问答列Service业务层处理
+ * 
+ * @author slibra
+ * @date 2024-05-17
+ */
+@Service
+public class TXinyiRecommendQaServiceImpl implements ITXinyiRecommendQaService 
+{
+    @Autowired
+    private TXinyiRecommendQaMapper tXinyiRecommendQaMapper;
+
+    /**
+     * 查询信义推荐问答列
+     * 
+     * @param id 信义推荐问答列主键
+     * @return 信义推荐问答列
+     */
+    @Override
+    public TXinyiRecommendQa selectTXinyiRecommendQaById(Long id)
+    {
+        return tXinyiRecommendQaMapper.selectTXinyiRecommendQaById(id);
+    }
+
+    /**
+     * 查询信义推荐问答列列表
+     * 
+     * @param tXinyiRecommendQa 信义推荐问答列
+     * @return 信义推荐问答列
+     */
+    @Override
+    public List<TXinyiRecommendQa> selectTXinyiRecommendQaList(TXinyiRecommendQa tXinyiRecommendQa)
+    {
+        return tXinyiRecommendQaMapper.selectTXinyiRecommendQaList(tXinyiRecommendQa);
+    }
+
+    /**
+     * 新增信义推荐问答列
+     * 
+     * @param tXinyiRecommendQa 信义推荐问答列
+     * @return 结果
+     */
+    @Override
+    public int insertTXinyiRecommendQa(TXinyiRecommendQa tXinyiRecommendQa)
+    {
+        tXinyiRecommendQa.setCreateTime(DateUtils.getNowDate());
+        return tXinyiRecommendQaMapper.insertTXinyiRecommendQa(tXinyiRecommendQa);
+    }
+
+    /**
+     * 修改信义推荐问答列
+     * 
+     * @param tXinyiRecommendQa 信义推荐问答列
+     * @return 结果
+     */
+    @Override
+    public int updateTXinyiRecommendQa(TXinyiRecommendQa tXinyiRecommendQa)
+    {
+        tXinyiRecommendQa.setUpdateTime(DateUtils.getNowDate());
+        return tXinyiRecommendQaMapper.updateTXinyiRecommendQa(tXinyiRecommendQa);
+    }
+
+    /**
+     * 批量删除信义推荐问答列
+     * 
+     * @param ids 需要删除的信义推荐问答列主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTXinyiRecommendQaByIds(Long[] ids)
+    {
+        return tXinyiRecommendQaMapper.deleteTXinyiRecommendQaByIds(ids);
+    }
+
+    /**
+     * 删除信义推荐问答列信息
+     * 
+     * @param id 信义推荐问答列主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTXinyiRecommendQaById(Long id)
+    {
+        return tXinyiRecommendQaMapper.deleteTXinyiRecommendQaById(id);
+    }
+}

+ 96 - 0
slibra-system/src/main/java/com/slibra/business/service/impl/TXinyiWarningRecordServiceImpl.java

@@ -0,0 +1,96 @@
+package com.slibra.business.service.impl;
+
+import java.util.List;
+import com.slibra.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.slibra.business.mapper.TXinyiWarningRecordMapper;
+import com.slibra.business.domain.TXinyiWarningRecord;
+import com.slibra.business.service.ITXinyiWarningRecordService;
+
+/**
+ * 信义告警记录Service业务层处理
+ * 
+ * @author slibra
+ * @date 2024-05-17
+ */
+@Service
+public class TXinyiWarningRecordServiceImpl implements ITXinyiWarningRecordService 
+{
+    @Autowired
+    private TXinyiWarningRecordMapper tXinyiWarningRecordMapper;
+
+    /**
+     * 查询信义告警记录
+     * 
+     * @param id 信义告警记录主键
+     * @return 信义告警记录
+     */
+    @Override
+    public TXinyiWarningRecord selectTXinyiWarningRecordById(Long id)
+    {
+        return tXinyiWarningRecordMapper.selectTXinyiWarningRecordById(id);
+    }
+
+    /**
+     * 查询信义告警记录列表
+     * 
+     * @param tXinyiWarningRecord 信义告警记录
+     * @return 信义告警记录
+     */
+    @Override
+    public List<TXinyiWarningRecord> selectTXinyiWarningRecordList(TXinyiWarningRecord tXinyiWarningRecord)
+    {
+        return tXinyiWarningRecordMapper.selectTXinyiWarningRecordList(tXinyiWarningRecord);
+    }
+
+    /**
+     * 新增信义告警记录
+     * 
+     * @param tXinyiWarningRecord 信义告警记录
+     * @return 结果
+     */
+    @Override
+    public int insertTXinyiWarningRecord(TXinyiWarningRecord tXinyiWarningRecord)
+    {
+        tXinyiWarningRecord.setCreateTime(DateUtils.getNowDate());
+        return tXinyiWarningRecordMapper.insertTXinyiWarningRecord(tXinyiWarningRecord);
+    }
+
+    /**
+     * 修改信义告警记录
+     * 
+     * @param tXinyiWarningRecord 信义告警记录
+     * @return 结果
+     */
+    @Override
+    public int updateTXinyiWarningRecord(TXinyiWarningRecord tXinyiWarningRecord)
+    {
+        tXinyiWarningRecord.setUpdateTime(DateUtils.getNowDate());
+        return tXinyiWarningRecordMapper.updateTXinyiWarningRecord(tXinyiWarningRecord);
+    }
+
+    /**
+     * 批量删除信义告警记录
+     * 
+     * @param ids 需要删除的信义告警记录主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTXinyiWarningRecordByIds(Long[] ids)
+    {
+        return tXinyiWarningRecordMapper.deleteTXinyiWarningRecordByIds(ids);
+    }
+
+    /**
+     * 删除信义告警记录信息
+     * 
+     * @param id 信义告警记录主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTXinyiWarningRecordById(Long id)
+    {
+        return tXinyiWarningRecordMapper.deleteTXinyiWarningRecordById(id);
+    }
+}

+ 110 - 0
slibra-system/src/main/resources/mapper/business/TXinyiAgentAssistantMapper.xml

@@ -0,0 +1,110 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.slibra.business.mapper.TXinyiAgentAssistantMapper">
+    
+    <resultMap type="TXinyiAgentAssistant" id="TXinyiAgentAssistantResult">
+        <result property="id"    column="id"    />
+        <result property="category"    column="category"    />
+        <result property="title"    column="title"    />
+        <result property="content"    column="content"    />
+        <result property="banner"    column="banner"    />
+        <result property="sort"    column="sort"    />
+        <result property="delFlag"    column="del_flag"    />
+        <result property="revision"    column="revision"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="remark"    column="remark"    />
+    </resultMap>
+
+    <sql id="selectTXinyiAgentAssistantVo">
+        select id, category, title, content, banner, sort, del_flag, revision, create_by, create_time, update_by, update_time, remark from t_xinyi_agent_assistant
+    </sql>
+
+    <select id="selectTXinyiAgentAssistantList" parameterType="TXinyiAgentAssistant" resultMap="TXinyiAgentAssistantResult">
+        <include refid="selectTXinyiAgentAssistantVo"/>
+        <where>
+            1 = 1
+            <if test="category != null  and category != ''"> and category = #{category}</if>
+            <if test="title != null  and title != ''"> and title = #{title}</if>
+            <if test="content != null  and content != ''"> and content = #{content}</if>
+            <if test="banner != null  and banner != ''"> and banner = #{banner}</if>
+            <if test="sort != null  and sort != ''"> and sort = #{sort}</if>
+            <if test="revision != null "> and revision = #{revision}</if>
+        </where>
+        and del_flag = 0
+    </select>
+    
+    <select id="selectTXinyiAgentAssistantById" parameterType="Long" resultMap="TXinyiAgentAssistantResult">
+        <include refid="selectTXinyiAgentAssistantVo"/>
+        where id = #{id} and del_flag = 0
+    </select>
+        
+    <insert id="insertTXinyiAgentAssistant" parameterType="TXinyiAgentAssistant" useGeneratedKeys="true" keyProperty="id">
+        insert into t_xinyi_agent_assistant
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="category != null">category,</if>
+            <if test="title != null">title,</if>
+            <if test="content != null">content,</if>
+            <if test="banner != null">banner,</if>
+            <if test="sort != null">sort,</if>
+            <if test="delFlag != null">del_flag,</if>
+            <if test="revision != null">revision,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="remark != null">remark,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="category != null">#{category},</if>
+            <if test="title != null">#{title},</if>
+            <if test="content != null">#{content},</if>
+            <if test="banner != null">#{banner},</if>
+            <if test="sort != null">#{sort},</if>
+            <if test="delFlag != null">#{delFlag},</if>
+            <if test="revision != null">#{revision},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="remark != null">#{remark},</if>
+         </trim>
+    </insert>
+
+    <update id="updateTXinyiAgentAssistant" parameterType="TXinyiAgentAssistant">
+        update t_xinyi_agent_assistant
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="category != null">category = #{category},</if>
+            <if test="title != null">title = #{title},</if>
+            <if test="content != null">content = #{content},</if>
+            <if test="banner != null">banner = #{banner},</if>
+            <if test="sort != null">sort = #{sort},</if>
+            <if test="delFlag != null">del_flag = #{delFlag},</if>
+            <if test="revision != null">revision = #{revision},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        ,revision = revision + 1
+        where id = #{id}
+    </update>
+
+    
+
+    <delete id="deleteTXinyiAgentAssistantById" parameterType="Long">
+        update t_xinyi_agent_assistant set del_flag = 2,revision = revision + 1 where del_flag = 0 and id = #{id}
+    </delete>
+
+    <delete id="deleteTXinyiAgentAssistantByIds" parameterType="String">
+        update t_xinyi_agent_assistant set del_flag = 2,revision = revision + 1 where del_flag = 0 and id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 31 - 8
slibra-system/src/main/resources/mapper/business/TXinyiChatRecordMapper.xml

@@ -10,10 +10,14 @@
         <result property="type"    column="type"    />
         <result property="type"    column="type"    />
         <result property="module"    column="module"    />
         <result property="module"    column="module"    />
         <result property="userId"    column="user_id"    />
         <result property="userId"    column="user_id"    />
-        <result property="ask"    column="ask"    />
+        <result property="showVal"    column="show_val"    />
+        <result property="question"    column="question"    />
         <result property="answer"    column="answer"    />
         <result property="answer"    column="answer"    />
         <result property="warningId"    column="warning_id"    />
         <result property="warningId"    column="warning_id"    />
         <result property="counts"    column="counts"    />
         <result property="counts"    column="counts"    />
+        <result property="isStrong"    column="is_strong"    />
+        <result property="isSatisfied"    column="is_satisfied"    />
+        <result property="isShutdown"    column="is_shutdown"    />
         <result property="delFlag"    column="del_flag"    />
         <result property="delFlag"    column="del_flag"    />
         <result property="revision"    column="revision"    />
         <result property="revision"    column="revision"    />
         <result property="createBy"    column="create_by"    />
         <result property="createBy"    column="create_by"    />
@@ -24,7 +28,7 @@
     </resultMap>
     </resultMap>
 
 
     <sql id="selectTXinyiChatRecordVo">
     <sql id="selectTXinyiChatRecordVo">
-        select id, session_id, type, module, user_id, ask, answer, warning_id, counts, del_flag, revision, create_by, create_time, update_by, update_time, remark from t_xinyi_chat_record
+        select id, session_id, type, module, user_id, show_val, question, answer, warning_id, counts, is_strong, is_satisfied, is_shutdown, del_flag, revision, create_by, create_time, update_by, update_time, remark from t_xinyi_chat_record
     </sql>
     </sql>
 
 
     <select id="selectTXinyiChatRecordList" parameterType="TXinyiChatRecord" resultMap="TXinyiChatRecordResult">
     <select id="selectTXinyiChatRecordList" parameterType="TXinyiChatRecord" resultMap="TXinyiChatRecordResult">
@@ -35,16 +39,19 @@
             <if test="type != null "> and type = #{type}</if>
             <if test="type != null "> and type = #{type}</if>
             <if test="module != null  and module != ''"> and module = #{module}</if>
             <if test="module != null  and module != ''"> and module = #{module}</if>
             <if test="userId != null  and userId != ''"> and user_id = #{userId}</if>
             <if test="userId != null  and userId != ''"> and user_id = #{userId}</if>
-            <if test="ask != null  and ask != ''"> and ask = #{ask}</if>
+            <if test="showVal != null  and showVal != ''"> and show_val = #{showVal}</if>
+            <if test="question != null  and question != ''"> and question = #{question}</if>
             <if test="answer != null  and answer != ''"> and answer = #{answer}</if>
             <if test="answer != null  and answer != ''"> and answer = #{answer}</if>
             <if test="warningId != null  and warningId != ''"> and warning_id = #{warningId}</if>
             <if test="warningId != null  and warningId != ''"> and warning_id = #{warningId}</if>
             <if test="counts != null "> and counts = #{counts}</if>
             <if test="counts != null "> and counts = #{counts}</if>
+            <if test="isStrong != null  and isStrong != ''"> and is_strong = #{isStrong}</if>
+            <if test="isSatisfied != null  and isSatisfied != ''"> and is_satisfied = #{isSatisfied}</if>
+            <if test="isShutdown != null  and isShutdown != ''"> and is_shutdown = #{isShutdown}</if>
             <if test="revision != null "> and revision = #{revision}</if>
             <if test="revision != null "> and revision = #{revision}</if>
         </where>
         </where>
         and del_flag = 0 order by id desc
         and del_flag = 0 order by id desc
     </select>
     </select>
 
 
-
     <select id="selectTXinyiChatRecordFirstList" parameterType="TXinyiChatRecord" resultMap="TXinyiChatRecordResult">
     <select id="selectTXinyiChatRecordFirstList" parameterType="TXinyiChatRecord" resultMap="TXinyiChatRecordResult">
         <include refid="selectTXinyiChatRecordVo"/>
         <include refid="selectTXinyiChatRecordVo"/>
         <where>
         <where>
@@ -53,10 +60,14 @@
             <if test="type != null "> and type = #{type}</if>
             <if test="type != null "> and type = #{type}</if>
             <if test="module != null  and module != ''"> and module = #{module}</if>
             <if test="module != null  and module != ''"> and module = #{module}</if>
             <if test="userId != null  and userId != ''"> and user_id = #{userId}</if>
             <if test="userId != null  and userId != ''"> and user_id = #{userId}</if>
-            <if test="ask != null  and ask != ''"> and ask = #{ask}</if>
+            <if test="showVal != null  and showVal != ''"> and show_val = #{showVal}</if>
+            <if test="question != null  and question != ''"> and question = #{question}</if>
             <if test="answer != null  and answer != ''"> and answer = #{answer}</if>
             <if test="answer != null  and answer != ''"> and answer = #{answer}</if>
             <if test="warningId != null  and warningId != ''"> and warning_id = #{warningId}</if>
             <if test="warningId != null  and warningId != ''"> and warning_id = #{warningId}</if>
             <if test="counts != null "> and counts = #{counts}</if>
             <if test="counts != null "> and counts = #{counts}</if>
+            <if test="isStrong != null  and isStrong != ''"> and is_strong = #{isStrong}</if>
+            <if test="isSatisfied != null  and isSatisfied != ''"> and is_satisfied = #{isSatisfied}</if>
+            <if test="isShutdown != null  and isShutdown != ''"> and is_shutdown = #{isShutdown}</if>
             <if test="revision != null "> and revision = #{revision}</if>
             <if test="revision != null "> and revision = #{revision}</if>
         </where>
         </where>
         and del_flag = 0 order by id desc
         and del_flag = 0 order by id desc
@@ -74,10 +85,14 @@
             <if test="type != null">type,</if>
             <if test="type != null">type,</if>
             <if test="module != null">module,</if>
             <if test="module != null">module,</if>
             <if test="userId != null">user_id,</if>
             <if test="userId != null">user_id,</if>
-            <if test="ask != null">ask,</if>
+            <if test="showVal != null">show_val,</if>
+            <if test="question != null">question,</if>
             <if test="answer != null">answer,</if>
             <if test="answer != null">answer,</if>
             <if test="warningId != null">warning_id,</if>
             <if test="warningId != null">warning_id,</if>
             <if test="counts != null">counts,</if>
             <if test="counts != null">counts,</if>
+            <if test="isStrong != null">is_strong,</if>
+            <if test="isSatisfied != null">is_satisfied,</if>
+            <if test="isShutdown != null">is_shutdown,</if>
             <if test="delFlag != null">del_flag,</if>
             <if test="delFlag != null">del_flag,</if>
             <if test="revision != null">revision,</if>
             <if test="revision != null">revision,</if>
             <if test="createBy != null">create_by,</if>
             <if test="createBy != null">create_by,</if>
@@ -91,10 +106,14 @@
             <if test="type != null">#{type},</if>
             <if test="type != null">#{type},</if>
             <if test="module != null">#{module},</if>
             <if test="module != null">#{module},</if>
             <if test="userId != null">#{userId},</if>
             <if test="userId != null">#{userId},</if>
-            <if test="ask != null">#{ask},</if>
+            <if test="showVal != null">#{showVal},</if>
+            <if test="question != null">#{question},</if>
             <if test="answer != null">#{answer},</if>
             <if test="answer != null">#{answer},</if>
             <if test="warningId != null">#{warningId},</if>
             <if test="warningId != null">#{warningId},</if>
             <if test="counts != null">#{counts},</if>
             <if test="counts != null">#{counts},</if>
+            <if test="isStrong != null">#{isStrong},</if>
+            <if test="isSatisfied != null">#{isSatisfied},</if>
+            <if test="isShutdown != null">#{isShutdown},</if>
             <if test="delFlag != null">#{delFlag},</if>
             <if test="delFlag != null">#{delFlag},</if>
             <if test="revision != null">#{revision},</if>
             <if test="revision != null">#{revision},</if>
             <if test="createBy != null">#{createBy},</if>
             <if test="createBy != null">#{createBy},</if>
@@ -112,10 +131,14 @@
             <if test="type != null">type = #{type},</if>
             <if test="type != null">type = #{type},</if>
             <if test="module != null">module = #{module},</if>
             <if test="module != null">module = #{module},</if>
             <if test="userId != null">user_id = #{userId},</if>
             <if test="userId != null">user_id = #{userId},</if>
-            <if test="ask != null">ask = #{ask},</if>
+            <if test="showVal != null">show_val = #{showVal},</if>
+            <if test="question != null">question = #{question},</if>
             <if test="answer != null">answer = #{answer},</if>
             <if test="answer != null">answer = #{answer},</if>
             <if test="warningId != null">warning_id = #{warningId},</if>
             <if test="warningId != null">warning_id = #{warningId},</if>
             <if test="counts != null">counts = #{counts},</if>
             <if test="counts != null">counts = #{counts},</if>
+            <if test="isStrong != null">is_strong = #{isStrong},</if>
+            <if test="isSatisfied != null">is_satisfied = #{isSatisfied},</if>
+            <if test="isShutdown != null">is_shutdown = #{isShutdown},</if>
             <if test="delFlag != null">del_flag = #{delFlag},</if>
             <if test="delFlag != null">del_flag = #{delFlag},</if>
             <if test="revision != null">revision = #{revision},</if>
             <if test="revision != null">revision = #{revision},</if>
             <if test="createBy != null">create_by = #{createBy},</if>
             <if test="createBy != null">create_by = #{createBy},</if>

+ 100 - 0
slibra-system/src/main/resources/mapper/business/TXinyiRecommendQaMapper.xml

@@ -0,0 +1,100 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.slibra.business.mapper.TXinyiRecommendQaMapper">
+    
+    <resultMap type="TXinyiRecommendQa" id="TXinyiRecommendQaResult">
+        <result property="id"    column="id"    />
+        <result property="type"    column="type"    />
+        <result property="question"    column="question"    />
+        <result property="sort"    column="sort"    />
+        <result property="delFlag"    column="del_flag"    />
+        <result property="revision"    column="revision"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="remark"    column="remark"    />
+    </resultMap>
+
+    <sql id="selectTXinyiRecommendQaVo">
+        select id, type, question, sort, del_flag, revision, create_by, create_time, update_by, update_time, remark from t_xinyi_recommend_qa
+    </sql>
+
+    <select id="selectTXinyiRecommendQaList" parameterType="TXinyiRecommendQa" resultMap="TXinyiRecommendQaResult">
+        <include refid="selectTXinyiRecommendQaVo"/>
+        <where>
+            1 = 1
+            <if test="type != null "> and type = #{type}</if>
+            <if test="question != null  and question != ''"> and question = #{question}</if>
+            <if test="sort != null  and sort != ''"> and sort = #{sort}</if>
+            <if test="revision != null "> and revision = #{revision}</if>
+        </where>
+        and del_flag = 0
+    </select>
+    
+    <select id="selectTXinyiRecommendQaById" parameterType="Long" resultMap="TXinyiRecommendQaResult">
+        <include refid="selectTXinyiRecommendQaVo"/>
+        where id = #{id} and del_flag = 0
+    </select>
+        
+    <insert id="insertTXinyiRecommendQa" parameterType="TXinyiRecommendQa" useGeneratedKeys="true" keyProperty="id">
+        insert into t_xinyi_recommend_qa
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="type != null">type,</if>
+            <if test="question != null">question,</if>
+            <if test="sort != null">sort,</if>
+            <if test="delFlag != null">del_flag,</if>
+            <if test="revision != null">revision,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="remark != null">remark,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="type != null">#{type},</if>
+            <if test="question != null">#{question},</if>
+            <if test="sort != null">#{sort},</if>
+            <if test="delFlag != null">#{delFlag},</if>
+            <if test="revision != null">#{revision},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="remark != null">#{remark},</if>
+         </trim>
+    </insert>
+
+    <update id="updateTXinyiRecommendQa" parameterType="TXinyiRecommendQa">
+        update t_xinyi_recommend_qa
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="type != null">type = #{type},</if>
+            <if test="question != null">question = #{question},</if>
+            <if test="sort != null">sort = #{sort},</if>
+            <if test="delFlag != null">del_flag = #{delFlag},</if>
+            <if test="revision != null">revision = #{revision},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        ,revision = revision + 1
+        where id = #{id}
+    </update>
+
+    
+
+    <delete id="deleteTXinyiRecommendQaById" parameterType="Long">
+        update t_xinyi_recommend_qa set del_flag = 2,revision = revision + 1 where del_flag = 0 and id = #{id}
+    </delete>
+
+    <delete id="deleteTXinyiRecommendQaByIds" parameterType="String">
+        update t_xinyi_recommend_qa set del_flag = 2,revision = revision + 1 where del_flag = 0 and id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 155 - 0
slibra-system/src/main/resources/mapper/business/TXinyiWarningRecordMapper.xml

@@ -0,0 +1,155 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.slibra.business.mapper.TXinyiWarningRecordMapper">
+    
+    <resultMap type="TXinyiWarningRecord" id="TXinyiWarningRecordResult">
+        <result property="id"    column="id"    />
+        <result property="type"    column="type"    />
+        <result property="category"    column="category"    />
+        <result property="time"    column="time"    />
+        <result property="reason"    column="reason"    />
+        <result property="warningVal"    column="warning_val"    />
+        <result property="designVal"    column="design_val"    />
+        <result property="forecastVal"    column="forecast_val"    />
+        <result property="level"    column="level"    />
+        <result property="status"    column="status"    />
+        <result property="isEmergency"    column="is_emergency"    />
+        <result property="offTime"    column="off_time"    />
+        <result property="operator"    column="operator"    />
+        <result property="review"    column="review"    />
+        <result property="useRecommend"    column="use_recommend"    />
+        <result property="delFlag"    column="del_flag"    />
+        <result property="revision"    column="revision"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="remark"    column="remark"    />
+    </resultMap>
+
+    <sql id="selectTXinyiWarningRecordVo">
+        select id, type, category, time, reason, warning_val, design_val, forecast_val, level, status, is_emergency, off_time, operator, review, use_recommend, del_flag, revision, create_by, create_time, update_by, update_time, remark from t_xinyi_warning_record
+    </sql>
+
+    <select id="selectTXinyiWarningRecordList" parameterType="TXinyiWarningRecord" resultMap="TXinyiWarningRecordResult">
+        <include refid="selectTXinyiWarningRecordVo"/>
+        <where>
+            1 = 1
+            <if test="type != null "> and type = #{type}</if>
+            <if test="category != null  and category != ''"> and category = #{category}</if>
+            <if test="time != null "> and time = #{time}</if>
+            <if test="reason != null  and reason != ''"> and reason = #{reason}</if>
+            <if test="warningVal != null "> and warning_val = #{warningVal}</if>
+            <if test="designVal != null "> and design_val = #{designVal}</if>
+            <if test="forecastVal != null "> and forecast_val = #{forecastVal}</if>
+            <if test="level != null  and level != ''"> and level = #{level}</if>
+            <if test="status != null "> and status = #{status}</if>
+            <if test="isEmergency != null  and isEmergency != ''"> and is_emergency = #{isEmergency}</if>
+            <if test="offTime != null "> and off_time = #{offTime}</if>
+            <if test="operator != null  and operator != ''"> and operator = #{operator}</if>
+            <if test="review != null  and review != ''"> and review = #{review}</if>
+            <if test="useRecommend != null "> and use_recommend = #{useRecommend}</if>
+            <if test="revision != null "> and revision = #{revision}</if>
+        </where>
+        and del_flag = 0
+    </select>
+    
+    <select id="selectTXinyiWarningRecordById" parameterType="Long" resultMap="TXinyiWarningRecordResult">
+        <include refid="selectTXinyiWarningRecordVo"/>
+        where id = #{id} and del_flag = 0
+    </select>
+        
+    <insert id="insertTXinyiWarningRecord" parameterType="TXinyiWarningRecord" useGeneratedKeys="true" keyProperty="id">
+        insert into t_xinyi_warning_record
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="type != null">type,</if>
+            <if test="category != null">category,</if>
+            <if test="time != null">time,</if>
+            <if test="reason != null">reason,</if>
+            <if test="warningVal != null">warning_val,</if>
+            <if test="designVal != null">design_val,</if>
+            <if test="forecastVal != null">forecast_val,</if>
+            <if test="level != null">level,</if>
+            <if test="status != null">status,</if>
+            <if test="isEmergency != null">is_emergency,</if>
+            <if test="offTime != null">off_time,</if>
+            <if test="operator != null">operator,</if>
+            <if test="review != null">review,</if>
+            <if test="useRecommend != null">use_recommend,</if>
+            <if test="delFlag != null">del_flag,</if>
+            <if test="revision != null">revision,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="remark != null">remark,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="type != null">#{type},</if>
+            <if test="category != null">#{category},</if>
+            <if test="time != null">#{time},</if>
+            <if test="reason != null">#{reason},</if>
+            <if test="warningVal != null">#{warningVal},</if>
+            <if test="designVal != null">#{designVal},</if>
+            <if test="forecastVal != null">#{forecastVal},</if>
+            <if test="level != null">#{level},</if>
+            <if test="status != null">#{status},</if>
+            <if test="isEmergency != null">#{isEmergency},</if>
+            <if test="offTime != null">#{offTime},</if>
+            <if test="operator != null">#{operator},</if>
+            <if test="review != null">#{review},</if>
+            <if test="useRecommend != null">#{useRecommend},</if>
+            <if test="delFlag != null">#{delFlag},</if>
+            <if test="revision != null">#{revision},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="remark != null">#{remark},</if>
+         </trim>
+    </insert>
+
+    <update id="updateTXinyiWarningRecord" parameterType="TXinyiWarningRecord">
+        update t_xinyi_warning_record
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="type != null">type = #{type},</if>
+            <if test="category != null">category = #{category},</if>
+            <if test="time != null">time = #{time},</if>
+            <if test="reason != null">reason = #{reason},</if>
+            <if test="warningVal != null">warning_val = #{warningVal},</if>
+            <if test="designVal != null">design_val = #{designVal},</if>
+            <if test="forecastVal != null">forecast_val = #{forecastVal},</if>
+            <if test="level != null">level = #{level},</if>
+            <if test="status != null">status = #{status},</if>
+            <if test="isEmergency != null">is_emergency = #{isEmergency},</if>
+            <if test="offTime != null">off_time = #{offTime},</if>
+            <if test="operator != null">operator = #{operator},</if>
+            <if test="review != null">review = #{review},</if>
+            <if test="useRecommend != null">use_recommend = #{useRecommend},</if>
+            <if test="delFlag != null">del_flag = #{delFlag},</if>
+            <if test="revision != null">revision = #{revision},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        ,revision = revision + 1
+        where id = #{id}
+    </update>
+
+    
+
+    <delete id="deleteTXinyiWarningRecordById" parameterType="Long">
+        update t_xinyi_warning_record set del_flag = 2,revision = revision + 1 where del_flag = 0 and id = #{id}
+    </delete>
+
+    <delete id="deleteTXinyiWarningRecordByIds" parameterType="String">
+        update t_xinyi_warning_record set del_flag = 2,revision = revision + 1 where del_flag = 0 and id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

Vissa filer visades inte eftersom för många filer har ändrats