|
@@ -14,6 +14,7 @@ import com.yonge.cooleshow.common.page.PageInfo;
|
|
import com.yonge.toolset.utils.string.StringUtil;
|
|
import com.yonge.toolset.utils.string.StringUtil;
|
|
import io.swagger.annotations.*;
|
|
import io.swagger.annotations.*;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.validation.Valid;
|
|
import javax.validation.Valid;
|
|
@@ -35,6 +36,7 @@ public class TeacherAuthMusicianRecordController extends BaseController {
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParam(name = "id", value = "id", paramType = "path", dataType = "long", required = true),
|
|
@ApiImplicitParam(name = "id", value = "id", paramType = "path", dataType = "long", required = true),
|
|
})
|
|
})
|
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('teacherAuthMusicianRecord/detail')")
|
|
public HttpResponseResult<MusicianAuthEntryRecordVo> detail(@PathVariable("id") Long id) {
|
|
public HttpResponseResult<MusicianAuthEntryRecordVo> detail(@PathVariable("id") Long id) {
|
|
MusicianAuthEntryRecordVo detail = teacherAuthMusicianRecordService.detail(id);
|
|
MusicianAuthEntryRecordVo detail = teacherAuthMusicianRecordService.detail(id);
|
|
return succeed(detail);
|
|
return succeed(detail);
|
|
@@ -45,6 +47,7 @@ public class TeacherAuthMusicianRecordController extends BaseController {
|
|
*/
|
|
*/
|
|
@PostMapping("/page")
|
|
@PostMapping("/page")
|
|
@ApiOperation(value = "查询分页", notes = "传入AuthEntryRecordSearch")
|
|
@ApiOperation(value = "查询分页", notes = "传入AuthEntryRecordSearch")
|
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('teacherAuthMusicianRecord/page')")
|
|
public HttpResponseResult<PageInfo<MusicianAuthEntryRecordVo>> page(@RequestBody AuthEntryRecordSearch query) {
|
|
public HttpResponseResult<PageInfo<MusicianAuthEntryRecordVo>> page(@RequestBody AuthEntryRecordSearch query) {
|
|
IPage<MusicianAuthEntryRecordVo> pages = teacherAuthMusicianRecordService.selectPage(PageUtil.getPage(query), query);
|
|
IPage<MusicianAuthEntryRecordVo> pages = teacherAuthMusicianRecordService.selectPage(PageUtil.getPage(query), query);
|
|
return succeed(PageUtil.pageInfo(pages));
|
|
return succeed(PageUtil.pageInfo(pages));
|
|
@@ -52,20 +55,9 @@ public class TeacherAuthMusicianRecordController extends BaseController {
|
|
|
|
|
|
@PostMapping("/doAuth")
|
|
@PostMapping("/doAuth")
|
|
@ApiOperation(value = "审核", notes = "传入authOperaDto")
|
|
@ApiOperation(value = "审核", notes = "传入authOperaDto")
|
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('teacherAuthMusicianRecord/doAuth')")
|
|
public HttpResponseResult<Boolean> doAuth(@Valid @RequestBody AuthOperaReq authOperaReq) throws Exception {
|
|
public HttpResponseResult<Boolean> doAuth(@Valid @RequestBody AuthOperaReq authOperaReq) throws Exception {
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
return teacherAuthMusicianRecordService.doAuth(authOperaReq, sysUser);
|
|
return teacherAuthMusicianRecordService.doAuth(authOperaReq, sysUser);
|
|
}
|
|
}
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 删除
|
|
|
|
- */
|
|
|
|
- @PostMapping("/remove")
|
|
|
|
- @ApiOperation(value = "逻辑删除", notes = "传入ids")
|
|
|
|
- public HttpResponseResult remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
|
|
|
|
- if (StringUtil.isEmpty(ids)) {
|
|
|
|
- return failed("参数不能为空");
|
|
|
|
- }
|
|
|
|
- return status(teacherAuthMusicianRecordService.removeByIds(StringUtil.toLongList(ids)));
|
|
|
|
- }
|
|
|
|
}
|
|
}
|