| | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import io.swagger.annotations.Api; |
| | |
| | | */ |
| | | @ApiOperation("查询用户列表") |
| | | //@PreAuthorize("@ss.hasPermi('system:info:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody BaseUserInfo baseUserInfo) { |
| | | startPage(); |
| | | List<BaseUserInfo> list = baseUserInfoService.selectBaseUserInfoList(baseUserInfo); |
| | |
| | | @ApiOperation("新增用户") |
| | | //@PreAuthorize("@ss.hasPermi('system:info:add')") |
| | | @Log(title = "用户", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody BaseUserInfo baseUserInfo) { |
| | | SysUser user = getLoginUser().getUser(); |
| | | baseUserInfo.setOrgid(user.getOrgid()); |
| | | return toAjax(baseUserInfoService.insertBaseUserInfo(baseUserInfo)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("修改用户") |
| | | //@PreAuthorize("@ss.hasPermi('system:info:edit')") |
| | | @Log(title = "用户", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody BaseUserInfo baseUserInfo) { |
| | | return toAjax(baseUserInfoService.updateBaseUserInfo(baseUserInfo)); |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | @ApiOperation("获取人员的联系方式") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @GetMapping("/reportContent") |
| | | public AjaxResult getContact(@RequestParam("personCode") String personCode, @RequestParam("noticeWay") String noticeWay) { |
| | | if (StringUtils.isEmpty(personCode) || StringUtils.isEmpty(noticeWay)) { |