Commit d2010f1b authored by tangtuo's avatar tangtuo

新增获取著作权人详情的接口

parent 349382f7
...@@ -116,6 +116,6 @@ public class DraftServiceImpl extends ServiceImpl<DraftMapper, Draft> implements ...@@ -116,6 +116,6 @@ public class DraftServiceImpl extends ServiceImpl<DraftMapper, Draft> implements
Instant instant = Instant.now().minus(Duration.ofMinutes(minutes)); Instant instant = Instant.now().minus(Duration.ofMinutes(minutes));
QueryWrapper<Draft> queryWrapper = new QueryWrapper<>(); QueryWrapper<Draft> queryWrapper = new QueryWrapper<>();
queryWrapper.le("create_date", instant); queryWrapper.le("create_date", instant);
return this.list(); return this.list(queryWrapper);
} }
} }
...@@ -58,6 +58,12 @@ public class CopyrightOwnerController { ...@@ -58,6 +58,12 @@ public class CopyrightOwnerController {
return ResponseModel.success(list); return ResponseModel.success(list);
} }
@GetMapping(value = "/detail/{id}")
@ApiOperation(value = "获取著作权人详情")
public ResponseModel<CopyrightOwner> getById(@PathVariable Integer id) {
return ResponseModel.success(copyrightOwnerService.getById(id));
}
@PostMapping("/update") @PostMapping("/update")
@ApiOperation(value = "修改") @ApiOperation(value = "修改")
public ResponseModel<Boolean> update(@Validated @RequestBody CopyrightOwner owner) { public ResponseModel<Boolean> update(@Validated @RequestBody CopyrightOwner owner) {
......
spring: spring:
profiles: profiles:
active: nj active: dev
application: application:
name: joying-portal name: joying-portal
servlet: servlet:
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment