|
@@ -87,6 +87,9 @@ public class JobUserServiceImpl implements JobUserService {
|
|
|
@Autowired
|
|
|
private HonorService honorService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private PcSigninMapper pcSigninMapper;
|
|
|
+
|
|
|
@Override
|
|
|
public PageInfo<JobUserVo> getList(Integer pageIndex, Integer pageSize,
|
|
|
List<String> jobUserIDList, String name,
|
|
@@ -275,19 +278,24 @@ public class JobUserServiceImpl implements JobUserService {
|
|
|
var curJobUserHuntList = pcJobhuntMapper.selectByExample(jobHuntExample).stream().toList();
|
|
|
if( curJobUserHuntList != null && curJobUserHuntList.size()>0){
|
|
|
throw new BaseException("10004","所选求职人员已有关联的求职意向,不允许删除!");
|
|
|
- }else{
|
|
|
- PcJobuser pcJobuser = pcJobuserMapper.selectByPrimaryKey(curJobUserID);
|
|
|
- int count = pcJobuserMapper.deleteByPrimaryKey(curJobUserID);
|
|
|
- if(count>0){
|
|
|
- // 记录被删除的求职人员信息
|
|
|
- delInfo += pcJobuser.getName() + ",";
|
|
|
- // 删除求职人员标签
|
|
|
- PcLabelJobuserExample labelEmp = new PcLabelJobuserExample();
|
|
|
- labelEmp.or().andJobuserIDEqualTo(curJobUserID);
|
|
|
- pcLabelJobuserMapper.deleteByExample(labelEmp);
|
|
|
- }
|
|
|
- result+=count;
|
|
|
}
|
|
|
+ PcSigninExample pcSigninExample = new PcSigninExample();
|
|
|
+ pcSigninExample.or().andJobuserIDEqualTo(curJobUserID);
|
|
|
+ List<PcSignin> pcSignins = pcSigninMapper.selectByExample(pcSigninExample).stream().toList();
|
|
|
+ if (pcSignins != null && pcSignins.size() > 0) {
|
|
|
+ throw new BaseException("10004","所选企业已有关联的外出工作走访记录信息,暂时无法删除!");
|
|
|
+ }
|
|
|
+ PcJobuser pcJobuser = pcJobuserMapper.selectByPrimaryKey(curJobUserID);
|
|
|
+ int count = pcJobuserMapper.deleteByPrimaryKey(curJobUserID);
|
|
|
+ if(count>0){
|
|
|
+ // 记录被删除的求职人员信息
|
|
|
+ delInfo += pcJobuser.getName() + ",";
|
|
|
+ // 删除求职人员标签
|
|
|
+ PcLabelJobuserExample labelEmp = new PcLabelJobuserExample();
|
|
|
+ labelEmp.or().andJobuserIDEqualTo(curJobUserID);
|
|
|
+ pcLabelJobuserMapper.deleteByExample(labelEmp);
|
|
|
+ }
|
|
|
+ result+=count;
|
|
|
}
|
|
|
if (result > 0) {
|
|
|
SysLog sysLog = new SysLog();
|