|  | @@ -9,6 +9,7 @@ import com.yonge.toolset.mybatis.support.PageUtil;
 | 
	
		
			
				|  |  |  import com.yonge.toolset.base.util.StringUtil;
 | 
	
		
			
				|  |  |  import io.swagger.annotations.*;
 | 
	
		
			
				|  |  |  import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  | +import org.springframework.security.access.prepost.PreAuthorize;
 | 
	
		
			
				|  |  |  import org.springframework.web.bind.annotation.*;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import javax.validation.Valid;
 | 
	
	
		
			
				|  | @@ -31,6 +32,7 @@ public class ActivityEvaluationRecordController extends BaseController {
 | 
	
		
			
				|  |  |       */
 | 
	
		
			
				|  |  |      @GetMapping("/detail/{id}")
 | 
	
		
			
				|  |  |      @ApiOperation(value = "详情", notes = "传入id")
 | 
	
		
			
				|  |  | +    @PreAuthorize("@pcs.hasPermissions('activityEvaluationRecord/detail')")
 | 
	
		
			
				|  |  |      public HttpResponseResult<ActivityEvaluationRecordVo> detail(@PathVariable("id") Long id) {
 | 
	
		
			
				|  |  |      	return succeed(activityEvaluationRecordService.detail(id));
 | 
	
		
			
				|  |  |  	}
 | 
	
	
		
			
				|  | @@ -40,47 +42,10 @@ public class ActivityEvaluationRecordController extends BaseController {
 | 
	
		
			
				|  |  |       */
 | 
	
		
			
				|  |  |      @PostMapping("/page")
 | 
	
		
			
				|  |  |      @ApiOperation(value = "查询分页", notes = "传入activityEvaluationRecordSearch")
 | 
	
		
			
				|  |  | +    @PreAuthorize("@pcs.hasPermissions('activityEvaluationRecord/page')")
 | 
	
		
			
				|  |  |      public HttpResponseResult<PageInfo<ActivityEvaluationRecordVo>> page(@RequestBody ActivityEvaluationRecordSearch query) {
 | 
	
		
			
				|  |  |  		IPage<ActivityEvaluationRecordVo> pages = activityEvaluationRecordService.selectPage(PageUtil.getPage(query), query);
 | 
	
		
			
				|  |  |          return succeed(PageUtil.pageInfo(pages));
 | 
	
		
			
				|  |  |  	}
 | 
	
		
			
				|  |  | -    
 | 
	
		
			
				|  |  | -    /**
 | 
	
		
			
				|  |  | -	 * 新增
 | 
	
		
			
				|  |  | -	 */
 | 
	
		
			
				|  |  | -	@PostMapping("/save")
 | 
	
		
			
				|  |  | -	@ApiOperation(value = "新增", notes = "传入activityEvaluationRecord")
 | 
	
		
			
				|  |  | -	public HttpResponseResult save(@Valid @RequestBody ActivityEvaluationRecord activityEvaluationRecord) {
 | 
	
		
			
				|  |  | -    	return status(activityEvaluationRecordService.save(activityEvaluationRecord));
 | 
	
		
			
				|  |  | -	}
 | 
	
		
			
				|  |  | -    
 | 
	
		
			
				|  |  | -    /**
 | 
	
		
			
				|  |  | -	 * 修改
 | 
	
		
			
				|  |  | -	 */
 | 
	
		
			
				|  |  | -	@PostMapping("/update")
 | 
	
		
			
				|  |  | -	@ApiOperation(value = "修改", notes = "传入activityEvaluationRecord")
 | 
	
		
			
				|  |  | -	public HttpResponseResult update(@Valid @RequestBody ActivityEvaluationRecord activityEvaluationRecord) {
 | 
	
		
			
				|  |  | -        return status(activityEvaluationRecordService.updateById(activityEvaluationRecord));
 | 
	
		
			
				|  |  | -	}
 | 
	
		
			
				|  |  | -    
 | 
	
		
			
				|  |  | -    /**
 | 
	
		
			
				|  |  | -	 * 新增或修改
 | 
	
		
			
				|  |  | -	 */
 | 
	
		
			
				|  |  | -    @PostMapping("/submit")
 | 
	
		
			
				|  |  | -    @ApiOperation(value = "新增或修改", notes = "传入activityEvaluationRecord")
 | 
	
		
			
				|  |  | -	public HttpResponseResult submit(@Valid @RequestBody ActivityEvaluationRecord activityEvaluationRecord) {
 | 
	
		
			
				|  |  | -        return status(activityEvaluationRecordService.saveOrUpdate(activityEvaluationRecord));
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | - 	/**
 | 
	
		
			
				|  |  | -	 * 删除
 | 
	
		
			
				|  |  | -	 */
 | 
	
		
			
				|  |  | -	@PostMapping("/remove")
 | 
	
		
			
				|  |  | -	@ApiOperation(value = "删除", notes = "传入ids")
 | 
	
		
			
				|  |  | -	public HttpResponseResult remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
 | 
	
		
			
				|  |  | -        if (StringUtil.isEmpty(ids)) {
 | 
	
		
			
				|  |  | -			return failed("参数不能为空");
 | 
	
		
			
				|  |  | -		}
 | 
	
		
			
				|  |  | -		return status(activityEvaluationRecordService.removeByIds(StringUtil.toLongList(ids)));
 | 
	
		
			
				|  |  | -	}
 | 
	
		
			
				|  |  |  }
 |