|  | @@ -0,0 +1,51 @@
 | 
	
		
			
				|  |  | +package com.ym.mec.web.controller;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +import com.ym.mec.biz.dal.entity.PracticeGroupSellPrice;
 | 
	
		
			
				|  |  | +import com.ym.mec.biz.service.PracticeGroupSellPriceService;
 | 
	
		
			
				|  |  | +import com.ym.mec.common.controller.BaseController;
 | 
	
		
			
				|  |  | +import com.ym.mec.common.page.QueryInfo;
 | 
	
		
			
				|  |  | +import io.swagger.annotations.Api;
 | 
	
		
			
				|  |  | +import io.swagger.annotations.ApiOperation;
 | 
	
		
			
				|  |  | +import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  | +import org.springframework.security.access.prepost.PreAuthorize;
 | 
	
		
			
				|  |  | +import org.springframework.web.bind.annotation.*;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +@Api(tags = "网管课价格配置")
 | 
	
		
			
				|  |  | +@RequestMapping("practiceGroupSellPrice")
 | 
	
		
			
				|  |  | +@RestController
 | 
	
		
			
				|  |  | +public class PracticeGroupSellPriceController extends BaseController {
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    @Autowired
 | 
	
		
			
				|  |  | +    private PracticeGroupSellPriceService practiceGroupSellPriceService;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    @ApiOperation(value = "新增")
 | 
	
		
			
				|  |  | +    @PostMapping("/add")
 | 
	
		
			
				|  |  | +    @PreAuthorize("@pcs.hasPermissions('practiceGroupSellPrice/add')")
 | 
	
		
			
				|  |  | +    public Object add(@RequestBody PracticeGroupSellPrice practiceGroupSellPrice){
 | 
	
		
			
				|  |  | +        practiceGroupSellPriceService.insert(practiceGroupSellPrice);
 | 
	
		
			
				|  |  | +        return succeed();
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    @ApiOperation(value = "修改")
 | 
	
		
			
				|  |  | +    @PostMapping("/update")
 | 
	
		
			
				|  |  | +    @PreAuthorize("@pcs.hasPermissions('practiceGroupSellPrice/update')")
 | 
	
		
			
				|  |  | +    public Object update(@RequestBody PracticeGroupSellPrice practiceGroupSellPrice){
 | 
	
		
			
				|  |  | +        practiceGroupSellPriceService.update(practiceGroupSellPrice);
 | 
	
		
			
				|  |  | +        return succeed();
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    @ApiOperation(value = "分页查询")
 | 
	
		
			
				|  |  | +    @GetMapping("/queryPage")
 | 
	
		
			
				|  |  | +    @PreAuthorize("@pcs.hasPermissions('practiceGroupSellPrice/queryPage')")
 | 
	
		
			
				|  |  | +    public Object queryPage(QueryInfo queryInfo){
 | 
	
		
			
				|  |  | +        return succeed(practiceGroupSellPriceService.queryPage(queryInfo));
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    @ApiOperation(value = "删除")
 | 
	
		
			
				|  |  | +    @PostMapping("/delete")
 | 
	
		
			
				|  |  | +    @PreAuthorize("@pcs.hasPermissions('practiceGroupSellPrice/delete')")
 | 
	
		
			
				|  |  | +    public Object delete(Integer id){
 | 
	
		
			
				|  |  | +        practiceGroupSellPriceService.delete(id);
 | 
	
		
			
				|  |  | +        return succeed();
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +}
 |