---添加数据日志返回对象

This commit is contained in:
2025-10-21 18:14:18 +08:00
parent aab7f0acc1
commit 0519a62d09
4 changed files with 35 additions and 16 deletions

View File

@ -80,14 +80,7 @@ public class Testfrom5Controller {
}
return R.ok(BeanUtil.toBean(testfrom5, Testfrom5Vo.class));
}
@GetMapping(value = "/datalog")
@ApiOperation(value="根据id查询Testfrom5数据详细日志")
@SaCheckPermission("testfrom5:datalog")
public R datalog(@RequestParam Long id){
List<DataChangeLog> logs = dataService.findLogsByEntityId(UpdateTestfrom5Dto.class,id);
return R.ok(logs);
}
@PostMapping
@ -113,6 +106,15 @@ public class Testfrom5Controller {
}
@GetMapping(value = "/datalog")
@ApiOperation(value="根据id查询Testfrom5数据详细日志")
@SaCheckPermission("testfrom5:datalog")
public R datalog(@RequestParam Long id){
List<DataChangeLog> logs = dataService.findLogsByEntityId(UpdateTestfrom5Dto.class,id);
return R.ok(logs);
}
@PostMapping("/enable")
@ApiOperation(value = "启用Testfrom5")
@SaCheckPermission("testfrom5:enable")

View File

@ -79,13 +79,7 @@ public class Testfrom6Controller {
return R.ok(BeanUtil.toBean(testfrom6, Testfrom6Vo.class));
}
@GetMapping(value = "/datalog")
@ApiOperation(value="根据id查询Testfrom6数据详细日志")
@SaCheckPermission("testfrom6:datalog")
public R datalog(@RequestParam Long id){
List<DataChangeLog> logs = dataService.findLogsByEntityId(UpdateTestfrom6Dto.class,id);
return R.ok(logs);
}
@PostMapping
@ -111,6 +105,14 @@ public class Testfrom6Controller {
}
@GetMapping(value = "/datalog")
@ApiOperation(value="根据id查询Testfrom6数据详细日志")
@SaCheckPermission("testfrom6:datalog")
public R datalog(@RequestParam Long id){
List<DataChangeLog> logs = dataService.findLogsByEntityId(UpdateTestfrom6Dto.class,id);
return R.ok(logs);
}
@PostMapping("/enable")
@ApiOperation(value = "启用Testfrom6")
@SaCheckPermission("testfrom6:enable")