| | |
| | | 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.*; |
| | | |
| | |
| | | |
| | | @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); |
| | | |
| | |
| | | } |
| | | //4.2作业参数(重命名操作) |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="作业参数(重命名操作)") |
| | | public ServiceModel update(@RequestBody User_task_param utp) { |
| | | // System.out.println("utp = " + utp); |
| | | ServiceModel model=service.update(utp); |
| | |
| | | |
| | | //4.2作业参数(重命名操作) |
| | | @PutMapping("pro") |
| | | @ApiOperation(notes = "",value="作业参数(重命名操作)") |
| | | public ServiceModel updatePro(@RequestBody List<User_task_param> uplist) { |
| | | ServiceModel model=service.updatePro(uplist); |
| | | |
| | |
| | | |
| | | //4.2作业参数(删除) |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="作业参数(删除)") |
| | | public ServiceModel delete(@RequestBody User_task_param utp) { |
| | | ServiceModel model=service.delete(utp); |
| | | |
| | |
| | | |
| | | //4.2查询所有参数种类 |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="查询所有参数种类") |
| | | public ServiceModel searchAll(){ |
| | | ServiceModel model=service.searchAll(); |
| | | |
| | |
| | | |
| | | //4.2根据参数id查基本参数和模板参数 |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="参数id查基本参数和模板参数") |
| | | public ServiceModel serchByCondition(@RequestBody User_task_param utp){ |
| | | ServiceModel model=service.serchByCondition(utp); |
| | | |