whycrzh
2021-01-28 c8332186836b3dfe1fbd32d7bec7cd29a57e1888
src/main/java/com/fgkj/controller/User_task_paramController.java
@@ -6,6 +6,7 @@
import com.fgkj.dto.User_task_param;
import com.fgkj.services.User_task_paramService;
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("userTaskParam")
@RestController
@Api
@Api(tags = "userTaskParam接口")
public class User_task_paramController{
   @Resource
   private User_task_paramService service;
   
   //4.2作业参数(新增作业参数)
   @PostMapping("/")
   @ApiOperation(notes = "",value="作业参数(新增作业参数)")
   public ServiceModel add(@RequestBody User_task_param utp) {
      ServiceModel model=service.add(utp);
      
@@ -30,6 +32,7 @@
   }
    //4.2作业参数(重命名操作)
   @PutMapping("/")
   @ApiOperation(notes = "",value="作业参数(重命名操作)")
   public ServiceModel update(@RequestBody User_task_param utp) {
//      System.out.println("utp = " + utp);
      ServiceModel model=service.update(utp);
@@ -39,6 +42,7 @@
   
   //4.2作业参数(重命名操作)
   @PutMapping("pro")
   @ApiOperation(notes = "",value="作业参数(重命名操作)")
   public ServiceModel updatePro(@RequestBody List<User_task_param> uplist) {
      ServiceModel model=service.updatePro(uplist);
      
@@ -47,6 +51,7 @@
   
   //4.2作业参数(删除)
   @DeleteMapping("/")
   @ApiOperation(notes = "",value="作业参数(删除)")
   public ServiceModel delete(@RequestBody User_task_param utp) {
      ServiceModel model=service.delete(utp);
      
@@ -55,6 +60,7 @@
   
   //4.2查询所有参数种类
   @GetMapping("all")
   @ApiOperation(notes = "",value="查询所有参数种类")
   public ServiceModel searchAll(){
      ServiceModel model=service.searchAll();
      
@@ -63,6 +69,7 @@
   
   //4.2根据参数id查基本参数和模板参数
   @GetMapping("byCondition")
   @ApiOperation(notes = "",value="参数id查基本参数和模板参数")
   public ServiceModel serchByCondition(@RequestBody User_task_param utp){
      ServiceModel model=service.serchByCondition(utp);