whycrzh
2021-01-28 c8332186836b3dfe1fbd32d7bec7cd29a57e1888
src/main/java/com/fgkj/controller/User_task_batt_templateController.java
@@ -6,6 +6,7 @@
import com.fgkj.dto.User_task_batt_template;
import com.fgkj.services.User_task_batt_templateService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@@ -15,13 +16,14 @@
@RequestMapping("UserTaskBattTemplate")
@RestController
@Api
@Api(tags = "UserTaskBattTemplate接口")
public class User_task_batt_templateController{
   @Resource
   private User_task_batt_templateService service;
   
   //4.4 作业模板管理(新建模板)
   @PostMapping("/")
   @ApiOperation(notes = "",value="作业模板管理(新建模板)")
   public ServiceModel add(@RequestBody User_task_batt_template utbt){
      ServiceModel model=service.add(utbt);
      
@@ -30,6 +32,7 @@
   
   //4.4 作业模板管理(修改模板/重命名)
   @PutMapping("/")
   @ApiOperation(notes = "",value="作业模板管理(修改模板/重命名)")
   public ServiceModel update(@RequestBody List<User_task_batt_template> uplist) {
      ServiceModel model=service.update(uplist);
      
@@ -38,6 +41,7 @@
   
   //4.4 作业模板管理(删除)
   @DeleteMapping("/")
   @ApiOperation(notes = "",value="作业模板管理(删除)")
   public ServiceModel delete(@RequestBody User_task_batt_template utbt){
      ServiceModel model=service.delete(utbt);
      
@@ -45,7 +49,8 @@
   }
   
   //4.4根据模板id查询模板的信息
   @GetMapping("byCondition")
   @PostMapping("byCondition")
   @ApiOperation(notes = "",value="模板id查询模板的信息")
    public ServiceModel serchByCondition(@RequestBody User_task_batt_template utbt){
       ServiceModel model=service.serchByCondition(utbt);
       
@@ -54,6 +59,7 @@
    
  //4.4查询所有的模板
   @GetMapping("all")
   @ApiOperation(notes = "",value="查询所有的模板")
    public ServiceModel searchAll(){
       ServiceModel model=service.searchAll();