| | |
| | | import com.fgkj.dto.User_task_change; |
| | | import com.fgkj.services.User_task_changeService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("userTaskChange") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "userTaskChange接口") |
| | | public class User_task_changeController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //4.1作业变更申请 |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="作业变更申请") |
| | | public ServiceModel add(@RequestBody User_task_change utc) { |
| | | ServiceModel model=service.add(utc); |
| | | |
| | |
| | | } |
| | | //4.5作业变更查询(审批) |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="作业变更查询(审批)") |
| | | public ServiceModel update(@RequestBody User_task_change utc) { |
| | | ServiceModel model=service.update(utc); |
| | | |
| | |
| | | } |
| | | //4.5作业变更查询(删除记录) |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="作业变更查询(删除记录)") |
| | | public ServiceModel delete(@RequestBody User_task_change utc) { |
| | | ServiceModel model=service.delete(utc); |
| | | |
| | |
| | | } |
| | | |
| | | //4.5作业变更查询 |
| | | @GetMapping("byCondition") |
| | | @PostMapping("byCondition") |
| | | @ApiOperation(notes = "",value="作业变更查询") |
| | | public ServiceModel serchByCondition(@RequestBody Task_Batt_Test tbt){ |
| | | ServiceModel model=service.serchByCondition(tbt); |
| | | |
| | |
| | | |
| | | //查询所有 |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="查询所有") |
| | | public ServiceModel searchAll(){ |
| | | ServiceModel model=service.searchAll(); |
| | | |