| | |
| | | import com.ruoyi.personnel.dto.PersonBasicInfoDto; |
| | | import com.ruoyi.personnel.dto.UserPageDto; |
| | | import com.ruoyi.personnel.pojo.Annex; |
| | | import com.ruoyi.personnel.pojo.PersonBasicInfo; |
| | | import com.ruoyi.personnel.pojo.PersonBasicInfoFile; |
| | | import com.ruoyi.personnel.pojo.PersonBasicInfoWork; |
| | | import com.ruoyi.personnel.service.AnnexService; |
| | |
| | | return Result.success(personBasicInfoService.basicInformationOfPersonnelSelectPage(page, name, departmentId)); |
| | | } |
| | | |
| | | @ApiOperation(value = "新增联系人") |
| | | @PostMapping("/addContactPerson") |
| | | public Result addContactPerson(@RequestBody PersonBasicInfo personBasicInfo) { |
| | | personBasicInfoService.addContactPerson(personBasicInfo); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "更新联系人") |
| | | @PostMapping("/updateContactPerson") |
| | | public Result updateContactPerson(@RequestBody PersonBasicInfo personBasicInfo) { |
| | | personBasicInfoService.updateContactPerson(personBasicInfo); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "删除联系人") |
| | | @DeleteMapping("/deleteContactPerson") |
| | | public Result deleteContactPerson(Integer id) { |
| | | personBasicInfoService.removeById(id); |
| | | return Result.success(); |
| | | } |
| | | |
| | | // 上传文件接口 |
| | | @ApiOperation(value = "上传文件接口") |
| | | @PostMapping("/saveCNASFile") |