基础代码生成
This commit is contained in:
1 parent
5e63bb6add
commit
f69926dee6
21 files changed
+2827
-4
No files matched your search
+118
@@ -0,0 +1,118 @@
|
|||||||
|
package com.ruoyi.system.controller;
|
||||||
|
import com.ruoyi.common.select.Ids;
|
||||||
|
import com.ruoyi.common.select.SelectItem;
|
||||||
|
import java.util.List;
|
||||||
|
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.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.system.domain.TelegramAuditLog;
|
||||||
|
import com.ruoyi.system.domain.TelegramAuditLogPlus;
|
||||||
|
import com.ruoyi.system.service.ITelegramAuditLogService;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Telegram审核审计日志Controller
|
||||||
|
*
|
||||||
|
* @author luqj
|
||||||
|
* @date 2026-10-14
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/system/telegramAuditLog")
|
||||||
|
public class TelegramAuditLogController extends BaseController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private ITelegramAuditLogService telegramAuditLogService;
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:telegramAuditLog:getByIds')")
|
||||||
|
@PostMapping("/getByIds")
|
||||||
|
public AjaxResult getByIds(@RequestBody Ids ids)
|
||||||
|
{
|
||||||
|
List<TelegramAuditLogPlus> list = telegramAuditLogService.getByIds(ids.getLongIds(),TelegramAuditLogPlus::getComment,TelegramAuditLogPlus::getId);
|
||||||
|
return AjaxResult.success(list);
|
||||||
|
}
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:telegramAuditLog:select')")
|
||||||
|
@GetMapping("/select")
|
||||||
|
public AjaxResult select(String keyword)
|
||||||
|
{
|
||||||
|
List<SelectItem> list = telegramAuditLogService.select(keyword);
|
||||||
|
return AjaxResult.success(list);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 查询Telegram审核审计日志列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:telegramAuditLog:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(TelegramAuditLog telegramAuditLog)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<TelegramAuditLog> list = telegramAuditLogService.selectTelegramAuditLogList(telegramAuditLog);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出Telegram审核审计日志列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:telegramAuditLog:export')")
|
||||||
|
@Log(title = "Telegram审核审计日志", businessType = BusinessType.EXPORT)
|
||||||
|
@GetMapping("/export")
|
||||||
|
public AjaxResult export(TelegramAuditLog telegramAuditLog)
|
||||||
|
{
|
||||||
|
List<TelegramAuditLog> list = telegramAuditLogService.selectTelegramAuditLogList(telegramAuditLog);
|
||||||
|
ExcelUtil<TelegramAuditLog> util = new ExcelUtil<TelegramAuditLog>(TelegramAuditLog.class);
|
||||||
|
return util.exportExcel(list, "telegramAuditLog");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取Telegram审核审计日志详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:telegramAuditLog:query')")
|
||||||
|
@GetMapping(value = "/{id}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||||
|
{
|
||||||
|
return AjaxResult.success(telegramAuditLogService.selectTelegramAuditLogById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增Telegram审核审计日志
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:telegramAuditLog:add')")
|
||||||
|
@Log(title = "Telegram审核审计日志", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody TelegramAuditLog telegramAuditLog)
|
||||||
|
{
|
||||||
|
return toAjax(telegramAuditLogService.insertTelegramAuditLog(telegramAuditLog));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改Telegram审核审计日志
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:telegramAuditLog:edit')")
|
||||||
|
@Log(title = "Telegram审核审计日志", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody TelegramAuditLog telegramAuditLog)
|
||||||
|
{
|
||||||
|
return toAjax(telegramAuditLogService.updateTelegramAuditLog(telegramAuditLog));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除Telegram审核审计日志
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:telegramAuditLog:remove')")
|
||||||
|
@Log(title = "Telegram审核审计日志", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{ids}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] ids)
|
||||||
|
{
|
||||||
|
return toAjax(telegramAuditLogService.deleteTelegramAuditLogByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
||||||
+118
@@ -0,0 +1,118 @@
|
|||||||
|
package com.ruoyi.system.controller;
|
||||||
|
import com.ruoyi.common.select.Ids;
|
||||||
|
import com.ruoyi.common.select.SelectItem;
|
||||||
|
import java.util.List;
|
||||||
|
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.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.system.domain.TelegramAuditPushTask;
|
||||||
|
import com.ruoyi.system.domain.TelegramAuditPushTaskPlus;
|
||||||
|
import com.ruoyi.system.service.ITelegramAuditPushTaskService;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Telegram审核消息推送任务Controller
|
||||||
|
*
|
||||||
|
* @author luqj
|
||||||
|
* @date 2026-10-14
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/system/telegramAuditPushTask")
|
||||||
|
public class TelegramAuditPushTaskController extends BaseController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private ITelegramAuditPushTaskService telegramAuditPushTaskService;
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:telegramAuditPushTask:getByIds')")
|
||||||
|
@PostMapping("/getByIds")
|
||||||
|
public AjaxResult getByIds(@RequestBody Ids ids)
|
||||||
|
{
|
||||||
|
List<TelegramAuditPushTaskPlus> list = telegramAuditPushTaskService.getByIds(ids.getLongIds(),TelegramAuditPushTaskPlus::getAuditNo,TelegramAuditPushTaskPlus::getId);
|
||||||
|
return AjaxResult.success(list);
|
||||||
|
}
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:telegramAuditPushTask:select')")
|
||||||
|
@GetMapping("/select")
|
||||||
|
public AjaxResult select(String keyword)
|
||||||
|
{
|
||||||
|
List<SelectItem> list = telegramAuditPushTaskService.select(keyword);
|
||||||
|
return AjaxResult.success(list);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 查询Telegram审核消息推送任务列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:telegramAuditPushTask:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(TelegramAuditPushTask telegramAuditPushTask)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<TelegramAuditPushTask> list = telegramAuditPushTaskService.selectTelegramAuditPushTaskList(telegramAuditPushTask);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出Telegram审核消息推送任务列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:telegramAuditPushTask:export')")
|
||||||
|
@Log(title = "Telegram审核消息推送任务", businessType = BusinessType.EXPORT)
|
||||||
|
@GetMapping("/export")
|
||||||
|
public AjaxResult export(TelegramAuditPushTask telegramAuditPushTask)
|
||||||
|
{
|
||||||
|
List<TelegramAuditPushTask> list = telegramAuditPushTaskService.selectTelegramAuditPushTaskList(telegramAuditPushTask);
|
||||||
|
ExcelUtil<TelegramAuditPushTask> util = new ExcelUtil<TelegramAuditPushTask>(TelegramAuditPushTask.class);
|
||||||
|
return util.exportExcel(list, "telegramAuditPushTask");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取Telegram审核消息推送任务详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:telegramAuditPushTask:query')")
|
||||||
|
@GetMapping(value = "/{id}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||||
|
{
|
||||||
|
return AjaxResult.success(telegramAuditPushTaskService.selectTelegramAuditPushTaskById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增Telegram审核消息推送任务
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:telegramAuditPushTask:add')")
|
||||||
|
@Log(title = "Telegram审核消息推送任务", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody TelegramAuditPushTask telegramAuditPushTask)
|
||||||
|
{
|
||||||
|
return toAjax(telegramAuditPushTaskService.insertTelegramAuditPushTask(telegramAuditPushTask));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改Telegram审核消息推送任务
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:telegramAuditPushTask:edit')")
|
||||||
|
@Log(title = "Telegram审核消息推送任务", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody TelegramAuditPushTask telegramAuditPushTask)
|
||||||
|
{
|
||||||
|
return toAjax(telegramAuditPushTaskService.updateTelegramAuditPushTask(telegramAuditPushTask));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除Telegram审核消息推送任务
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:telegramAuditPushTask:remove')")
|
||||||
|
@Log(title = "Telegram审核消息推送任务", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{ids}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] ids)
|
||||||
|
{
|
||||||
|
return toAjax(telegramAuditPushTaskService.deleteTelegramAuditPushTaskByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
||||||
+118
@@ -0,0 +1,118 @@
|
|||||||
|
package com.ruoyi.system.controller;
|
||||||
|
import com.ruoyi.common.select.Ids;
|
||||||
|
import com.ruoyi.common.select.SelectItem;
|
||||||
|
import java.util.List;
|
||||||
|
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.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.system.domain.TelegramAuditRecord;
|
||||||
|
import com.ruoyi.system.domain.TelegramAuditRecordPlus;
|
||||||
|
import com.ruoyi.system.service.ITelegramAuditRecordService;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Telegram审核记录Controller
|
||||||
|
*
|
||||||
|
* @author luqj
|
||||||
|
* @date 2026-10-14
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/system/telegramAuditRecord")
|
||||||
|
public class TelegramAuditRecordController extends BaseController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private ITelegramAuditRecordService telegramAuditRecordService;
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:telegramAuditRecord:getByIds')")
|
||||||
|
@PostMapping("/getByIds")
|
||||||
|
public AjaxResult getByIds(@RequestBody Ids ids)
|
||||||
|
{
|
||||||
|
List<TelegramAuditRecordPlus> list = telegramAuditRecordService.getByIds(ids.getLongIds(),TelegramAuditRecordPlus::getAuditNo,TelegramAuditRecordPlus::getId);
|
||||||
|
return AjaxResult.success(list);
|
||||||
|
}
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:telegramAuditRecord:select')")
|
||||||
|
@GetMapping("/select")
|
||||||
|
public AjaxResult select(String keyword)
|
||||||
|
{
|
||||||
|
List<SelectItem> list = telegramAuditRecordService.select(keyword);
|
||||||
|
return AjaxResult.success(list);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 查询Telegram审核记录列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:telegramAuditRecord:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(TelegramAuditRecord telegramAuditRecord)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<TelegramAuditRecord> list = telegramAuditRecordService.selectTelegramAuditRecordList(telegramAuditRecord);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出Telegram审核记录列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:telegramAuditRecord:export')")
|
||||||
|
@Log(title = "Telegram审核记录", businessType = BusinessType.EXPORT)
|
||||||
|
@GetMapping("/export")
|
||||||
|
public AjaxResult export(TelegramAuditRecord telegramAuditRecord)
|
||||||
|
{
|
||||||
|
List<TelegramAuditRecord> list = telegramAuditRecordService.selectTelegramAuditRecordList(telegramAuditRecord);
|
||||||
|
ExcelUtil<TelegramAuditRecord> util = new ExcelUtil<TelegramAuditRecord>(TelegramAuditRecord.class);
|
||||||
|
return util.exportExcel(list, "telegramAuditRecord");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取Telegram审核记录详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:telegramAuditRecord:query')")
|
||||||
|
@GetMapping(value = "/{id}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||||
|
{
|
||||||
|
return AjaxResult.success(telegramAuditRecordService.selectTelegramAuditRecordById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增Telegram审核记录
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:telegramAuditRecord:add')")
|
||||||
|
@Log(title = "Telegram审核记录", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody TelegramAuditRecord telegramAuditRecord)
|
||||||
|
{
|
||||||
|
return toAjax(telegramAuditRecordService.insertTelegramAuditRecord(telegramAuditRecord));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改Telegram审核记录
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:telegramAuditRecord:edit')")
|
||||||
|
@Log(title = "Telegram审核记录", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody TelegramAuditRecord telegramAuditRecord)
|
||||||
|
{
|
||||||
|
return toAjax(telegramAuditRecordService.updateTelegramAuditRecord(telegramAuditRecord));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除Telegram审核记录
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:telegramAuditRecord:remove')")
|
||||||
|
@Log(title = "Telegram审核记录", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{ids}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] ids)
|
||||||
|
{
|
||||||
|
return toAjax(telegramAuditRecordService.deleteTelegramAuditRecordByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,180 @@
|
|||||||
|
package com.ruoyi.system.domain;
|
||||||
|
|
||||||
|
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.ruoyi.common.annotation.Excel;
|
||||||
|
import com.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
import java.io.Serializable;
|
||||||
|
/**
|
||||||
|
* Telegram审核审计日志对象 telegram_audit_log
|
||||||
|
*
|
||||||
|
* @author luqj
|
||||||
|
* @date 2026-10-14
|
||||||
|
*/
|
||||||
|
public class TelegramAuditLog extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 主键ID */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 关联审核单号 */
|
||||||
|
@Excel(name = "关联审核单号")
|
||||||
|
private String auditNo;
|
||||||
|
|
||||||
|
/** Telegram Update唯一ID,用于Webhook请求幂等防重 */
|
||||||
|
@Excel(name = "Telegram Update唯一ID,用于Webhook请求幂等防重")
|
||||||
|
private Long telegramUpdateId;
|
||||||
|
|
||||||
|
/** Telegram按钮回调查询ID,用于应答按钮操作 */
|
||||||
|
@Excel(name = "Telegram按钮回调查询ID,用于应答按钮操作")
|
||||||
|
private String telegramCallbackQueryId;
|
||||||
|
|
||||||
|
/** 操作人的Telegram数字用户ID */
|
||||||
|
@Excel(name = "操作人的Telegram数字用户ID")
|
||||||
|
private String telegramUserId;
|
||||||
|
|
||||||
|
/** 操作人的Telegram用户名,仅用于展示和审计 */
|
||||||
|
@Excel(name = "操作人的Telegram用户名,仅用于展示和审计")
|
||||||
|
private String telegramUsername;
|
||||||
|
|
||||||
|
/** 操作结果:RECEIVED已接收、APPROVED通过、REJECTED拒绝、UNAUTHORIZED越权、NOT_FOUND不存在、DUPLICATE重复 */
|
||||||
|
@Excel(name = "操作结果:RECEIVED已接收、APPROVED通过、REJECTED拒绝、UNAUTHORIZED越权、NOT_FOUND不存在、DUPLICATE重复")
|
||||||
|
private String action;
|
||||||
|
|
||||||
|
/** 操作前审核状态 */
|
||||||
|
@Excel(name = "操作前审核状态")
|
||||||
|
private String oldStatus;
|
||||||
|
|
||||||
|
/** 操作后审核状态 */
|
||||||
|
@Excel(name = "操作后审核状态")
|
||||||
|
private String newStatus;
|
||||||
|
|
||||||
|
/** 操作说明、拒绝原因或异常摘要 */
|
||||||
|
@Excel(name = "操作说明、拒绝原因或异常摘要")
|
||||||
|
private String comment;
|
||||||
|
|
||||||
|
/** 操作发生时间 */
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@Excel(name = "操作发生时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
private Date createdAt;
|
||||||
|
|
||||||
|
public void setId(Long id)
|
||||||
|
{
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId()
|
||||||
|
{
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
public void setAuditNo(String auditNo)
|
||||||
|
{
|
||||||
|
this.auditNo = auditNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAuditNo()
|
||||||
|
{
|
||||||
|
return auditNo;
|
||||||
|
}
|
||||||
|
public void setTelegramUpdateId(Long telegramUpdateId)
|
||||||
|
{
|
||||||
|
this.telegramUpdateId = telegramUpdateId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getTelegramUpdateId()
|
||||||
|
{
|
||||||
|
return telegramUpdateId;
|
||||||
|
}
|
||||||
|
public void setTelegramCallbackQueryId(String telegramCallbackQueryId)
|
||||||
|
{
|
||||||
|
this.telegramCallbackQueryId = telegramCallbackQueryId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTelegramCallbackQueryId()
|
||||||
|
{
|
||||||
|
return telegramCallbackQueryId;
|
||||||
|
}
|
||||||
|
public void setTelegramUserId(String telegramUserId)
|
||||||
|
{
|
||||||
|
this.telegramUserId = telegramUserId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTelegramUserId()
|
||||||
|
{
|
||||||
|
return telegramUserId;
|
||||||
|
}
|
||||||
|
public void setTelegramUsername(String telegramUsername)
|
||||||
|
{
|
||||||
|
this.telegramUsername = telegramUsername;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTelegramUsername()
|
||||||
|
{
|
||||||
|
return telegramUsername;
|
||||||
|
}
|
||||||
|
public void setAction(String action)
|
||||||
|
{
|
||||||
|
this.action = action;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAction()
|
||||||
|
{
|
||||||
|
return action;
|
||||||
|
}
|
||||||
|
public void setOldStatus(String oldStatus)
|
||||||
|
{
|
||||||
|
this.oldStatus = oldStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOldStatus()
|
||||||
|
{
|
||||||
|
return oldStatus;
|
||||||
|
}
|
||||||
|
public void setNewStatus(String newStatus)
|
||||||
|
{
|
||||||
|
this.newStatus = newStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNewStatus()
|
||||||
|
{
|
||||||
|
return newStatus;
|
||||||
|
}
|
||||||
|
public void setComment(String comment)
|
||||||
|
{
|
||||||
|
this.comment = comment;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getComment()
|
||||||
|
{
|
||||||
|
return comment;
|
||||||
|
}
|
||||||
|
public void setCreatedAt(Date createdAt)
|
||||||
|
{
|
||||||
|
this.createdAt = createdAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getCreatedAt()
|
||||||
|
{
|
||||||
|
return createdAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("id", getId())
|
||||||
|
.append("auditNo", getAuditNo())
|
||||||
|
.append("telegramUpdateId", getTelegramUpdateId())
|
||||||
|
.append("telegramCallbackQueryId", getTelegramCallbackQueryId())
|
||||||
|
.append("telegramUserId", getTelegramUserId())
|
||||||
|
.append("telegramUsername", getTelegramUsername())
|
||||||
|
.append("action", getAction())
|
||||||
|
.append("oldStatus", getOldStatus())
|
||||||
|
.append("newStatus", getNewStatus())
|
||||||
|
.append("comment", getComment())
|
||||||
|
.append("createdAt", getCreatedAt())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,172 @@
|
|||||||
|
package com.ruoyi.system.domain;
|
||||||
|
|
||||||
|
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.ruoyi.common.annotation.Excel;
|
||||||
|
import com.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
/**
|
||||||
|
* Telegram审核审计日志对象 telegram_audit_log
|
||||||
|
*
|
||||||
|
* @author luqj
|
||||||
|
* @date 2026-10-14
|
||||||
|
*/
|
||||||
|
@TableName(value = "telegram_audit_log")
|
||||||
|
public class TelegramAuditLogPlus implements Serializable
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 主键ID */
|
||||||
|
private Long id;
|
||||||
|
/** 关联审核单号 */
|
||||||
|
@Excel(name = "关联审核单号")
|
||||||
|
private String auditNo;
|
||||||
|
/** Telegram Update唯一ID,用于Webhook请求幂等防重 */
|
||||||
|
@Excel(name = "Telegram Update唯一ID,用于Webhook请求幂等防重")
|
||||||
|
private Long telegramUpdateId;
|
||||||
|
/** Telegram按钮回调查询ID,用于应答按钮操作 */
|
||||||
|
@Excel(name = "Telegram按钮回调查询ID,用于应答按钮操作")
|
||||||
|
private String telegramCallbackQueryId;
|
||||||
|
/** 操作人的Telegram数字用户ID */
|
||||||
|
@Excel(name = "操作人的Telegram数字用户ID")
|
||||||
|
private String telegramUserId;
|
||||||
|
/** 操作人的Telegram用户名,仅用于展示和审计 */
|
||||||
|
@Excel(name = "操作人的Telegram用户名,仅用于展示和审计")
|
||||||
|
private String telegramUsername;
|
||||||
|
/** 操作结果:RECEIVED已接收、APPROVED通过、REJECTED拒绝、UNAUTHORIZED越权、NOT_FOUND不存在、DUPLICATE重复 */
|
||||||
|
@Excel(name = "操作结果:RECEIVED已接收、APPROVED通过、REJECTED拒绝、UNAUTHORIZED越权、NOT_FOUND不存在、DUPLICATE重复")
|
||||||
|
private String action;
|
||||||
|
/** 操作前审核状态 */
|
||||||
|
@Excel(name = "操作前审核状态")
|
||||||
|
private String oldStatus;
|
||||||
|
/** 操作后审核状态 */
|
||||||
|
@Excel(name = "操作后审核状态")
|
||||||
|
private String newStatus;
|
||||||
|
/** 操作说明、拒绝原因或异常摘要 */
|
||||||
|
@Excel(name = "操作说明、拒绝原因或异常摘要")
|
||||||
|
private String comment;
|
||||||
|
/** 操作发生时间 */
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@Excel(name = "操作发生时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
private Date createdAt;
|
||||||
|
public void setId(Long id)
|
||||||
|
{
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId()
|
||||||
|
{
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
public void setAuditNo(String auditNo)
|
||||||
|
{
|
||||||
|
this.auditNo = auditNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAuditNo()
|
||||||
|
{
|
||||||
|
return auditNo;
|
||||||
|
}
|
||||||
|
public void setTelegramUpdateId(Long telegramUpdateId)
|
||||||
|
{
|
||||||
|
this.telegramUpdateId = telegramUpdateId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getTelegramUpdateId()
|
||||||
|
{
|
||||||
|
return telegramUpdateId;
|
||||||
|
}
|
||||||
|
public void setTelegramCallbackQueryId(String telegramCallbackQueryId)
|
||||||
|
{
|
||||||
|
this.telegramCallbackQueryId = telegramCallbackQueryId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTelegramCallbackQueryId()
|
||||||
|
{
|
||||||
|
return telegramCallbackQueryId;
|
||||||
|
}
|
||||||
|
public void setTelegramUserId(String telegramUserId)
|
||||||
|
{
|
||||||
|
this.telegramUserId = telegramUserId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTelegramUserId()
|
||||||
|
{
|
||||||
|
return telegramUserId;
|
||||||
|
}
|
||||||
|
public void setTelegramUsername(String telegramUsername)
|
||||||
|
{
|
||||||
|
this.telegramUsername = telegramUsername;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTelegramUsername()
|
||||||
|
{
|
||||||
|
return telegramUsername;
|
||||||
|
}
|
||||||
|
public void setAction(String action)
|
||||||
|
{
|
||||||
|
this.action = action;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAction()
|
||||||
|
{
|
||||||
|
return action;
|
||||||
|
}
|
||||||
|
public void setOldStatus(String oldStatus)
|
||||||
|
{
|
||||||
|
this.oldStatus = oldStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOldStatus()
|
||||||
|
{
|
||||||
|
return oldStatus;
|
||||||
|
}
|
||||||
|
public void setNewStatus(String newStatus)
|
||||||
|
{
|
||||||
|
this.newStatus = newStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNewStatus()
|
||||||
|
{
|
||||||
|
return newStatus;
|
||||||
|
}
|
||||||
|
public void setComment(String comment)
|
||||||
|
{
|
||||||
|
this.comment = comment;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getComment()
|
||||||
|
{
|
||||||
|
return comment;
|
||||||
|
}
|
||||||
|
public void setCreatedAt(Date createdAt)
|
||||||
|
{
|
||||||
|
this.createdAt = createdAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getCreatedAt()
|
||||||
|
{
|
||||||
|
return createdAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("id", getId())
|
||||||
|
.append("auditNo", getAuditNo())
|
||||||
|
.append("telegramUpdateId", getTelegramUpdateId())
|
||||||
|
.append("telegramCallbackQueryId", getTelegramCallbackQueryId())
|
||||||
|
.append("telegramUserId", getTelegramUserId())
|
||||||
|
.append("telegramUsername", getTelegramUsername())
|
||||||
|
.append("action", getAction())
|
||||||
|
.append("oldStatus", getOldStatus())
|
||||||
|
.append("newStatus", getNewStatus())
|
||||||
|
.append("comment", getComment())
|
||||||
|
.append("createdAt", getCreatedAt())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,140 @@
|
|||||||
|
package com.ruoyi.system.domain;
|
||||||
|
|
||||||
|
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.ruoyi.common.annotation.Excel;
|
||||||
|
import com.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
import java.io.Serializable;
|
||||||
|
/**
|
||||||
|
* Telegram审核消息推送任务对象 telegram_audit_push_task
|
||||||
|
*
|
||||||
|
* @author luqj
|
||||||
|
* @date 2026-10-14
|
||||||
|
*/
|
||||||
|
public class TelegramAuditPushTask extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 主键ID */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 关联审核单号 */
|
||||||
|
@Excel(name = "关联审核单号")
|
||||||
|
private String auditNo;
|
||||||
|
|
||||||
|
/** 推送状态:PENDING待推送、PROCESSING推送中、RETRYING等待重试、SUCCESS成功、FAILED失败 */
|
||||||
|
@Excel(name = "推送状态:PENDING待推送、PROCESSING推送中、RETRYING等待重试、SUCCESS成功、FAILED失败")
|
||||||
|
private String taskStatus;
|
||||||
|
|
||||||
|
/** 已失败重试次数,达到上限后转为FAILED */
|
||||||
|
@Excel(name = "已失败重试次数,达到上限后转为FAILED")
|
||||||
|
private Long retryCount;
|
||||||
|
|
||||||
|
/** 下次允许执行时间,用于指数退避 */
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@Excel(name = "下次允许执行时间,用于指数退避", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
private Date nextRetryAt;
|
||||||
|
|
||||||
|
/** 最近一次推送失败原因摘要,不记录Bot Token等敏感信息 */
|
||||||
|
@Excel(name = "最近一次推送失败原因摘要,不记录Bot Token等敏感信息")
|
||||||
|
private String lastError;
|
||||||
|
|
||||||
|
/** 创建时间 */
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
private Date createdAt;
|
||||||
|
|
||||||
|
/** 最后更新时间,同时用于PROCESSING任务租约判断 */
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@Excel(name = "最后更新时间,同时用于PROCESSING任务租约判断", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
private Date updatedAt;
|
||||||
|
|
||||||
|
public void setId(Long id)
|
||||||
|
{
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId()
|
||||||
|
{
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
public void setAuditNo(String auditNo)
|
||||||
|
{
|
||||||
|
this.auditNo = auditNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAuditNo()
|
||||||
|
{
|
||||||
|
return auditNo;
|
||||||
|
}
|
||||||
|
public void setTaskStatus(String taskStatus)
|
||||||
|
{
|
||||||
|
this.taskStatus = taskStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTaskStatus()
|
||||||
|
{
|
||||||
|
return taskStatus;
|
||||||
|
}
|
||||||
|
public void setRetryCount(Long retryCount)
|
||||||
|
{
|
||||||
|
this.retryCount = retryCount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getRetryCount()
|
||||||
|
{
|
||||||
|
return retryCount;
|
||||||
|
}
|
||||||
|
public void setNextRetryAt(Date nextRetryAt)
|
||||||
|
{
|
||||||
|
this.nextRetryAt = nextRetryAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getNextRetryAt()
|
||||||
|
{
|
||||||
|
return nextRetryAt;
|
||||||
|
}
|
||||||
|
public void setLastError(String lastError)
|
||||||
|
{
|
||||||
|
this.lastError = lastError;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLastError()
|
||||||
|
{
|
||||||
|
return lastError;
|
||||||
|
}
|
||||||
|
public void setCreatedAt(Date createdAt)
|
||||||
|
{
|
||||||
|
this.createdAt = createdAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getCreatedAt()
|
||||||
|
{
|
||||||
|
return createdAt;
|
||||||
|
}
|
||||||
|
public void setUpdatedAt(Date updatedAt)
|
||||||
|
{
|
||||||
|
this.updatedAt = updatedAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getUpdatedAt()
|
||||||
|
{
|
||||||
|
return updatedAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("id", getId())
|
||||||
|
.append("auditNo", getAuditNo())
|
||||||
|
.append("taskStatus", getTaskStatus())
|
||||||
|
.append("retryCount", getRetryCount())
|
||||||
|
.append("nextRetryAt", getNextRetryAt())
|
||||||
|
.append("lastError", getLastError())
|
||||||
|
.append("createdAt", getCreatedAt())
|
||||||
|
.append("updatedAt", getUpdatedAt())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,135 @@
|
|||||||
|
package com.ruoyi.system.domain;
|
||||||
|
|
||||||
|
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.ruoyi.common.annotation.Excel;
|
||||||
|
import com.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
/**
|
||||||
|
* Telegram审核消息推送任务对象 telegram_audit_push_task
|
||||||
|
*
|
||||||
|
* @author luqj
|
||||||
|
* @date 2026-10-14
|
||||||
|
*/
|
||||||
|
@TableName(value = "telegram_audit_push_task")
|
||||||
|
public class TelegramAuditPushTaskPlus implements Serializable
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 主键ID */
|
||||||
|
private Long id;
|
||||||
|
/** 关联审核单号 */
|
||||||
|
@Excel(name = "关联审核单号")
|
||||||
|
private String auditNo;
|
||||||
|
/** 推送状态:PENDING待推送、PROCESSING推送中、RETRYING等待重试、SUCCESS成功、FAILED失败 */
|
||||||
|
@Excel(name = "推送状态:PENDING待推送、PROCESSING推送中、RETRYING等待重试、SUCCESS成功、FAILED失败")
|
||||||
|
private String taskStatus;
|
||||||
|
/** 已失败重试次数,达到上限后转为FAILED */
|
||||||
|
@Excel(name = "已失败重试次数,达到上限后转为FAILED")
|
||||||
|
private Long retryCount;
|
||||||
|
/** 下次允许执行时间,用于指数退避 */
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@Excel(name = "下次允许执行时间,用于指数退避", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
private Date nextRetryAt;
|
||||||
|
/** 最近一次推送失败原因摘要,不记录Bot Token等敏感信息 */
|
||||||
|
@Excel(name = "最近一次推送失败原因摘要,不记录Bot Token等敏感信息")
|
||||||
|
private String lastError;
|
||||||
|
/** 创建时间 */
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
private Date createdAt;
|
||||||
|
/** 最后更新时间,同时用于PROCESSING任务租约判断 */
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@Excel(name = "最后更新时间,同时用于PROCESSING任务租约判断", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
private Date updatedAt;
|
||||||
|
public void setId(Long id)
|
||||||
|
{
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId()
|
||||||
|
{
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
public void setAuditNo(String auditNo)
|
||||||
|
{
|
||||||
|
this.auditNo = auditNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAuditNo()
|
||||||
|
{
|
||||||
|
return auditNo;
|
||||||
|
}
|
||||||
|
public void setTaskStatus(String taskStatus)
|
||||||
|
{
|
||||||
|
this.taskStatus = taskStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTaskStatus()
|
||||||
|
{
|
||||||
|
return taskStatus;
|
||||||
|
}
|
||||||
|
public void setRetryCount(Long retryCount)
|
||||||
|
{
|
||||||
|
this.retryCount = retryCount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getRetryCount()
|
||||||
|
{
|
||||||
|
return retryCount;
|
||||||
|
}
|
||||||
|
public void setNextRetryAt(Date nextRetryAt)
|
||||||
|
{
|
||||||
|
this.nextRetryAt = nextRetryAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getNextRetryAt()
|
||||||
|
{
|
||||||
|
return nextRetryAt;
|
||||||
|
}
|
||||||
|
public void setLastError(String lastError)
|
||||||
|
{
|
||||||
|
this.lastError = lastError;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLastError()
|
||||||
|
{
|
||||||
|
return lastError;
|
||||||
|
}
|
||||||
|
public void setCreatedAt(Date createdAt)
|
||||||
|
{
|
||||||
|
this.createdAt = createdAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getCreatedAt()
|
||||||
|
{
|
||||||
|
return createdAt;
|
||||||
|
}
|
||||||
|
public void setUpdatedAt(Date updatedAt)
|
||||||
|
{
|
||||||
|
this.updatedAt = updatedAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getUpdatedAt()
|
||||||
|
{
|
||||||
|
return updatedAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("id", getId())
|
||||||
|
.append("auditNo", getAuditNo())
|
||||||
|
.append("taskStatus", getTaskStatus())
|
||||||
|
.append("retryCount", getRetryCount())
|
||||||
|
.append("nextRetryAt", getNextRetryAt())
|
||||||
|
.append("lastError", getLastError())
|
||||||
|
.append("createdAt", getCreatedAt())
|
||||||
|
.append("updatedAt", getUpdatedAt())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,7 +1,238 @@
|
|||||||
package com.ruoyi.system.domain;
|
package com.ruoyi.system.domain;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
/** Telegram审核记录,不保存私钥和配置密码。 */
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
public class TelegramAuditRecord {
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
private Long id; private String auditNo,businessType,businessId,title,payload,auditStatus,telegramChatId,reviewerTelegramId,reviewerName,reviewComment; private Long telegramMessageId; private Date reviewedAt,createdAt,updatedAt;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
public Long getId(){return id;} public void setId(Long v){id=v;} public String getAuditNo(){return auditNo;} public void setAuditNo(String v){auditNo=v;} public String getBusinessType(){return businessType;} public void setBusinessType(String v){businessType=v;} public String getBusinessId(){return businessId;} public void setBusinessId(String v){businessId=v;} public String getTitle(){return title;} public void setTitle(String v){title=v;} public String getPayload(){return payload;} public void setPayload(String v){payload=v;} public String getAuditStatus(){return auditStatus;} public void setAuditStatus(String v){auditStatus=v;} public String getTelegramChatId(){return telegramChatId;} public void setTelegramChatId(String v){telegramChatId=v;} public Long getTelegramMessageId(){return telegramMessageId;} public void setTelegramMessageId(Long v){telegramMessageId=v;} public String getReviewerTelegramId(){return reviewerTelegramId;} public void setReviewerTelegramId(String v){reviewerTelegramId=v;} public String getReviewerName(){return reviewerName;} public void setReviewerName(String v){reviewerName=v;} public String getReviewComment(){return reviewComment;} public void setReviewComment(String v){reviewComment=v;} public Date getReviewedAt(){return reviewedAt;} public void setReviewedAt(Date v){reviewedAt=v;} public Date getCreatedAt(){return createdAt;} public void setCreatedAt(Date v){createdAt=v;} public Date getUpdatedAt(){return updatedAt;} public void setUpdatedAt(Date v){updatedAt=v;}
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import com.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
import java.io.Serializable;
|
||||||
|
/**
|
||||||
|
* Telegram审核记录对象 telegram_audit_record
|
||||||
|
*
|
||||||
|
* @author luqj
|
||||||
|
* @date 2026-10-14
|
||||||
|
*/
|
||||||
|
public class TelegramAuditRecord extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 主键ID */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 审核单号,Telegram按钮通过该值关联审核记录 */
|
||||||
|
@Excel(name = "审核单号,Telegram按钮通过该值关联审核记录")
|
||||||
|
private String auditNo;
|
||||||
|
|
||||||
|
/** 业务类型,例如USDT_AGGREGATION表示USDT归集审核 */
|
||||||
|
@Excel(name = "业务类型,例如USDT_AGGREGATION表示USDT归集审核")
|
||||||
|
private String businessType;
|
||||||
|
|
||||||
|
/** 业务记录ID,归集审核时为归集任务ID */
|
||||||
|
@Excel(name = "业务记录ID,归集审核时为归集任务ID")
|
||||||
|
private String businessId;
|
||||||
|
|
||||||
|
/** 审核标题 */
|
||||||
|
@Excel(name = "审核标题")
|
||||||
|
private String title;
|
||||||
|
|
||||||
|
/** 审核业务快照JSON,不保存私钥、密码等敏感信息 */
|
||||||
|
@Excel(name = "审核业务快照JSON,不保存私钥、密码等敏感信息")
|
||||||
|
private String payload;
|
||||||
|
|
||||||
|
/** 审核状态:PENDING待审核、APPROVED已通过、REJECTED已拒绝 */
|
||||||
|
@Excel(name = "审核状态:PENDING待审核、APPROVED已通过、REJECTED已拒绝")
|
||||||
|
private String auditStatus;
|
||||||
|
|
||||||
|
/** 审核消息所在Telegram群组或会话ID */
|
||||||
|
@Excel(name = "审核消息所在Telegram群组或会话ID")
|
||||||
|
private String telegramChatId;
|
||||||
|
|
||||||
|
/** Telegram审核消息ID,用于审核后更新原消息 */
|
||||||
|
@Excel(name = "Telegram审核消息ID,用于审核后更新原消息")
|
||||||
|
private Long telegramMessageId;
|
||||||
|
|
||||||
|
/** 审核人的Telegram数字用户ID;SYSTEM表示后台审核 */
|
||||||
|
@Excel(name = "审核人的Telegram数字用户ID;SYSTEM表示后台审核")
|
||||||
|
private String reviewerTelegramId;
|
||||||
|
|
||||||
|
/** 审核人Telegram用户名或后台登录用户名 */
|
||||||
|
@Excel(name = "审核人Telegram用户名或后台登录用户名")
|
||||||
|
private String reviewerName;
|
||||||
|
|
||||||
|
/** 审核意见或拒绝原因 */
|
||||||
|
@Excel(name = "审核意见或拒绝原因")
|
||||||
|
private String reviewComment;
|
||||||
|
|
||||||
|
/** 审核完成时间 */
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@Excel(name = "审核完成时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
private Date reviewedAt;
|
||||||
|
|
||||||
|
/** 创建时间 */
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
private Date createdAt;
|
||||||
|
|
||||||
|
/** 最后更新时间 */
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@Excel(name = "最后更新时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
private Date updatedAt;
|
||||||
|
|
||||||
|
public void setId(Long id)
|
||||||
|
{
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId()
|
||||||
|
{
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
public void setAuditNo(String auditNo)
|
||||||
|
{
|
||||||
|
this.auditNo = auditNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAuditNo()
|
||||||
|
{
|
||||||
|
return auditNo;
|
||||||
|
}
|
||||||
|
public void setBusinessType(String businessType)
|
||||||
|
{
|
||||||
|
this.businessType = businessType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBusinessType()
|
||||||
|
{
|
||||||
|
return businessType;
|
||||||
|
}
|
||||||
|
public void setBusinessId(String businessId)
|
||||||
|
{
|
||||||
|
this.businessId = businessId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBusinessId()
|
||||||
|
{
|
||||||
|
return businessId;
|
||||||
|
}
|
||||||
|
public void setTitle(String title)
|
||||||
|
{
|
||||||
|
this.title = title;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTitle()
|
||||||
|
{
|
||||||
|
return title;
|
||||||
|
}
|
||||||
|
public void setPayload(String payload)
|
||||||
|
{
|
||||||
|
this.payload = payload;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayload()
|
||||||
|
{
|
||||||
|
return payload;
|
||||||
|
}
|
||||||
|
public void setAuditStatus(String auditStatus)
|
||||||
|
{
|
||||||
|
this.auditStatus = auditStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAuditStatus()
|
||||||
|
{
|
||||||
|
return auditStatus;
|
||||||
|
}
|
||||||
|
public void setTelegramChatId(String telegramChatId)
|
||||||
|
{
|
||||||
|
this.telegramChatId = telegramChatId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTelegramChatId()
|
||||||
|
{
|
||||||
|
return telegramChatId;
|
||||||
|
}
|
||||||
|
public void setTelegramMessageId(Long telegramMessageId)
|
||||||
|
{
|
||||||
|
this.telegramMessageId = telegramMessageId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getTelegramMessageId()
|
||||||
|
{
|
||||||
|
return telegramMessageId;
|
||||||
|
}
|
||||||
|
public void setReviewerTelegramId(String reviewerTelegramId)
|
||||||
|
{
|
||||||
|
this.reviewerTelegramId = reviewerTelegramId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getReviewerTelegramId()
|
||||||
|
{
|
||||||
|
return reviewerTelegramId;
|
||||||
|
}
|
||||||
|
public void setReviewerName(String reviewerName)
|
||||||
|
{
|
||||||
|
this.reviewerName = reviewerName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getReviewerName()
|
||||||
|
{
|
||||||
|
return reviewerName;
|
||||||
|
}
|
||||||
|
public void setReviewComment(String reviewComment)
|
||||||
|
{
|
||||||
|
this.reviewComment = reviewComment;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getReviewComment()
|
||||||
|
{
|
||||||
|
return reviewComment;
|
||||||
|
}
|
||||||
|
public void setReviewedAt(Date reviewedAt)
|
||||||
|
{
|
||||||
|
this.reviewedAt = reviewedAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getReviewedAt()
|
||||||
|
{
|
||||||
|
return reviewedAt;
|
||||||
|
}
|
||||||
|
public void setCreatedAt(Date createdAt)
|
||||||
|
{
|
||||||
|
this.createdAt = createdAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getCreatedAt()
|
||||||
|
{
|
||||||
|
return createdAt;
|
||||||
|
}
|
||||||
|
public void setUpdatedAt(Date updatedAt)
|
||||||
|
{
|
||||||
|
this.updatedAt = updatedAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getUpdatedAt()
|
||||||
|
{
|
||||||
|
return updatedAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("id", getId())
|
||||||
|
.append("auditNo", getAuditNo())
|
||||||
|
.append("businessType", getBusinessType())
|
||||||
|
.append("businessId", getBusinessId())
|
||||||
|
.append("title", getTitle())
|
||||||
|
.append("payload", getPayload())
|
||||||
|
.append("auditStatus", getAuditStatus())
|
||||||
|
.append("telegramChatId", getTelegramChatId())
|
||||||
|
.append("telegramMessageId", getTelegramMessageId())
|
||||||
|
.append("reviewerTelegramId", getReviewerTelegramId())
|
||||||
|
.append("reviewerName", getReviewerName())
|
||||||
|
.append("reviewComment", getReviewComment())
|
||||||
|
.append("reviewedAt", getReviewedAt())
|
||||||
|
.append("createdAt", getCreatedAt())
|
||||||
|
.append("updatedAt", getUpdatedAt())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,226 @@
|
|||||||
|
package com.ruoyi.system.domain;
|
||||||
|
|
||||||
|
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.ruoyi.common.annotation.Excel;
|
||||||
|
import com.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
/**
|
||||||
|
* Telegram审核记录对象 telegram_audit_record
|
||||||
|
*
|
||||||
|
* @author luqj
|
||||||
|
* @date 2026-10-14
|
||||||
|
*/
|
||||||
|
@TableName(value = "telegram_audit_record")
|
||||||
|
public class TelegramAuditRecordPlus implements Serializable
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 主键ID */
|
||||||
|
private Long id;
|
||||||
|
/** 审核单号,Telegram按钮通过该值关联审核记录 */
|
||||||
|
@Excel(name = "审核单号,Telegram按钮通过该值关联审核记录")
|
||||||
|
private String auditNo;
|
||||||
|
/** 业务类型,例如USDT_AGGREGATION表示USDT归集审核 */
|
||||||
|
@Excel(name = "业务类型,例如USDT_AGGREGATION表示USDT归集审核")
|
||||||
|
private String businessType;
|
||||||
|
/** 业务记录ID,归集审核时为归集任务ID */
|
||||||
|
@Excel(name = "业务记录ID,归集审核时为归集任务ID")
|
||||||
|
private String businessId;
|
||||||
|
/** 审核标题 */
|
||||||
|
@Excel(name = "审核标题")
|
||||||
|
private String title;
|
||||||
|
/** 审核业务快照JSON,不保存私钥、密码等敏感信息 */
|
||||||
|
@Excel(name = "审核业务快照JSON,不保存私钥、密码等敏感信息")
|
||||||
|
private String payload;
|
||||||
|
/** 审核状态:PENDING待审核、APPROVED已通过、REJECTED已拒绝 */
|
||||||
|
@Excel(name = "审核状态:PENDING待审核、APPROVED已通过、REJECTED已拒绝")
|
||||||
|
private String auditStatus;
|
||||||
|
/** 审核消息所在Telegram群组或会话ID */
|
||||||
|
@Excel(name = "审核消息所在Telegram群组或会话ID")
|
||||||
|
private String telegramChatId;
|
||||||
|
/** Telegram审核消息ID,用于审核后更新原消息 */
|
||||||
|
@Excel(name = "Telegram审核消息ID,用于审核后更新原消息")
|
||||||
|
private Long telegramMessageId;
|
||||||
|
/** 审核人的Telegram数字用户ID;SYSTEM表示后台审核 */
|
||||||
|
@Excel(name = "审核人的Telegram数字用户ID;SYSTEM表示后台审核")
|
||||||
|
private String reviewerTelegramId;
|
||||||
|
/** 审核人Telegram用户名或后台登录用户名 */
|
||||||
|
@Excel(name = "审核人Telegram用户名或后台登录用户名")
|
||||||
|
private String reviewerName;
|
||||||
|
/** 审核意见或拒绝原因 */
|
||||||
|
@Excel(name = "审核意见或拒绝原因")
|
||||||
|
private String reviewComment;
|
||||||
|
/** 审核完成时间 */
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@Excel(name = "审核完成时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
private Date reviewedAt;
|
||||||
|
/** 创建时间 */
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
private Date createdAt;
|
||||||
|
/** 最后更新时间 */
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@Excel(name = "最后更新时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
private Date updatedAt;
|
||||||
|
public void setId(Long id)
|
||||||
|
{
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId()
|
||||||
|
{
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
public void setAuditNo(String auditNo)
|
||||||
|
{
|
||||||
|
this.auditNo = auditNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAuditNo()
|
||||||
|
{
|
||||||
|
return auditNo;
|
||||||
|
}
|
||||||
|
public void setBusinessType(String businessType)
|
||||||
|
{
|
||||||
|
this.businessType = businessType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBusinessType()
|
||||||
|
{
|
||||||
|
return businessType;
|
||||||
|
}
|
||||||
|
public void setBusinessId(String businessId)
|
||||||
|
{
|
||||||
|
this.businessId = businessId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBusinessId()
|
||||||
|
{
|
||||||
|
return businessId;
|
||||||
|
}
|
||||||
|
public void setTitle(String title)
|
||||||
|
{
|
||||||
|
this.title = title;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTitle()
|
||||||
|
{
|
||||||
|
return title;
|
||||||
|
}
|
||||||
|
public void setPayload(String payload)
|
||||||
|
{
|
||||||
|
this.payload = payload;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayload()
|
||||||
|
{
|
||||||
|
return payload;
|
||||||
|
}
|
||||||
|
public void setAuditStatus(String auditStatus)
|
||||||
|
{
|
||||||
|
this.auditStatus = auditStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAuditStatus()
|
||||||
|
{
|
||||||
|
return auditStatus;
|
||||||
|
}
|
||||||
|
public void setTelegramChatId(String telegramChatId)
|
||||||
|
{
|
||||||
|
this.telegramChatId = telegramChatId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTelegramChatId()
|
||||||
|
{
|
||||||
|
return telegramChatId;
|
||||||
|
}
|
||||||
|
public void setTelegramMessageId(Long telegramMessageId)
|
||||||
|
{
|
||||||
|
this.telegramMessageId = telegramMessageId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getTelegramMessageId()
|
||||||
|
{
|
||||||
|
return telegramMessageId;
|
||||||
|
}
|
||||||
|
public void setReviewerTelegramId(String reviewerTelegramId)
|
||||||
|
{
|
||||||
|
this.reviewerTelegramId = reviewerTelegramId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getReviewerTelegramId()
|
||||||
|
{
|
||||||
|
return reviewerTelegramId;
|
||||||
|
}
|
||||||
|
public void setReviewerName(String reviewerName)
|
||||||
|
{
|
||||||
|
this.reviewerName = reviewerName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getReviewerName()
|
||||||
|
{
|
||||||
|
return reviewerName;
|
||||||
|
}
|
||||||
|
public void setReviewComment(String reviewComment)
|
||||||
|
{
|
||||||
|
this.reviewComment = reviewComment;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getReviewComment()
|
||||||
|
{
|
||||||
|
return reviewComment;
|
||||||
|
}
|
||||||
|
public void setReviewedAt(Date reviewedAt)
|
||||||
|
{
|
||||||
|
this.reviewedAt = reviewedAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getReviewedAt()
|
||||||
|
{
|
||||||
|
return reviewedAt;
|
||||||
|
}
|
||||||
|
public void setCreatedAt(Date createdAt)
|
||||||
|
{
|
||||||
|
this.createdAt = createdAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getCreatedAt()
|
||||||
|
{
|
||||||
|
return createdAt;
|
||||||
|
}
|
||||||
|
public void setUpdatedAt(Date updatedAt)
|
||||||
|
{
|
||||||
|
this.updatedAt = updatedAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getUpdatedAt()
|
||||||
|
{
|
||||||
|
return updatedAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("id", getId())
|
||||||
|
.append("auditNo", getAuditNo())
|
||||||
|
.append("businessType", getBusinessType())
|
||||||
|
.append("businessId", getBusinessId())
|
||||||
|
.append("title", getTitle())
|
||||||
|
.append("payload", getPayload())
|
||||||
|
.append("auditStatus", getAuditStatus())
|
||||||
|
.append("telegramChatId", getTelegramChatId())
|
||||||
|
.append("telegramMessageId", getTelegramMessageId())
|
||||||
|
.append("reviewerTelegramId", getReviewerTelegramId())
|
||||||
|
.append("reviewerName", getReviewerName())
|
||||||
|
.append("reviewComment", getReviewComment())
|
||||||
|
.append("reviewedAt", getReviewedAt())
|
||||||
|
.append("createdAt", getCreatedAt())
|
||||||
|
.append("updatedAt", getUpdatedAt())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,65 @@
|
|||||||
|
package com.ruoyi.system.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
import com.ruoyi.system.domain.TelegramAuditLog;
|
||||||
|
import com.ruoyi.system.domain.TelegramAuditLogPlus;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Telegram审核审计日志Mapper接口
|
||||||
|
*
|
||||||
|
* @author luqj
|
||||||
|
* @date 2026-10-14
|
||||||
|
*/
|
||||||
|
public interface TelegramAuditLogMapper extends BaseMapper<TelegramAuditLogPlus>
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询Telegram审核审计日志
|
||||||
|
*
|
||||||
|
* @param id Telegram审核审计日志ID
|
||||||
|
* @return Telegram审核审计日志
|
||||||
|
*/
|
||||||
|
public TelegramAuditLog selectTelegramAuditLogById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询Telegram审核审计日志列表
|
||||||
|
*
|
||||||
|
* @param telegramAuditLog Telegram审核审计日志
|
||||||
|
* @return Telegram审核审计日志集合
|
||||||
|
*/
|
||||||
|
public List<TelegramAuditLog> selectTelegramAuditLogList(TelegramAuditLog telegramAuditLog);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增Telegram审核审计日志
|
||||||
|
*
|
||||||
|
* @param telegramAuditLog Telegram审核审计日志
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertTelegramAuditLog(TelegramAuditLog telegramAuditLog);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改Telegram审核审计日志
|
||||||
|
*
|
||||||
|
* @param telegramAuditLog Telegram审核审计日志
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateTelegramAuditLog(TelegramAuditLog telegramAuditLog);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除Telegram审核审计日志
|
||||||
|
*
|
||||||
|
* @param id Telegram审核审计日志ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteTelegramAuditLogById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除Telegram审核审计日志
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteTelegramAuditLogByIds(Long[] ids);
|
||||||
|
}
|
||||||
@@ -0,0 +1,65 @@
|
|||||||
|
package com.ruoyi.system.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
import com.ruoyi.system.domain.TelegramAuditPushTask;
|
||||||
|
import com.ruoyi.system.domain.TelegramAuditPushTaskPlus;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Telegram审核消息推送任务Mapper接口
|
||||||
|
*
|
||||||
|
* @author luqj
|
||||||
|
* @date 2026-10-14
|
||||||
|
*/
|
||||||
|
public interface TelegramAuditPushTaskMapper extends BaseMapper<TelegramAuditPushTaskPlus>
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询Telegram审核消息推送任务
|
||||||
|
*
|
||||||
|
* @param id Telegram审核消息推送任务ID
|
||||||
|
* @return Telegram审核消息推送任务
|
||||||
|
*/
|
||||||
|
public TelegramAuditPushTask selectTelegramAuditPushTaskById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询Telegram审核消息推送任务列表
|
||||||
|
*
|
||||||
|
* @param telegramAuditPushTask Telegram审核消息推送任务
|
||||||
|
* @return Telegram审核消息推送任务集合
|
||||||
|
*/
|
||||||
|
public List<TelegramAuditPushTask> selectTelegramAuditPushTaskList(TelegramAuditPushTask telegramAuditPushTask);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增Telegram审核消息推送任务
|
||||||
|
*
|
||||||
|
* @param telegramAuditPushTask Telegram审核消息推送任务
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertTelegramAuditPushTask(TelegramAuditPushTask telegramAuditPushTask);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改Telegram审核消息推送任务
|
||||||
|
*
|
||||||
|
* @param telegramAuditPushTask Telegram审核消息推送任务
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateTelegramAuditPushTask(TelegramAuditPushTask telegramAuditPushTask);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除Telegram审核消息推送任务
|
||||||
|
*
|
||||||
|
* @param id Telegram审核消息推送任务ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteTelegramAuditPushTaskById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除Telegram审核消息推送任务
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteTelegramAuditPushTaskByIds(Long[] ids);
|
||||||
|
}
|
||||||
@@ -0,0 +1,65 @@
|
|||||||
|
package com.ruoyi.system.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
import com.ruoyi.system.domain.TelegramAuditRecord;
|
||||||
|
import com.ruoyi.system.domain.TelegramAuditRecordPlus;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Telegram审核记录Mapper接口
|
||||||
|
*
|
||||||
|
* @author luqj
|
||||||
|
* @date 2026-10-14
|
||||||
|
*/
|
||||||
|
public interface TelegramAuditRecordMapper extends BaseMapper<TelegramAuditRecordPlus>
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询Telegram审核记录
|
||||||
|
*
|
||||||
|
* @param id Telegram审核记录ID
|
||||||
|
* @return Telegram审核记录
|
||||||
|
*/
|
||||||
|
public TelegramAuditRecord selectTelegramAuditRecordById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询Telegram审核记录列表
|
||||||
|
*
|
||||||
|
* @param telegramAuditRecord Telegram审核记录
|
||||||
|
* @return Telegram审核记录集合
|
||||||
|
*/
|
||||||
|
public List<TelegramAuditRecord> selectTelegramAuditRecordList(TelegramAuditRecord telegramAuditRecord);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增Telegram审核记录
|
||||||
|
*
|
||||||
|
* @param telegramAuditRecord Telegram审核记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertTelegramAuditRecord(TelegramAuditRecord telegramAuditRecord);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改Telegram审核记录
|
||||||
|
*
|
||||||
|
* @param telegramAuditRecord Telegram审核记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateTelegramAuditRecord(TelegramAuditRecord telegramAuditRecord);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除Telegram审核记录
|
||||||
|
*
|
||||||
|
* @param id Telegram审核记录ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteTelegramAuditRecordById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除Telegram审核记录
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteTelegramAuditRecordByIds(Long[] ids);
|
||||||
|
}
|
||||||
@@ -0,0 +1,89 @@
|
|||||||
|
package com.ruoyi.system.service;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.system.domain.TelegramAuditLog;
|
||||||
|
import com.ruoyi.system.domain.TelegramAuditLogPlus;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
|
||||||
|
import com.ruoyi.common.select.SelectItem;
|
||||||
|
/**
|
||||||
|
* Telegram审核审计日志Service接口
|
||||||
|
*
|
||||||
|
* @author luqj
|
||||||
|
* @date 2026-10-14
|
||||||
|
*/
|
||||||
|
public interface ITelegramAuditLogService extends IService<TelegramAuditLogPlus>
|
||||||
|
{
|
||||||
|
|
||||||
|
List<SelectItem> select(String keyword);
|
||||||
|
/**
|
||||||
|
* 查询Telegram审核审计日志
|
||||||
|
*
|
||||||
|
* @param id Telegram审核审计日志ID
|
||||||
|
* @return Telegram审核审计日志
|
||||||
|
*/
|
||||||
|
public TelegramAuditLog selectTelegramAuditLogById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询Telegram审核审计日志列表
|
||||||
|
*
|
||||||
|
* @param telegramAuditLog Telegram审核审计日志
|
||||||
|
* @return Telegram审核审计日志集合
|
||||||
|
*/
|
||||||
|
public List<TelegramAuditLog> selectTelegramAuditLogList(TelegramAuditLog telegramAuditLog);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增Telegram审核审计日志
|
||||||
|
*
|
||||||
|
* @param telegramAuditLog Telegram审核审计日志
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertTelegramAuditLog(TelegramAuditLog telegramAuditLog);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改Telegram审核审计日志
|
||||||
|
*
|
||||||
|
* @param telegramAuditLog Telegram审核审计日志
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateTelegramAuditLog(TelegramAuditLog telegramAuditLog);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除Telegram审核审计日志
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的Telegram审核审计日志ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteTelegramAuditLogByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除Telegram审核审计日志信息
|
||||||
|
*
|
||||||
|
* @param id Telegram审核审计日志ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteTelegramAuditLogById(Long id);
|
||||||
|
|
||||||
|
List<TelegramAuditLogPlus> getByIds(List<Long> ids, SFunction<TelegramAuditLogPlus, ?>... columns);
|
||||||
|
|
||||||
|
TelegramAuditLogPlus getById(Long id, SFunction<TelegramAuditLogPlus, ?>... columns);
|
||||||
|
|
||||||
|
Map<Long, TelegramAuditLogPlus> getMapByIds(List<Long> ids, SFunction<TelegramAuditLogPlus, ?>... columns);
|
||||||
|
|
||||||
|
List<TelegramAuditLogPlus> getByIds(List<Long> ids);
|
||||||
|
|
||||||
|
Map<Long, TelegramAuditLogPlus> getMapByIds(List<Long> ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param field sum 字段
|
||||||
|
* @param where 条件
|
||||||
|
* @param tClass 返回类型
|
||||||
|
* @param <T>
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
<T> T sum(String field, String where, Class<T> tClass);
|
||||||
|
|
||||||
|
Long count(String where);
|
||||||
|
|
||||||
|
<T> List<T> countByGroupBy(String select, String where, String groupby, Class<T> tClass);
|
||||||
|
}
|
||||||
+89
@@ -0,0 +1,89 @@
|
|||||||
|
package com.ruoyi.system.service;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.system.domain.TelegramAuditPushTask;
|
||||||
|
import com.ruoyi.system.domain.TelegramAuditPushTaskPlus;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
|
||||||
|
import com.ruoyi.common.select.SelectItem;
|
||||||
|
/**
|
||||||
|
* Telegram审核消息推送任务Service接口
|
||||||
|
*
|
||||||
|
* @author luqj
|
||||||
|
* @date 2026-10-14
|
||||||
|
*/
|
||||||
|
public interface ITelegramAuditPushTaskService extends IService<TelegramAuditPushTaskPlus>
|
||||||
|
{
|
||||||
|
|
||||||
|
List<SelectItem> select(String keyword);
|
||||||
|
/**
|
||||||
|
* 查询Telegram审核消息推送任务
|
||||||
|
*
|
||||||
|
* @param id Telegram审核消息推送任务ID
|
||||||
|
* @return Telegram审核消息推送任务
|
||||||
|
*/
|
||||||
|
public TelegramAuditPushTask selectTelegramAuditPushTaskById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询Telegram审核消息推送任务列表
|
||||||
|
*
|
||||||
|
* @param telegramAuditPushTask Telegram审核消息推送任务
|
||||||
|
* @return Telegram审核消息推送任务集合
|
||||||
|
*/
|
||||||
|
public List<TelegramAuditPushTask> selectTelegramAuditPushTaskList(TelegramAuditPushTask telegramAuditPushTask);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增Telegram审核消息推送任务
|
||||||
|
*
|
||||||
|
* @param telegramAuditPushTask Telegram审核消息推送任务
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertTelegramAuditPushTask(TelegramAuditPushTask telegramAuditPushTask);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改Telegram审核消息推送任务
|
||||||
|
*
|
||||||
|
* @param telegramAuditPushTask Telegram审核消息推送任务
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateTelegramAuditPushTask(TelegramAuditPushTask telegramAuditPushTask);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除Telegram审核消息推送任务
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的Telegram审核消息推送任务ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteTelegramAuditPushTaskByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除Telegram审核消息推送任务信息
|
||||||
|
*
|
||||||
|
* @param id Telegram审核消息推送任务ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteTelegramAuditPushTaskById(Long id);
|
||||||
|
|
||||||
|
List<TelegramAuditPushTaskPlus> getByIds(List<Long> ids, SFunction<TelegramAuditPushTaskPlus, ?>... columns);
|
||||||
|
|
||||||
|
TelegramAuditPushTaskPlus getById(Long id, SFunction<TelegramAuditPushTaskPlus, ?>... columns);
|
||||||
|
|
||||||
|
Map<Long, TelegramAuditPushTaskPlus> getMapByIds(List<Long> ids, SFunction<TelegramAuditPushTaskPlus, ?>... columns);
|
||||||
|
|
||||||
|
List<TelegramAuditPushTaskPlus> getByIds(List<Long> ids);
|
||||||
|
|
||||||
|
Map<Long, TelegramAuditPushTaskPlus> getMapByIds(List<Long> ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param field sum 字段
|
||||||
|
* @param where 条件
|
||||||
|
* @param tClass 返回类型
|
||||||
|
* @param <T>
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
<T> T sum(String field, String where, Class<T> tClass);
|
||||||
|
|
||||||
|
Long count(String where);
|
||||||
|
|
||||||
|
<T> List<T> countByGroupBy(String select, String where, String groupby, Class<T> tClass);
|
||||||
|
}
|
||||||
@@ -0,0 +1,89 @@
|
|||||||
|
package com.ruoyi.system.service;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.system.domain.TelegramAuditRecord;
|
||||||
|
import com.ruoyi.system.domain.TelegramAuditRecordPlus;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
|
||||||
|
import com.ruoyi.common.select.SelectItem;
|
||||||
|
/**
|
||||||
|
* Telegram审核记录Service接口
|
||||||
|
*
|
||||||
|
* @author luqj
|
||||||
|
* @date 2026-10-14
|
||||||
|
*/
|
||||||
|
public interface ITelegramAuditRecordService extends IService<TelegramAuditRecordPlus>
|
||||||
|
{
|
||||||
|
|
||||||
|
List<SelectItem> select(String keyword);
|
||||||
|
/**
|
||||||
|
* 查询Telegram审核记录
|
||||||
|
*
|
||||||
|
* @param id Telegram审核记录ID
|
||||||
|
* @return Telegram审核记录
|
||||||
|
*/
|
||||||
|
public TelegramAuditRecord selectTelegramAuditRecordById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询Telegram审核记录列表
|
||||||
|
*
|
||||||
|
* @param telegramAuditRecord Telegram审核记录
|
||||||
|
* @return Telegram审核记录集合
|
||||||
|
*/
|
||||||
|
public List<TelegramAuditRecord> selectTelegramAuditRecordList(TelegramAuditRecord telegramAuditRecord);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增Telegram审核记录
|
||||||
|
*
|
||||||
|
* @param telegramAuditRecord Telegram审核记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertTelegramAuditRecord(TelegramAuditRecord telegramAuditRecord);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改Telegram审核记录
|
||||||
|
*
|
||||||
|
* @param telegramAuditRecord Telegram审核记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateTelegramAuditRecord(TelegramAuditRecord telegramAuditRecord);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除Telegram审核记录
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的Telegram审核记录ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteTelegramAuditRecordByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除Telegram审核记录信息
|
||||||
|
*
|
||||||
|
* @param id Telegram审核记录ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteTelegramAuditRecordById(Long id);
|
||||||
|
|
||||||
|
List<TelegramAuditRecordPlus> getByIds(List<Long> ids, SFunction<TelegramAuditRecordPlus, ?>... columns);
|
||||||
|
|
||||||
|
TelegramAuditRecordPlus getById(Long id, SFunction<TelegramAuditRecordPlus, ?>... columns);
|
||||||
|
|
||||||
|
Map<Long, TelegramAuditRecordPlus> getMapByIds(List<Long> ids, SFunction<TelegramAuditRecordPlus, ?>... columns);
|
||||||
|
|
||||||
|
List<TelegramAuditRecordPlus> getByIds(List<Long> ids);
|
||||||
|
|
||||||
|
Map<Long, TelegramAuditRecordPlus> getMapByIds(List<Long> ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param field sum 字段
|
||||||
|
* @param where 条件
|
||||||
|
* @param tClass 返回类型
|
||||||
|
* @param <T>
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
<T> T sum(String field, String where, Class<T> tClass);
|
||||||
|
|
||||||
|
Long count(String where);
|
||||||
|
|
||||||
|
<T> List<T> countByGroupBy(String select, String where, String groupby, Class<T> tClass);
|
||||||
|
}
|
||||||
+205
@@ -0,0 +1,205 @@
|
|||||||
|
package com.ruoyi.system.service.impl;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.github.pagehelper.PageHelper;
|
||||||
|
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import com.ruoyi.common.utils.StringUtils;
|
||||||
|
import com.alibaba.fastjson.JSONArray;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ruoyi.system.mapper.TelegramAuditLogMapper;
|
||||||
|
import com.ruoyi.system.domain.TelegramAuditLog;
|
||||||
|
import com.ruoyi.system.domain.TelegramAuditLogPlus;
|
||||||
|
import com.ruoyi.system.service.ITelegramAuditLogService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.jdbc.core.JdbcTemplate;
|
||||||
|
import com.ruoyi.common.select.SelectItem;
|
||||||
|
/**
|
||||||
|
* Telegram审核审计日志Service业务层处理
|
||||||
|
*
|
||||||
|
* @author luqj
|
||||||
|
* @date 2026-10-14
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class TelegramAuditLogServiceImpl extends ServiceImpl<TelegramAuditLogMapper, TelegramAuditLogPlus> implements ITelegramAuditLogService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private TelegramAuditLogMapper telegramAuditLogMapper;
|
||||||
|
@Autowired
|
||||||
|
private JdbcTemplate jdbcTemplate;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<TelegramAuditLogPlus> getByIds(List<Long> ids, SFunction<TelegramAuditLogPlus, ?>... columns) {
|
||||||
|
LambdaQueryWrapper<TelegramAuditLogPlus> lambdaQueryWrapper = new LambdaQueryWrapper<TelegramAuditLogPlus>()
|
||||||
|
.select(columns).in(TelegramAuditLogPlus::getId, ids);
|
||||||
|
return this.list(lambdaQueryWrapper);
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public List<SelectItem> select(String keyword) {
|
||||||
|
LambdaQueryWrapper<TelegramAuditLogPlus> lambdaQueryWrapper = new LambdaQueryWrapper<TelegramAuditLogPlus>()
|
||||||
|
.select(TelegramAuditLogPlus::getId, TelegramAuditLogPlus::getComment)
|
||||||
|
.like(TelegramAuditLogPlus::getComment, keyword);
|
||||||
|
List<TelegramAuditLogPlus> list = this.list(lambdaQueryWrapper);
|
||||||
|
List<SelectItem> result =new ArrayList<>();
|
||||||
|
for (TelegramAuditLogPlus item : list){
|
||||||
|
SelectItem selectItem = new SelectItem();
|
||||||
|
selectItem.setName(item.getComment());
|
||||||
|
selectItem.setId(item.getId());
|
||||||
|
result.add(selectItem);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public TelegramAuditLogPlus getById(Long id, SFunction<TelegramAuditLogPlus, ?>... columns) {
|
||||||
|
LambdaQueryWrapper<TelegramAuditLogPlus> lambdaQueryWrapper = new LambdaQueryWrapper<TelegramAuditLogPlus>()
|
||||||
|
.select(columns).eq(TelegramAuditLogPlus::getId, id);
|
||||||
|
return baseMapper.selectOne(lambdaQueryWrapper);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Map<Long, TelegramAuditLogPlus> getMapByIds(List<Long> ids, SFunction<TelegramAuditLogPlus, ?>... columns) {
|
||||||
|
List<TelegramAuditLogPlus> list = this.getByIds(ids, columns);
|
||||||
|
Map<Long, TelegramAuditLogPlus> map = new HashMap<>();
|
||||||
|
for (TelegramAuditLogPlus item : list) {
|
||||||
|
map.put(item.getId(), item);
|
||||||
|
}
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Map<Long, TelegramAuditLogPlus> getMapByIds(List<Long> ids) {
|
||||||
|
List<TelegramAuditLogPlus> list = this.getByIds(ids);
|
||||||
|
Map<Long, TelegramAuditLogPlus> map = new HashMap<>();
|
||||||
|
for (TelegramAuditLogPlus item : list) {
|
||||||
|
map.put(item.getId(), item);
|
||||||
|
}
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<TelegramAuditLogPlus> getByIds(List<Long> ids) {
|
||||||
|
LambdaQueryWrapper<TelegramAuditLogPlus> lambdaQueryWrapper = new LambdaQueryWrapper<TelegramAuditLogPlus>().in(TelegramAuditLogPlus::getId, ids);
|
||||||
|
return this.list(lambdaQueryWrapper);
|
||||||
|
}
|
||||||
|
|
||||||
|
public <T> T sum(String field, String where, Class<T> tClass) {
|
||||||
|
StringBuffer stringBuffer = new StringBuffer();
|
||||||
|
stringBuffer.append("select ");
|
||||||
|
stringBuffer.append(" sum(" + field + ") as total ");
|
||||||
|
stringBuffer.append(" from telegram_audit_log ");
|
||||||
|
if (StringUtils.isNotBlank(where)) {
|
||||||
|
stringBuffer.append(" where ");
|
||||||
|
stringBuffer.append(where);
|
||||||
|
}
|
||||||
|
T result = jdbcTemplate.queryForObject(stringBuffer.toString(), tClass);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long count(String where) {
|
||||||
|
StringBuffer stringBuffer = new StringBuffer();
|
||||||
|
stringBuffer.append("select ");
|
||||||
|
stringBuffer.append(" count(1)");
|
||||||
|
stringBuffer.append(" from ");
|
||||||
|
stringBuffer.append(" telegram_audit_log ");
|
||||||
|
if (StringUtils.isNotBlank(where)) {
|
||||||
|
stringBuffer.append(" where ");
|
||||||
|
stringBuffer.append(where);
|
||||||
|
}
|
||||||
|
Long result = jdbcTemplate.queryForObject(stringBuffer.toString(), Long.class);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
public <T> List<T> countByGroupBy(String select, String where, String groupby, Class<T> tClass) {
|
||||||
|
StringBuffer stringBuffer = new StringBuffer();
|
||||||
|
stringBuffer.append("select ");
|
||||||
|
stringBuffer.append(select);
|
||||||
|
stringBuffer.append(" from ");
|
||||||
|
stringBuffer.append(" telegram_audit_log ");
|
||||||
|
if (StringUtils.isNotBlank(where)) {
|
||||||
|
stringBuffer.append(" where ");
|
||||||
|
stringBuffer.append(where);
|
||||||
|
}
|
||||||
|
stringBuffer.append(" group by ");
|
||||||
|
stringBuffer.append(groupby);
|
||||||
|
List result = jdbcTemplate.queryForList(stringBuffer.toString());
|
||||||
|
List<T> tList = JSONArray.parseArray(JSONArray.toJSONString(result), tClass);
|
||||||
|
return tList;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 查询Telegram审核审计日志
|
||||||
|
*
|
||||||
|
* @param id Telegram审核审计日志ID
|
||||||
|
* @return Telegram审核审计日志
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public TelegramAuditLog selectTelegramAuditLogById(Long id)
|
||||||
|
{
|
||||||
|
return telegramAuditLogMapper.selectTelegramAuditLogById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询Telegram审核审计日志列表
|
||||||
|
*
|
||||||
|
* @param telegramAuditLog Telegram审核审计日志
|
||||||
|
* @return Telegram审核审计日志
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<TelegramAuditLog> selectTelegramAuditLogList(TelegramAuditLog telegramAuditLog)
|
||||||
|
{
|
||||||
|
return telegramAuditLogMapper.selectTelegramAuditLogList(telegramAuditLog);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增Telegram审核审计日志
|
||||||
|
*
|
||||||
|
* @param telegramAuditLog Telegram审核审计日志
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertTelegramAuditLog(TelegramAuditLog telegramAuditLog)
|
||||||
|
{
|
||||||
|
return telegramAuditLogMapper.insertTelegramAuditLog(telegramAuditLog);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改Telegram审核审计日志
|
||||||
|
*
|
||||||
|
* @param telegramAuditLog Telegram审核审计日志
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateTelegramAuditLog(TelegramAuditLog telegramAuditLog)
|
||||||
|
{
|
||||||
|
return telegramAuditLogMapper.updateTelegramAuditLog(telegramAuditLog);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除Telegram审核审计日志
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的Telegram审核审计日志ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteTelegramAuditLogByIds(Long[] ids)
|
||||||
|
{
|
||||||
|
return telegramAuditLogMapper.deleteTelegramAuditLogByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除Telegram审核审计日志信息
|
||||||
|
*
|
||||||
|
* @param id Telegram审核审计日志ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteTelegramAuditLogById(Long id)
|
||||||
|
{
|
||||||
|
return telegramAuditLogMapper.deleteTelegramAuditLogById(id);
|
||||||
|
}
|
||||||
|
}
|
||||||
+205
@@ -0,0 +1,205 @@
|
|||||||
|
package com.ruoyi.system.service.impl;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.github.pagehelper.PageHelper;
|
||||||
|
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import com.ruoyi.common.utils.StringUtils;
|
||||||
|
import com.alibaba.fastjson.JSONArray;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ruoyi.system.mapper.TelegramAuditPushTaskMapper;
|
||||||
|
import com.ruoyi.system.domain.TelegramAuditPushTask;
|
||||||
|
import com.ruoyi.system.domain.TelegramAuditPushTaskPlus;
|
||||||
|
import com.ruoyi.system.service.ITelegramAuditPushTaskService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.jdbc.core.JdbcTemplate;
|
||||||
|
import com.ruoyi.common.select.SelectItem;
|
||||||
|
/**
|
||||||
|
* Telegram审核消息推送任务Service业务层处理
|
||||||
|
*
|
||||||
|
* @author luqj
|
||||||
|
* @date 2026-10-14
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class TelegramAuditPushTaskServiceImpl extends ServiceImpl<TelegramAuditPushTaskMapper, TelegramAuditPushTaskPlus> implements ITelegramAuditPushTaskService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private TelegramAuditPushTaskMapper telegramAuditPushTaskMapper;
|
||||||
|
@Autowired
|
||||||
|
private JdbcTemplate jdbcTemplate;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<TelegramAuditPushTaskPlus> getByIds(List<Long> ids, SFunction<TelegramAuditPushTaskPlus, ?>... columns) {
|
||||||
|
LambdaQueryWrapper<TelegramAuditPushTaskPlus> lambdaQueryWrapper = new LambdaQueryWrapper<TelegramAuditPushTaskPlus>()
|
||||||
|
.select(columns).in(TelegramAuditPushTaskPlus::getId, ids);
|
||||||
|
return this.list(lambdaQueryWrapper);
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public List<SelectItem> select(String keyword) {
|
||||||
|
LambdaQueryWrapper<TelegramAuditPushTaskPlus> lambdaQueryWrapper = new LambdaQueryWrapper<TelegramAuditPushTaskPlus>()
|
||||||
|
.select(TelegramAuditPushTaskPlus::getId, TelegramAuditPushTaskPlus::getAuditNo)
|
||||||
|
.like(TelegramAuditPushTaskPlus::getAuditNo, keyword);
|
||||||
|
List<TelegramAuditPushTaskPlus> list = this.list(lambdaQueryWrapper);
|
||||||
|
List<SelectItem> result =new ArrayList<>();
|
||||||
|
for (TelegramAuditPushTaskPlus item : list){
|
||||||
|
SelectItem selectItem = new SelectItem();
|
||||||
|
selectItem.setName(item.getAuditNo());
|
||||||
|
selectItem.setId(item.getId());
|
||||||
|
result.add(selectItem);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public TelegramAuditPushTaskPlus getById(Long id, SFunction<TelegramAuditPushTaskPlus, ?>... columns) {
|
||||||
|
LambdaQueryWrapper<TelegramAuditPushTaskPlus> lambdaQueryWrapper = new LambdaQueryWrapper<TelegramAuditPushTaskPlus>()
|
||||||
|
.select(columns).eq(TelegramAuditPushTaskPlus::getId, id);
|
||||||
|
return baseMapper.selectOne(lambdaQueryWrapper);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Map<Long, TelegramAuditPushTaskPlus> getMapByIds(List<Long> ids, SFunction<TelegramAuditPushTaskPlus, ?>... columns) {
|
||||||
|
List<TelegramAuditPushTaskPlus> list = this.getByIds(ids, columns);
|
||||||
|
Map<Long, TelegramAuditPushTaskPlus> map = new HashMap<>();
|
||||||
|
for (TelegramAuditPushTaskPlus item : list) {
|
||||||
|
map.put(item.getId(), item);
|
||||||
|
}
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Map<Long, TelegramAuditPushTaskPlus> getMapByIds(List<Long> ids) {
|
||||||
|
List<TelegramAuditPushTaskPlus> list = this.getByIds(ids);
|
||||||
|
Map<Long, TelegramAuditPushTaskPlus> map = new HashMap<>();
|
||||||
|
for (TelegramAuditPushTaskPlus item : list) {
|
||||||
|
map.put(item.getId(), item);
|
||||||
|
}
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<TelegramAuditPushTaskPlus> getByIds(List<Long> ids) {
|
||||||
|
LambdaQueryWrapper<TelegramAuditPushTaskPlus> lambdaQueryWrapper = new LambdaQueryWrapper<TelegramAuditPushTaskPlus>().in(TelegramAuditPushTaskPlus::getId, ids);
|
||||||
|
return this.list(lambdaQueryWrapper);
|
||||||
|
}
|
||||||
|
|
||||||
|
public <T> T sum(String field, String where, Class<T> tClass) {
|
||||||
|
StringBuffer stringBuffer = new StringBuffer();
|
||||||
|
stringBuffer.append("select ");
|
||||||
|
stringBuffer.append(" sum(" + field + ") as total ");
|
||||||
|
stringBuffer.append(" from telegram_audit_push_task ");
|
||||||
|
if (StringUtils.isNotBlank(where)) {
|
||||||
|
stringBuffer.append(" where ");
|
||||||
|
stringBuffer.append(where);
|
||||||
|
}
|
||||||
|
T result = jdbcTemplate.queryForObject(stringBuffer.toString(), tClass);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long count(String where) {
|
||||||
|
StringBuffer stringBuffer = new StringBuffer();
|
||||||
|
stringBuffer.append("select ");
|
||||||
|
stringBuffer.append(" count(1)");
|
||||||
|
stringBuffer.append(" from ");
|
||||||
|
stringBuffer.append(" telegram_audit_push_task ");
|
||||||
|
if (StringUtils.isNotBlank(where)) {
|
||||||
|
stringBuffer.append(" where ");
|
||||||
|
stringBuffer.append(where);
|
||||||
|
}
|
||||||
|
Long result = jdbcTemplate.queryForObject(stringBuffer.toString(), Long.class);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
public <T> List<T> countByGroupBy(String select, String where, String groupby, Class<T> tClass) {
|
||||||
|
StringBuffer stringBuffer = new StringBuffer();
|
||||||
|
stringBuffer.append("select ");
|
||||||
|
stringBuffer.append(select);
|
||||||
|
stringBuffer.append(" from ");
|
||||||
|
stringBuffer.append(" telegram_audit_push_task ");
|
||||||
|
if (StringUtils.isNotBlank(where)) {
|
||||||
|
stringBuffer.append(" where ");
|
||||||
|
stringBuffer.append(where);
|
||||||
|
}
|
||||||
|
stringBuffer.append(" group by ");
|
||||||
|
stringBuffer.append(groupby);
|
||||||
|
List result = jdbcTemplate.queryForList(stringBuffer.toString());
|
||||||
|
List<T> tList = JSONArray.parseArray(JSONArray.toJSONString(result), tClass);
|
||||||
|
return tList;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 查询Telegram审核消息推送任务
|
||||||
|
*
|
||||||
|
* @param id Telegram审核消息推送任务ID
|
||||||
|
* @return Telegram审核消息推送任务
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public TelegramAuditPushTask selectTelegramAuditPushTaskById(Long id)
|
||||||
|
{
|
||||||
|
return telegramAuditPushTaskMapper.selectTelegramAuditPushTaskById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询Telegram审核消息推送任务列表
|
||||||
|
*
|
||||||
|
* @param telegramAuditPushTask Telegram审核消息推送任务
|
||||||
|
* @return Telegram审核消息推送任务
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<TelegramAuditPushTask> selectTelegramAuditPushTaskList(TelegramAuditPushTask telegramAuditPushTask)
|
||||||
|
{
|
||||||
|
return telegramAuditPushTaskMapper.selectTelegramAuditPushTaskList(telegramAuditPushTask);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增Telegram审核消息推送任务
|
||||||
|
*
|
||||||
|
* @param telegramAuditPushTask Telegram审核消息推送任务
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertTelegramAuditPushTask(TelegramAuditPushTask telegramAuditPushTask)
|
||||||
|
{
|
||||||
|
return telegramAuditPushTaskMapper.insertTelegramAuditPushTask(telegramAuditPushTask);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改Telegram审核消息推送任务
|
||||||
|
*
|
||||||
|
* @param telegramAuditPushTask Telegram审核消息推送任务
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateTelegramAuditPushTask(TelegramAuditPushTask telegramAuditPushTask)
|
||||||
|
{
|
||||||
|
return telegramAuditPushTaskMapper.updateTelegramAuditPushTask(telegramAuditPushTask);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除Telegram审核消息推送任务
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的Telegram审核消息推送任务ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteTelegramAuditPushTaskByIds(Long[] ids)
|
||||||
|
{
|
||||||
|
return telegramAuditPushTaskMapper.deleteTelegramAuditPushTaskByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除Telegram审核消息推送任务信息
|
||||||
|
*
|
||||||
|
* @param id Telegram审核消息推送任务ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteTelegramAuditPushTaskById(Long id)
|
||||||
|
{
|
||||||
|
return telegramAuditPushTaskMapper.deleteTelegramAuditPushTaskById(id);
|
||||||
|
}
|
||||||
|
}
|
||||||
+205
@@ -0,0 +1,205 @@
|
|||||||
|
package com.ruoyi.system.service.impl;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.github.pagehelper.PageHelper;
|
||||||
|
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import com.ruoyi.common.utils.StringUtils;
|
||||||
|
import com.alibaba.fastjson.JSONArray;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ruoyi.system.mapper.TelegramAuditRecordMapper;
|
||||||
|
import com.ruoyi.system.domain.TelegramAuditRecord;
|
||||||
|
import com.ruoyi.system.domain.TelegramAuditRecordPlus;
|
||||||
|
import com.ruoyi.system.service.ITelegramAuditRecordService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.jdbc.core.JdbcTemplate;
|
||||||
|
import com.ruoyi.common.select.SelectItem;
|
||||||
|
/**
|
||||||
|
* Telegram审核记录Service业务层处理
|
||||||
|
*
|
||||||
|
* @author luqj
|
||||||
|
* @date 2026-10-14
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class TelegramAuditRecordServiceImpl extends ServiceImpl<TelegramAuditRecordMapper, TelegramAuditRecordPlus> implements ITelegramAuditRecordService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private TelegramAuditRecordMapper telegramAuditRecordMapper;
|
||||||
|
@Autowired
|
||||||
|
private JdbcTemplate jdbcTemplate;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<TelegramAuditRecordPlus> getByIds(List<Long> ids, SFunction<TelegramAuditRecordPlus, ?>... columns) {
|
||||||
|
LambdaQueryWrapper<TelegramAuditRecordPlus> lambdaQueryWrapper = new LambdaQueryWrapper<TelegramAuditRecordPlus>()
|
||||||
|
.select(columns).in(TelegramAuditRecordPlus::getId, ids);
|
||||||
|
return this.list(lambdaQueryWrapper);
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public List<SelectItem> select(String keyword) {
|
||||||
|
LambdaQueryWrapper<TelegramAuditRecordPlus> lambdaQueryWrapper = new LambdaQueryWrapper<TelegramAuditRecordPlus>()
|
||||||
|
.select(TelegramAuditRecordPlus::getId, TelegramAuditRecordPlus::getAuditNo)
|
||||||
|
.like(TelegramAuditRecordPlus::getAuditNo, keyword);
|
||||||
|
List<TelegramAuditRecordPlus> list = this.list(lambdaQueryWrapper);
|
||||||
|
List<SelectItem> result =new ArrayList<>();
|
||||||
|
for (TelegramAuditRecordPlus item : list){
|
||||||
|
SelectItem selectItem = new SelectItem();
|
||||||
|
selectItem.setName(item.getAuditNo());
|
||||||
|
selectItem.setId(item.getId());
|
||||||
|
result.add(selectItem);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public TelegramAuditRecordPlus getById(Long id, SFunction<TelegramAuditRecordPlus, ?>... columns) {
|
||||||
|
LambdaQueryWrapper<TelegramAuditRecordPlus> lambdaQueryWrapper = new LambdaQueryWrapper<TelegramAuditRecordPlus>()
|
||||||
|
.select(columns).eq(TelegramAuditRecordPlus::getId, id);
|
||||||
|
return baseMapper.selectOne(lambdaQueryWrapper);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Map<Long, TelegramAuditRecordPlus> getMapByIds(List<Long> ids, SFunction<TelegramAuditRecordPlus, ?>... columns) {
|
||||||
|
List<TelegramAuditRecordPlus> list = this.getByIds(ids, columns);
|
||||||
|
Map<Long, TelegramAuditRecordPlus> map = new HashMap<>();
|
||||||
|
for (TelegramAuditRecordPlus item : list) {
|
||||||
|
map.put(item.getId(), item);
|
||||||
|
}
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Map<Long, TelegramAuditRecordPlus> getMapByIds(List<Long> ids) {
|
||||||
|
List<TelegramAuditRecordPlus> list = this.getByIds(ids);
|
||||||
|
Map<Long, TelegramAuditRecordPlus> map = new HashMap<>();
|
||||||
|
for (TelegramAuditRecordPlus item : list) {
|
||||||
|
map.put(item.getId(), item);
|
||||||
|
}
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<TelegramAuditRecordPlus> getByIds(List<Long> ids) {
|
||||||
|
LambdaQueryWrapper<TelegramAuditRecordPlus> lambdaQueryWrapper = new LambdaQueryWrapper<TelegramAuditRecordPlus>().in(TelegramAuditRecordPlus::getId, ids);
|
||||||
|
return this.list(lambdaQueryWrapper);
|
||||||
|
}
|
||||||
|
|
||||||
|
public <T> T sum(String field, String where, Class<T> tClass) {
|
||||||
|
StringBuffer stringBuffer = new StringBuffer();
|
||||||
|
stringBuffer.append("select ");
|
||||||
|
stringBuffer.append(" sum(" + field + ") as total ");
|
||||||
|
stringBuffer.append(" from telegram_audit_record ");
|
||||||
|
if (StringUtils.isNotBlank(where)) {
|
||||||
|
stringBuffer.append(" where ");
|
||||||
|
stringBuffer.append(where);
|
||||||
|
}
|
||||||
|
T result = jdbcTemplate.queryForObject(stringBuffer.toString(), tClass);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long count(String where) {
|
||||||
|
StringBuffer stringBuffer = new StringBuffer();
|
||||||
|
stringBuffer.append("select ");
|
||||||
|
stringBuffer.append(" count(1)");
|
||||||
|
stringBuffer.append(" from ");
|
||||||
|
stringBuffer.append(" telegram_audit_record ");
|
||||||
|
if (StringUtils.isNotBlank(where)) {
|
||||||
|
stringBuffer.append(" where ");
|
||||||
|
stringBuffer.append(where);
|
||||||
|
}
|
||||||
|
Long result = jdbcTemplate.queryForObject(stringBuffer.toString(), Long.class);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
public <T> List<T> countByGroupBy(String select, String where, String groupby, Class<T> tClass) {
|
||||||
|
StringBuffer stringBuffer = new StringBuffer();
|
||||||
|
stringBuffer.append("select ");
|
||||||
|
stringBuffer.append(select);
|
||||||
|
stringBuffer.append(" from ");
|
||||||
|
stringBuffer.append(" telegram_audit_record ");
|
||||||
|
if (StringUtils.isNotBlank(where)) {
|
||||||
|
stringBuffer.append(" where ");
|
||||||
|
stringBuffer.append(where);
|
||||||
|
}
|
||||||
|
stringBuffer.append(" group by ");
|
||||||
|
stringBuffer.append(groupby);
|
||||||
|
List result = jdbcTemplate.queryForList(stringBuffer.toString());
|
||||||
|
List<T> tList = JSONArray.parseArray(JSONArray.toJSONString(result), tClass);
|
||||||
|
return tList;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 查询Telegram审核记录
|
||||||
|
*
|
||||||
|
* @param id Telegram审核记录ID
|
||||||
|
* @return Telegram审核记录
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public TelegramAuditRecord selectTelegramAuditRecordById(Long id)
|
||||||
|
{
|
||||||
|
return telegramAuditRecordMapper.selectTelegramAuditRecordById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询Telegram审核记录列表
|
||||||
|
*
|
||||||
|
* @param telegramAuditRecord Telegram审核记录
|
||||||
|
* @return Telegram审核记录
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<TelegramAuditRecord> selectTelegramAuditRecordList(TelegramAuditRecord telegramAuditRecord)
|
||||||
|
{
|
||||||
|
return telegramAuditRecordMapper.selectTelegramAuditRecordList(telegramAuditRecord);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增Telegram审核记录
|
||||||
|
*
|
||||||
|
* @param telegramAuditRecord Telegram审核记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertTelegramAuditRecord(TelegramAuditRecord telegramAuditRecord)
|
||||||
|
{
|
||||||
|
return telegramAuditRecordMapper.insertTelegramAuditRecord(telegramAuditRecord);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改Telegram审核记录
|
||||||
|
*
|
||||||
|
* @param telegramAuditRecord Telegram审核记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateTelegramAuditRecord(TelegramAuditRecord telegramAuditRecord)
|
||||||
|
{
|
||||||
|
return telegramAuditRecordMapper.updateTelegramAuditRecord(telegramAuditRecord);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除Telegram审核记录
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的Telegram审核记录ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteTelegramAuditRecordByIds(Long[] ids)
|
||||||
|
{
|
||||||
|
return telegramAuditRecordMapper.deleteTelegramAuditRecordByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除Telegram审核记录信息
|
||||||
|
*
|
||||||
|
* @param id Telegram审核记录ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteTelegramAuditRecordById(Long id)
|
||||||
|
{
|
||||||
|
return telegramAuditRecordMapper.deleteTelegramAuditRecordById(id);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,101 @@
|
|||||||
|
<?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.ruoyi.system.mapper.TelegramAuditLogMapper">
|
||||||
|
|
||||||
|
<resultMap type="TelegramAuditLog" id="TelegramAuditLogResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="auditNo" column="audit_no" />
|
||||||
|
<result property="telegramUpdateId" column="telegram_update_id" />
|
||||||
|
<result property="telegramCallbackQueryId" column="telegram_callback_query_id" />
|
||||||
|
<result property="telegramUserId" column="telegram_user_id" />
|
||||||
|
<result property="telegramUsername" column="telegram_username" />
|
||||||
|
<result property="action" column="action" />
|
||||||
|
<result property="oldStatus" column="old_status" />
|
||||||
|
<result property="newStatus" column="new_status" />
|
||||||
|
<result property="comment" column="comment" />
|
||||||
|
<result property="createdAt" column="created_at" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectTelegramAuditLogVo">
|
||||||
|
select id, audit_no, telegram_update_id, telegram_callback_query_id, telegram_user_id, telegram_username, action, old_status, new_status, comment, created_at from telegram_audit_log
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectTelegramAuditLogList" parameterType="TelegramAuditLog" resultMap="TelegramAuditLogResult">
|
||||||
|
<include refid="selectTelegramAuditLogVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="auditNo != null and auditNo != ''"> and audit_no = #{auditNo}</if>
|
||||||
|
<if test="telegramUpdateId != null "> and telegram_update_id = #{telegramUpdateId}</if>
|
||||||
|
<if test="telegramCallbackQueryId != null and telegramCallbackQueryId != ''"> and telegram_callback_query_id = #{telegramCallbackQueryId}</if>
|
||||||
|
<if test="telegramUserId != null and telegramUserId != ''"> and telegram_user_id = #{telegramUserId}</if>
|
||||||
|
<if test="telegramUsername != null and telegramUsername != ''"> and telegram_username like concat('%', #{telegramUsername}, '%')</if>
|
||||||
|
<if test="action != null and action != ''"> and action = #{action}</if>
|
||||||
|
<if test="oldStatus != null and oldStatus != ''"> and old_status = #{oldStatus}</if>
|
||||||
|
<if test="newStatus != null and newStatus != ''"> and new_status = #{newStatus}</if>
|
||||||
|
<if test="comment != null and comment != ''"> and comment = #{comment}</if>
|
||||||
|
<if test="createdAt != null "> and created_at = #{createdAt}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectTelegramAuditLogById" parameterType="Long" resultMap="TelegramAuditLogResult">
|
||||||
|
<include refid="selectTelegramAuditLogVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertTelegramAuditLog" parameterType="TelegramAuditLog" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
insert into telegram_audit_log
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="auditNo != null and auditNo != ''">audit_no,</if>
|
||||||
|
<if test="telegramUpdateId != null">telegram_update_id,</if>
|
||||||
|
<if test="telegramCallbackQueryId != null">telegram_callback_query_id,</if>
|
||||||
|
<if test="telegramUserId != null">telegram_user_id,</if>
|
||||||
|
<if test="telegramUsername != null">telegram_username,</if>
|
||||||
|
<if test="action != null and action != ''">action,</if>
|
||||||
|
<if test="oldStatus != null">old_status,</if>
|
||||||
|
<if test="newStatus != null">new_status,</if>
|
||||||
|
<if test="comment != null">comment,</if>
|
||||||
|
<if test="createdAt != null">created_at,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="auditNo != null and auditNo != ''">#{auditNo},</if>
|
||||||
|
<if test="telegramUpdateId != null">#{telegramUpdateId},</if>
|
||||||
|
<if test="telegramCallbackQueryId != null">#{telegramCallbackQueryId},</if>
|
||||||
|
<if test="telegramUserId != null">#{telegramUserId},</if>
|
||||||
|
<if test="telegramUsername != null">#{telegramUsername},</if>
|
||||||
|
<if test="action != null and action != ''">#{action},</if>
|
||||||
|
<if test="oldStatus != null">#{oldStatus},</if>
|
||||||
|
<if test="newStatus != null">#{newStatus},</if>
|
||||||
|
<if test="comment != null">#{comment},</if>
|
||||||
|
<if test="createdAt != null">#{createdAt},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateTelegramAuditLog" parameterType="TelegramAuditLog">
|
||||||
|
update telegram_audit_log
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="auditNo != null and auditNo != ''">audit_no = #{auditNo},</if>
|
||||||
|
<if test="telegramUpdateId != null">telegram_update_id = #{telegramUpdateId},</if>
|
||||||
|
<if test="telegramCallbackQueryId != null">telegram_callback_query_id = #{telegramCallbackQueryId},</if>
|
||||||
|
<if test="telegramUserId != null">telegram_user_id = #{telegramUserId},</if>
|
||||||
|
<if test="telegramUsername != null">telegram_username = #{telegramUsername},</if>
|
||||||
|
<if test="action != null and action != ''">action = #{action},</if>
|
||||||
|
<if test="oldStatus != null">old_status = #{oldStatus},</if>
|
||||||
|
<if test="newStatus != null">new_status = #{newStatus},</if>
|
||||||
|
<if test="comment != null">comment = #{comment},</if>
|
||||||
|
<if test="createdAt != null">created_at = #{createdAt},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteTelegramAuditLogById" parameterType="Long">
|
||||||
|
delete from telegram_audit_log where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteTelegramAuditLogByIds" parameterType="String">
|
||||||
|
delete from telegram_audit_log where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
||||||
@@ -0,0 +1,86 @@
|
|||||||
|
<?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.ruoyi.system.mapper.TelegramAuditPushTaskMapper">
|
||||||
|
|
||||||
|
<resultMap type="TelegramAuditPushTask" id="TelegramAuditPushTaskResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="auditNo" column="audit_no" />
|
||||||
|
<result property="taskStatus" column="task_status" />
|
||||||
|
<result property="retryCount" column="retry_count" />
|
||||||
|
<result property="nextRetryAt" column="next_retry_at" />
|
||||||
|
<result property="lastError" column="last_error" />
|
||||||
|
<result property="createdAt" column="created_at" />
|
||||||
|
<result property="updatedAt" column="updated_at" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectTelegramAuditPushTaskVo">
|
||||||
|
select id, audit_no, task_status, retry_count, next_retry_at, last_error, created_at, updated_at from telegram_audit_push_task
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectTelegramAuditPushTaskList" parameterType="TelegramAuditPushTask" resultMap="TelegramAuditPushTaskResult">
|
||||||
|
<include refid="selectTelegramAuditPushTaskVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="auditNo != null and auditNo != ''"> and audit_no = #{auditNo}</if>
|
||||||
|
<if test="taskStatus != null and taskStatus != ''"> and task_status = #{taskStatus}</if>
|
||||||
|
<if test="retryCount != null "> and retry_count = #{retryCount}</if>
|
||||||
|
<if test="nextRetryAt != null "> and next_retry_at = #{nextRetryAt}</if>
|
||||||
|
<if test="lastError != null and lastError != ''"> and last_error = #{lastError}</if>
|
||||||
|
<if test="createdAt != null "> and created_at = #{createdAt}</if>
|
||||||
|
<if test="updatedAt != null "> and updated_at = #{updatedAt}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectTelegramAuditPushTaskById" parameterType="Long" resultMap="TelegramAuditPushTaskResult">
|
||||||
|
<include refid="selectTelegramAuditPushTaskVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertTelegramAuditPushTask" parameterType="TelegramAuditPushTask" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
insert into telegram_audit_push_task
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="auditNo != null and auditNo != ''">audit_no,</if>
|
||||||
|
<if test="taskStatus != null and taskStatus != ''">task_status,</if>
|
||||||
|
<if test="retryCount != null">retry_count,</if>
|
||||||
|
<if test="nextRetryAt != null">next_retry_at,</if>
|
||||||
|
<if test="lastError != null">last_error,</if>
|
||||||
|
<if test="createdAt != null">created_at,</if>
|
||||||
|
<if test="updatedAt != null">updated_at,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="auditNo != null and auditNo != ''">#{auditNo},</if>
|
||||||
|
<if test="taskStatus != null and taskStatus != ''">#{taskStatus},</if>
|
||||||
|
<if test="retryCount != null">#{retryCount},</if>
|
||||||
|
<if test="nextRetryAt != null">#{nextRetryAt},</if>
|
||||||
|
<if test="lastError != null">#{lastError},</if>
|
||||||
|
<if test="createdAt != null">#{createdAt},</if>
|
||||||
|
<if test="updatedAt != null">#{updatedAt},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateTelegramAuditPushTask" parameterType="TelegramAuditPushTask">
|
||||||
|
update telegram_audit_push_task
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="auditNo != null and auditNo != ''">audit_no = #{auditNo},</if>
|
||||||
|
<if test="taskStatus != null and taskStatus != ''">task_status = #{taskStatus},</if>
|
||||||
|
<if test="retryCount != null">retry_count = #{retryCount},</if>
|
||||||
|
<if test="nextRetryAt != null">next_retry_at = #{nextRetryAt},</if>
|
||||||
|
<if test="lastError != null">last_error = #{lastError},</if>
|
||||||
|
<if test="createdAt != null">created_at = #{createdAt},</if>
|
||||||
|
<if test="updatedAt != null">updated_at = #{updatedAt},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteTelegramAuditPushTaskById" parameterType="Long">
|
||||||
|
delete from telegram_audit_push_task where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteTelegramAuditPushTaskByIds" parameterType="String">
|
||||||
|
delete from telegram_audit_push_task where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
||||||
@@ -0,0 +1,121 @@
|
|||||||
|
<?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.ruoyi.system.mapper.TelegramAuditRecordMapper">
|
||||||
|
|
||||||
|
<resultMap type="TelegramAuditRecord" id="TelegramAuditRecordResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="auditNo" column="audit_no" />
|
||||||
|
<result property="businessType" column="business_type" />
|
||||||
|
<result property="businessId" column="business_id" />
|
||||||
|
<result property="title" column="title" />
|
||||||
|
<result property="payload" column="payload" />
|
||||||
|
<result property="auditStatus" column="audit_status" />
|
||||||
|
<result property="telegramChatId" column="telegram_chat_id" />
|
||||||
|
<result property="telegramMessageId" column="telegram_message_id" />
|
||||||
|
<result property="reviewerTelegramId" column="reviewer_telegram_id" />
|
||||||
|
<result property="reviewerName" column="reviewer_name" />
|
||||||
|
<result property="reviewComment" column="review_comment" />
|
||||||
|
<result property="reviewedAt" column="reviewed_at" />
|
||||||
|
<result property="createdAt" column="created_at" />
|
||||||
|
<result property="updatedAt" column="updated_at" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectTelegramAuditRecordVo">
|
||||||
|
select id, audit_no, business_type, business_id, title, payload, audit_status, telegram_chat_id, telegram_message_id, reviewer_telegram_id, reviewer_name, review_comment, reviewed_at, created_at, updated_at from telegram_audit_record
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectTelegramAuditRecordList" parameterType="TelegramAuditRecord" resultMap="TelegramAuditRecordResult">
|
||||||
|
<include refid="selectTelegramAuditRecordVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="auditNo != null and auditNo != ''"> and audit_no = #{auditNo}</if>
|
||||||
|
<if test="businessType != null and businessType != ''"> and business_type = #{businessType}</if>
|
||||||
|
<if test="businessId != null and businessId != ''"> and business_id = #{businessId}</if>
|
||||||
|
<if test="title != null and title != ''"> and title = #{title}</if>
|
||||||
|
<if test="payload != null and payload != ''"> and payload = #{payload}</if>
|
||||||
|
<if test="auditStatus != null and auditStatus != ''"> and audit_status = #{auditStatus}</if>
|
||||||
|
<if test="telegramChatId != null and telegramChatId != ''"> and telegram_chat_id = #{telegramChatId}</if>
|
||||||
|
<if test="telegramMessageId != null "> and telegram_message_id = #{telegramMessageId}</if>
|
||||||
|
<if test="reviewerTelegramId != null and reviewerTelegramId != ''"> and reviewer_telegram_id = #{reviewerTelegramId}</if>
|
||||||
|
<if test="reviewerName != null and reviewerName != ''"> and reviewer_name like concat('%', #{reviewerName}, '%')</if>
|
||||||
|
<if test="reviewComment != null and reviewComment != ''"> and review_comment = #{reviewComment}</if>
|
||||||
|
<if test="reviewedAt != null "> and reviewed_at = #{reviewedAt}</if>
|
||||||
|
<if test="createdAt != null "> and created_at = #{createdAt}</if>
|
||||||
|
<if test="updatedAt != null "> and updated_at = #{updatedAt}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectTelegramAuditRecordById" parameterType="Long" resultMap="TelegramAuditRecordResult">
|
||||||
|
<include refid="selectTelegramAuditRecordVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertTelegramAuditRecord" parameterType="TelegramAuditRecord" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
insert into telegram_audit_record
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="auditNo != null and auditNo != ''">audit_no,</if>
|
||||||
|
<if test="businessType != null and businessType != ''">business_type,</if>
|
||||||
|
<if test="businessId != null and businessId != ''">business_id,</if>
|
||||||
|
<if test="title != null and title != ''">title,</if>
|
||||||
|
<if test="payload != null and payload != ''">payload,</if>
|
||||||
|
<if test="auditStatus != null and auditStatus != ''">audit_status,</if>
|
||||||
|
<if test="telegramChatId != null">telegram_chat_id,</if>
|
||||||
|
<if test="telegramMessageId != null">telegram_message_id,</if>
|
||||||
|
<if test="reviewerTelegramId != null">reviewer_telegram_id,</if>
|
||||||
|
<if test="reviewerName != null">reviewer_name,</if>
|
||||||
|
<if test="reviewComment != null">review_comment,</if>
|
||||||
|
<if test="reviewedAt != null">reviewed_at,</if>
|
||||||
|
<if test="createdAt != null">created_at,</if>
|
||||||
|
<if test="updatedAt != null">updated_at,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="auditNo != null and auditNo != ''">#{auditNo},</if>
|
||||||
|
<if test="businessType != null and businessType != ''">#{businessType},</if>
|
||||||
|
<if test="businessId != null and businessId != ''">#{businessId},</if>
|
||||||
|
<if test="title != null and title != ''">#{title},</if>
|
||||||
|
<if test="payload != null and payload != ''">#{payload},</if>
|
||||||
|
<if test="auditStatus != null and auditStatus != ''">#{auditStatus},</if>
|
||||||
|
<if test="telegramChatId != null">#{telegramChatId},</if>
|
||||||
|
<if test="telegramMessageId != null">#{telegramMessageId},</if>
|
||||||
|
<if test="reviewerTelegramId != null">#{reviewerTelegramId},</if>
|
||||||
|
<if test="reviewerName != null">#{reviewerName},</if>
|
||||||
|
<if test="reviewComment != null">#{reviewComment},</if>
|
||||||
|
<if test="reviewedAt != null">#{reviewedAt},</if>
|
||||||
|
<if test="createdAt != null">#{createdAt},</if>
|
||||||
|
<if test="updatedAt != null">#{updatedAt},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateTelegramAuditRecord" parameterType="TelegramAuditRecord">
|
||||||
|
update telegram_audit_record
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="auditNo != null and auditNo != ''">audit_no = #{auditNo},</if>
|
||||||
|
<if test="businessType != null and businessType != ''">business_type = #{businessType},</if>
|
||||||
|
<if test="businessId != null and businessId != ''">business_id = #{businessId},</if>
|
||||||
|
<if test="title != null and title != ''">title = #{title},</if>
|
||||||
|
<if test="payload != null and payload != ''">payload = #{payload},</if>
|
||||||
|
<if test="auditStatus != null and auditStatus != ''">audit_status = #{auditStatus},</if>
|
||||||
|
<if test="telegramChatId != null">telegram_chat_id = #{telegramChatId},</if>
|
||||||
|
<if test="telegramMessageId != null">telegram_message_id = #{telegramMessageId},</if>
|
||||||
|
<if test="reviewerTelegramId != null">reviewer_telegram_id = #{reviewerTelegramId},</if>
|
||||||
|
<if test="reviewerName != null">reviewer_name = #{reviewerName},</if>
|
||||||
|
<if test="reviewComment != null">review_comment = #{reviewComment},</if>
|
||||||
|
<if test="reviewedAt != null">reviewed_at = #{reviewedAt},</if>
|
||||||
|
<if test="createdAt != null">created_at = #{createdAt},</if>
|
||||||
|
<if test="updatedAt != null">updated_at = #{updatedAt},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteTelegramAuditRecordById" parameterType="Long">
|
||||||
|
delete from telegram_audit_record where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteTelegramAuditRecordByIds" parameterType="String">
|
||||||
|
delete from telegram_audit_record where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
||||||
Reference in new issue
Block a user