|
@@ -1,8 +1,8 @@
|
|
|
package com.ym.mec.web.controller;
|
|
|
|
|
|
-import com.ym.mec.biz.dal.entity.SysExamSong;
|
|
|
+import com.ym.mec.biz.dal.entity.SysExamSongAccompaniment;
|
|
|
import com.ym.mec.biz.dal.page.SysExamSongQueryInfo;
|
|
|
-import com.ym.mec.biz.service.SysExamSongService;
|
|
|
+import com.ym.mec.biz.service.SysExamSongAccompanimentService;
|
|
|
import com.ym.mec.common.controller.BaseController;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
@@ -17,13 +17,13 @@ import org.springframework.web.bind.annotation.*;
|
|
|
public class SysExamSongAccompanimentController extends BaseController {
|
|
|
|
|
|
@Autowired
|
|
|
- private SysExamSongService sysExamSongService;
|
|
|
+ private SysExamSongAccompanimentService sysExamSongAccompanimentService;
|
|
|
|
|
|
@ApiOperation(value = "修改")
|
|
|
@PostMapping("/update")
|
|
|
@PreAuthorize("@pcs.hasPermissions('sysExamSong/update')")
|
|
|
- public Object update(@RequestBody SysExamSong sysExamSong) {
|
|
|
- sysExamSongService.update(sysExamSong);
|
|
|
+ public Object update(@RequestBody SysExamSongAccompaniment sysExamSongAccompaniment) {
|
|
|
+ sysExamSongAccompanimentService.updateAcc(sysExamSongAccompaniment);
|
|
|
return succeed();
|
|
|
}
|
|
|
|
|
@@ -31,7 +31,7 @@ public class SysExamSongAccompanimentController extends BaseController {
|
|
|
@PostMapping("/del/{id}")
|
|
|
@PreAuthorize("@pcs.hasPermissions('sysExamSong/del')")
|
|
|
public Object del(@ApiParam(value = "收费类型编号", required = true) @PathVariable("id") Integer id) {
|
|
|
- sysExamSongService.del(id);
|
|
|
+ sysExamSongAccompanimentService.delete(id);
|
|
|
return succeed();
|
|
|
}
|
|
|
|
|
@@ -39,7 +39,7 @@ public class SysExamSongAccompanimentController extends BaseController {
|
|
|
@GetMapping("/queryPage")
|
|
|
@PreAuthorize("@pcs.hasPermissions('sysExamSong/queryPage')")
|
|
|
public Object queryPage(SysExamSongQueryInfo queryInfo) {
|
|
|
- return succeed(sysExamSongService.queryPage(queryInfo));
|
|
|
+ return succeed(sysExamSongAccompanimentService.queryPage(queryInfo));
|
|
|
}
|
|
|
|
|
|
}
|