| | |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.Map; |
| | | |
| | | @RestController |
| | | @Api(value="用户controller",tags={"用户操作接口"}) |
| | | @RequestMapping("/userInfo") |
| | |
| | | } |
| | | |
| | | |
| | | @SaCheckPermission("userList.search") |
| | | @SaCheckPermission("userList.delete") |
| | | @ApiOperation("删除用户") |
| | | @PostMapping("/userDelete/{id}") |
| | | public Result userDelete(@PathVariable Integer id) { |
| | |
| | | public Result findAll(){ |
| | | return Result.seccess(userService.findAll()); |
| | | } |
| | | |
| | | @ApiOperation("app查询报工班组列表") |
| | | @PostMapping("findByAddress") |
| | | public Result findByAddress(@RequestBody Map<String,String> userName){ |
| | | return Result.seccess(userService.findByAddress(userName)); |
| | | } |
| | | |
| | | @ApiOperation("查询所有工序") |
| | | @SaCheckPermission("userList.search") |
| | | @PostMapping("selectProcess") |
| | | public Result selectProcess(){ |
| | | return Result.seccess(userService.selectProcessSv()); |
| | | } |
| | | |
| | | @ApiOperation("修改用户工序") |
| | | @SaCheckPermission("userList.search") |
| | | @PostMapping("updateProcess/{id}/{process}") |
| | | public Result updateProcess(@PathVariable Integer id,@PathVariable String process){ |
| | | return Result.seccess(userService.updateProcessSv(id,process)); |
| | | } |
| | | } |