|
|
|
@ -33,7 +33,7 @@ public class CryptoSensitiveController extends BaseController { |
|
|
|
* |
|
|
|
* @param loginName 账号过滤条件,为空则初始化全部存量用户 |
|
|
|
*/ |
|
|
|
@Log(title = "密评数据初始化", businessType = BusinessType.OTHER) |
|
|
|
// @Log(title = "密评数据初始化", businessType = BusinessType.OTHER)
|
|
|
|
@PostMapping("/initSysUser") |
|
|
|
public R<Map<String, Integer>> initSysUser(String loginName) { |
|
|
|
if (loginName == null){ |
|
|
|
@ -42,17 +42,16 @@ public class CryptoSensitiveController extends BaseController { |
|
|
|
return R.ok(cryptoSensitiveHsmService.initSysUserSensitiveData(loginName)); |
|
|
|
} |
|
|
|
|
|
|
|
// /**
|
|
|
|
// * 初始化 sys_user 历史存量数据到 crypto_integrity_data 表
|
|
|
|
// *
|
|
|
|
// * @param loginName 账号过滤条件,为空则初始化全部存量用户
|
|
|
|
// */
|
|
|
|
// @Log(title = "密评完整性摘要初始化", businessType = BusinessType.OTHER)
|
|
|
|
// @PostMapping("/initSysUserIntegrity")
|
|
|
|
// public R<Map<String, Integer>> initSysUserIntegrity(String loginName) {
|
|
|
|
// if (loginName == null){
|
|
|
|
// loginName = "dumoulin392";
|
|
|
|
// }
|
|
|
|
// return R.ok(cryptoSensitiveHsmService.initSysUserIntegrityData(loginName));
|
|
|
|
// }
|
|
|
|
|
|
|
|
/** |
|
|
|
* 初始化 sys_oper_log 历史存量数据到 crypto_integrity_data 表 |
|
|
|
* |
|
|
|
* @param operId 日志ID过滤条件,为空则初始化全部存量日志 |
|
|
|
*/ |
|
|
|
// @Log(title = "操作日志密评数据初始化", businessType = BusinessType.OTHER)
|
|
|
|
@PostMapping("/initOperLogIntegrity") |
|
|
|
public R<Map<String, Integer>> initOperLogIntegrity(Long operId) { |
|
|
|
cryptoSensitiveHsmService.syncIntegrityHashModifiedOperLogs(); |
|
|
|
return R.ok(); |
|
|
|
} |
|
|
|
} |
|
|
|
|