举报核查接口开发

This commit is contained in:
zhangchaoyang02 2025-03-21 20:39:54 +08:00
parent d8dd3f0cb1
commit 45ccc5fa74
3 changed files with 4 additions and 0 deletions

View File

@ -25,6 +25,7 @@ public class ReportCheckController {
private final ReportCheckService reportCheckService;
public ReportCheckController(ReportCheckService reportCheckService) {
this.reportCheckService = reportCheckService;
}

View File

@ -29,6 +29,8 @@ import java.util.Set;
@NoArgsConstructor
@AllArgsConstructor
public class ReportCheck extends BaseModel {
/**
* 唯一ID
*/

View File

@ -103,6 +103,7 @@ public class ReportCheckService {
// 检验加密签名保存
ReportCheck finalReportCheck = reportCheck;
Optional.ofNullable(reportCheck.getReporterPhone()).filter(StringUtils::hasText).ifPresent(s-> finalReportCheck.setSginData(KmsServer.kmsSign(s)));
ReportCheck save = reportCheckRepo.save(finalReportCheck);
saveOPer(save, user, "add".equals(type) ? "新增" : "普通修改", now);
if (null != files) {