|
|
@@ -3,6 +3,7 @@ package com.zhongzheng.modules.recruit.service.impl;
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import com.zhongzheng.common.core.domain.model.LoginUser;
|
|
|
+import com.zhongzheng.common.exception.CustomException;
|
|
|
import com.zhongzheng.common.utils.DateUtils;
|
|
|
import com.zhongzheng.common.utils.ServletUtils;
|
|
|
import com.zhongzheng.modules.recruit.bo.RecruitNeedsAddBo;
|
|
|
@@ -64,7 +65,6 @@ public class RecruitNeedsServiceImpl extends ServiceImpl<RecruitNeedsMapper, Rec
|
|
|
lqw.eq(StrUtil.isNotBlank(bo.getMinimumEduDict()), RecruitNeeds::getMinimumEduDict, bo.getMinimumEduDict());
|
|
|
lqw.eq(StrUtil.isNotBlank(bo.getMajor()), RecruitNeeds::getMajor, bo.getMajor());
|
|
|
lqw.eq(bo.getStatus() != null, RecruitNeeds::getStatus, bo.getStatus());
|
|
|
- lqw.eq(bo.getTenantId() != null, RecruitNeeds::getTenantId, bo.getTenantId());
|
|
|
lqw.eq(bo.getIncomeType() != null, RecruitNeeds::getIncomeType, bo.getIncomeType());
|
|
|
lqw.eq(StrUtil.isNotBlank(bo.getProvince()), RecruitNeeds::getProvince, bo.getProvince());
|
|
|
lqw.eq(StrUtil.isNotBlank(bo.getCity()), RecruitNeeds::getCity, bo.getCity());
|
|
|
@@ -116,15 +116,19 @@ public class RecruitNeedsServiceImpl extends ServiceImpl<RecruitNeedsMapper, Rec
|
|
|
RecruitNeeds update = BeanUtil.toBean(bo, RecruitNeeds.class);
|
|
|
validEntityBeforeSave(update);
|
|
|
update.setUpdateTime(DateUtils.getNowTime());
|
|
|
- if(bo.getStatus()==2){
|
|
|
+ if(bo.getStatus()!=null&&bo.getStatus()==2){
|
|
|
RecruitNeedsVo vo = queryById(bo.getId());
|
|
|
if(vo.getStatus()==1){
|
|
|
+ if(update.getPushTime()!=null){
|
|
|
+ throw new CustomException("不允许二次发布");
|
|
|
+ }
|
|
|
//发布操作
|
|
|
- bo.setPushTime(DateUtils.getNowTime());
|
|
|
- bo.setPushMan(operator_nickName);
|
|
|
+ update.setPushTime(DateUtils.getNowTime());
|
|
|
+ update.setPushMan(operator_nickName);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+ System.out.println(update);
|
|
|
return this.updateById(update);
|
|
|
}
|
|
|
|