| | |
| | | import com.ruoyi.system.service.staff.SysStaffService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestMethod; |
| | |
| | | @RequestMapping(value = "/mgtEditStaff", method = RequestMethod.POST) |
| | | @Log(title = "员工管理", businessType = BusinessType.UPDATE,operContent = "编辑员工") |
| | | @ApiOperation(value = "平台编辑员工") |
| | | public R mgtEditStaff(@RequestBody MgtStaffEditDto mgtStaffEditDto) { |
| | | public R mgtEditStaff(@Validated @RequestBody MgtStaffEditDto mgtStaffEditDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | mgtStaffEditDto.setUserId(userId); |
| | | sysStaffService.mgtStaffEdit(mgtStaffEditDto); |