| | |
| | | import com.fgkj.dto.User_task_batt_check; |
| | | import com.fgkj.services.User_task_batt_checkService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("UserTaskBattCheck") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "UserTaskBattCheck接口") |
| | | public class User_task_batt_checkController{ |
| | | |
| | | @Resource |
| | | private User_task_batt_checkService service; |
| | | |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="新增") |
| | | public ServiceModel add(@RequestBody User_task_batt_check utbc) { |
| | | ServiceModel model=service.add(utbc); |
| | | |
| | |
| | | } |
| | | //4.1提交,复查作业 |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="提交,复查作业") |
| | | public ServiceModel update(@RequestBody User_task_batt_check utbc) { |
| | | ServiceModel model=service.update(utbc); |
| | | |
| | |
| | | } |
| | | |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="删除") |
| | | public ServiceModel delete(@RequestBody User_task_batt_check utbc) { |
| | | ServiceModel model=service.delete(utbc); |
| | | |
| | |
| | | } |
| | | |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="task_id查询user_task_batt_check信息") |
| | | public ServiceModel serchByCondition(@RequestBody User_task_batt_check utbc){ |
| | | ServiceModel model=service.serchByCondition(utbc); |
| | | |
| | | return model; |
| | | } |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="all") |
| | | public ServiceModel searchAll(){ |
| | | ServiceModel model=service.searchAll(); |
| | | |