优化
This commit is contained in:
@ -380,6 +380,10 @@ public class BgtProjectRecruitApplyServiceImpl extends ServicePlusImpl<BgtProjec
|
|||||||
public Boolean quit(Long id) {
|
public Boolean quit(Long id) {
|
||||||
BgtProjectRecruitApply recruitApply = getById(id);
|
BgtProjectRecruitApply recruitApply = getById(id);
|
||||||
BgtProjectRecruit recruit = iBgtProjectRecruitService.getById(recruitApply.getRecruitId());
|
BgtProjectRecruit recruit = iBgtProjectRecruitService.getById(recruitApply.getRecruitId());
|
||||||
|
if(RecruitStatus.FULL.getCode().equals(recruit.getStatus())){
|
||||||
|
recruit.setStatus(RecruitStatus.PROGRESS.getCode());
|
||||||
|
iBgtProjectRecruitService.updateById(recruit);
|
||||||
|
}
|
||||||
|
|
||||||
//发消息
|
//发消息
|
||||||
HashMap<String, String> mp = new HashMap<>();
|
HashMap<String, String> mp = new HashMap<>();
|
||||||
@ -409,6 +413,13 @@ public class BgtProjectRecruitApplyServiceImpl extends ServicePlusImpl<BgtProjec
|
|||||||
public Boolean cancel(Long id) {
|
public Boolean cancel(Long id) {
|
||||||
BgtProjectRecruitApply recruitApply = getById(id);
|
BgtProjectRecruitApply recruitApply = getById(id);
|
||||||
BgtProjectRecruit recruit = iBgtProjectRecruitService.getById(recruitApply.getRecruitId());
|
BgtProjectRecruit recruit = iBgtProjectRecruitService.getById(recruitApply.getRecruitId());
|
||||||
|
if(RecruitStatus.FULL.getCode().equals(recruit.getStatus())
|
||||||
|
&& RecruitApplyStatus.WGZ_PASS.getCode().equals(recruitApply.getStatus())){
|
||||||
|
recruit.setStatus(RecruitStatus.PROGRESS.getCode());
|
||||||
|
iBgtProjectRecruitService.updateById(recruit);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//发消息
|
//发消息
|
||||||
HashMap<String, String> mp = new HashMap<>();
|
HashMap<String, String> mp = new HashMap<>();
|
||||||
|
Reference in New Issue
Block a user