|  | @@ -2,6 +2,7 @@ package com.ym.mec.teacher.controller;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import com.ym.mec.auth.api.client.SysUserFeignService;
 | 
	
		
			
				|  |  |  import com.ym.mec.auth.api.entity.SysUser;
 | 
	
		
			
				|  |  | +import com.ym.mec.biz.dal.dto.ExamSongDto;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.entity.SysExamSong;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.page.SysExamSongQueryInfo;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.service.SysExamSongService;
 | 
	
	
		
			
				|  | @@ -27,20 +28,16 @@ public class SysExamSongController extends BaseController {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @ApiOperation(value = "新增")
 | 
	
		
			
				|  |  |      @PostMapping("/add")
 | 
	
		
			
				|  |  | -    public Object add(@RequestBody SysExamSong sysExamSong) {
 | 
	
		
			
				|  |  | -        SysUser sysUser = sysUserFeignService.queryUserInfo();
 | 
	
		
			
				|  |  | -        if(sysUser == null){
 | 
	
		
			
				|  |  | -            throw new BizException("请登录");
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | -        sysExamSong.setCreateUserId(sysUser.getId());
 | 
	
		
			
				|  |  | -        sysExamSongService.insert(sysExamSong);
 | 
	
		
			
				|  |  | +    @PreAuthorize("@pcs.hasPermissions('sysExamSong/add')")
 | 
	
		
			
				|  |  | +    public Object add(@RequestBody ExamSongDto examSongDto) {
 | 
	
		
			
				|  |  | +        sysExamSongService.add(examSongDto);
 | 
	
		
			
				|  |  |          return succeed();
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @ApiOperation(value = "删除")
 | 
	
		
			
				|  |  |      @PostMapping("/del")
 | 
	
		
			
				|  |  |      public Object del(Integer id) {
 | 
	
		
			
				|  |  | -        sysExamSongService.delete(id);
 | 
	
		
			
				|  |  | +        sysExamSongService.del(id);
 | 
	
		
			
				|  |  |          return succeed();
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 |