| | |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.Map; |
| | | |
| | | @Api(tags = "用户前端控制器") |
| | | @RestController |
| | | @RequestMapping("/system/user") |
| | |
| | | return CommonResult.success(); |
| | | } |
| | | |
| | | |
| | | @RepeatSubmit |
| | | @ApiOperation(value = "特殊作业人员证书") |
| | | @PutMapping(value = "/specialCertificate") |
| | | public CommonResult specialCertificate(@RequestBody SysUser user){ |
| | | sysUserService.updateSpecialCertificate(user); |
| | | return CommonResult.success(); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @ApiOperation(value = "单位人员情况分析") |
| | | @GetMapping(value = "/getUserData") |
| | | public CommonResult getUserData(@RequestParam Long companyId){ |
| | | Map<String, Object> userData = sysUserService.getUserData(companyId); |
| | | return CommonResult.success(userData); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "岗位任职管理(分页)") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "query", name = "pageNum", dataType = "int", required = false, value = "当前页,默认1"), |