This commit is contained in:
chenyanchang
2026-06-17 18:07:10 +08:00
4 changed files with 12 additions and 5 deletions

View File

@@ -15,6 +15,7 @@ import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;
import java.util.List;
@RestController
@@ -38,6 +39,9 @@ public class AppFileController extends BaseController {
@GetMapping("/list")
public TableDataInfo list(File file)
{
if(file.getBussinessid()==null){
return getDataTable(new ArrayList<>());
}
List<File> results = fileService.selectFileList(file);
return getDataTable(results);
}

View File

@@ -34,7 +34,7 @@ public class EmployeeConfirmController extends BaseController {
* 列表
*/
@ApiOperation("新入职员工确认信息列表")
// @PreAuthorize("@ss.hasPermi('cms:employeeConfirm:list')")
@PreAuthorize("@ss.hasPermi('cms:employeeConfirm:list')")
@RequestMapping("/list")
public TableDataInfo list(EmployeeConfirm employeeConfirm){
List<EmployeeConfirm> list=employeeConfirmService.getEmployeeConfirmList(employeeConfirm);
@@ -45,7 +45,7 @@ public class EmployeeConfirmController extends BaseController {
* 保存
*/
@ApiOperation("新增新入职员工确认信息")
// @PreAuthorize("@ss.hasPermi('cms:employeeConfirm:add')")
@PreAuthorize("@ss.hasPermi('cms:employeeConfirm:add')")
@Log(title = "职员工确认信息", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody EmployeeConfirm employeeConfirm){
@@ -53,7 +53,7 @@ public class EmployeeConfirmController extends BaseController {
}
@ApiOperation("修改新入职员工确认信息")
// @PreAuthorize("@ss.hasPermi('cms:employeeConfirm:edit')")
@PreAuthorize("@ss.hasPermi('cms:employeeConfirm:edit')")
@Log(title = "职员工确认信息", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody EmployeeConfirm employeeConfirm){
@@ -61,7 +61,7 @@ public class EmployeeConfirmController extends BaseController {
}
@ApiOperation("删除新入职员工确认信息")
// @PreAuthorize("@ss.hasPermi('app:employeeConfirm:remove')")
@PreAuthorize("@ss.hasPermi('cms:employeeConfirm:remove')")
@Log(title = "公司", businessType = BusinessType.DELETE)
@DeleteMapping("/{employeeConfirmIds}")
public AjaxResult remove(@PathVariable Long[] employeeConfirmIds)

View File

@@ -40,7 +40,7 @@ public class UserWorkExperiencesController extends BaseController {
* 列表
*/
@ApiOperation("工作经历列表信息")
@PreAuthorize("@ss.hasPermi('management:match:details')")
@PreAuthorize("@ss.hasPermi('cms:userworkexperiences:list')")
@GetMapping("/list")
public TableDataInfo list(UserWorkExperiences userWorkExperiences){
startPage();

View File

@@ -47,6 +47,9 @@ public class EmployeeConfirmServiceImpl implements EmployeeConfirmService {
}
Job job=jobMapper.getJobInfo(employeeConfirm.getJobId());
//添加消息
//获取申请消息
JobApply jobApply=jobApplyMapper.selectById(employeeConfirm.getApplyId());
employeeConfirm.setUserId(jobApply!=null?jobApply.getUserId():null);
Notice notice=NoticeUtils.createLytzNotice(employeeConfirm,job);
noticeMapper.insert(notice);
return t;