|
@@ -4,6 +4,7 @@ package com.citu.module.menduner.system.service.interview;
|
|
import cn.hutool.core.collection.CollUtil;
|
|
import cn.hutool.core.collection.CollUtil;
|
|
import cn.hutool.core.util.StrUtil;
|
|
import cn.hutool.core.util.StrUtil;
|
|
import com.baomidou.dynamic.datasource.annotation.DSTransactional;
|
|
import com.baomidou.dynamic.datasource.annotation.DSTransactional;
|
|
|
|
+import com.citu.framework.common.enums.UserTypeEnum;
|
|
import com.citu.framework.common.pojo.PageResult;
|
|
import com.citu.framework.common.pojo.PageResult;
|
|
import com.citu.framework.common.util.object.BeanUtils;
|
|
import com.citu.framework.common.util.object.BeanUtils;
|
|
import com.citu.framework.security.core.LoginUser;
|
|
import com.citu.framework.security.core.LoginUser;
|
|
@@ -55,8 +56,8 @@ import java.util.stream.Collectors;
|
|
import static com.citu.framework.common.exception.util.ServiceExceptionUtil.exception;
|
|
import static com.citu.framework.common.exception.util.ServiceExceptionUtil.exception;
|
|
import static com.citu.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY3;
|
|
import static com.citu.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY3;
|
|
import static com.citu.framework.common.util.validation.ValidationUtils.isMobile;
|
|
import static com.citu.framework.common.util.validation.ValidationUtils.isMobile;
|
|
-import static com.citu.module.menduner.common.util.TimeUtils.generateDateTimeRange;
|
|
|
|
import static com.citu.module.menduner.common.CommonConstants.*;
|
|
import static com.citu.module.menduner.common.CommonConstants.*;
|
|
|
|
+import static com.citu.module.menduner.common.util.TimeUtils.generateDateTimeRange;
|
|
import static com.citu.module.menduner.system.enums.ErrorCodeConstants.*;
|
|
import static com.citu.module.menduner.system.enums.ErrorCodeConstants.*;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -295,9 +296,9 @@ public class InterviewInviteServiceImpl implements InterviewInviteService {
|
|
reqDTO = messageUtils.buildWxSubscribeMessageByInterview(reqDTO,
|
|
reqDTO = messageUtils.buildWxSubscribeMessageByInterview(reqDTO,
|
|
job.getName(),
|
|
job.getName(),
|
|
interviewInvite.getTime().format(DateTimeFormatter.ofPattern(FORMAT_YEAR_MONTH_DAY3)),
|
|
interviewInvite.getTime().format(DateTimeFormatter.ofPattern(FORMAT_YEAR_MONTH_DAY3)),
|
|
- null==contactRespVO?enterprise.getName():contactRespVO.getName(),
|
|
|
|
|
|
+ null == contactRespVO ? enterprise.getName() : contactRespVO.getName(),
|
|
interviewInvite.getAddress(),
|
|
interviewInvite.getAddress(),
|
|
- StringUtils.hasText(interviewInvite.getRemark())?interviewInvite.getRemark():"面试邀请,请点击查看详情!"
|
|
|
|
|
|
+ StringUtils.hasText(interviewInvite.getRemark()) ? interviewInvite.getRemark() : "面试邀请,请点击查看详情!"
|
|
);
|
|
);
|
|
if (null == reqVO.getId()) {
|
|
if (null == reqVO.getId()) {
|
|
mapper.insert(interviewInvite);
|
|
mapper.insert(interviewInvite);
|
|
@@ -315,7 +316,6 @@ public class InterviewInviteServiceImpl implements InterviewInviteService {
|
|
);
|
|
);
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
} else {
|
|
} else {
|
|
mapper.updateById(interviewInvite);
|
|
mapper.updateById(interviewInvite);
|
|
messageUtils.sendSystemImAndWxSubscribeMessage(reqVO.getUserId(),
|
|
messageUtils.sendSystemImAndWxSubscribeMessage(reqVO.getUserId(),
|
|
@@ -480,6 +480,7 @@ public class InterviewInviteServiceImpl implements InterviewInviteService {
|
|
if (headhuntPrice > 0) {
|
|
if (headhuntPrice > 0) {
|
|
walletApi.addWalletBalance(PayWalletAddBalanceReqDTO.builder()
|
|
walletApi.addWalletBalance(PayWalletAddBalanceReqDTO.builder()
|
|
.userId(0L)
|
|
.userId(0L)
|
|
|
|
+ .userType(UserTypeEnum.MEMBER.getValue())
|
|
.bizId(job.getId().toString())
|
|
.bizId(job.getId().toString())
|
|
.price(Math.toIntExact(headhuntPrice))
|
|
.price(Math.toIntExact(headhuntPrice))
|
|
.bizType(PayWalletBizTypeEnum.PLATFORM_COMMISSION.getType())
|
|
.bizType(PayWalletBizTypeEnum.PLATFORM_COMMISSION.getType())
|
|
@@ -491,6 +492,7 @@ public class InterviewInviteServiceImpl implements InterviewInviteService {
|
|
if (null == cv.getRecommendUserId()) {
|
|
if (null == cv.getRecommendUserId()) {
|
|
walletApi.addWalletBalance(PayWalletAddBalanceReqDTO.builder()
|
|
walletApi.addWalletBalance(PayWalletAddBalanceReqDTO.builder()
|
|
.userId(0L)
|
|
.userId(0L)
|
|
|
|
+ .userType(UserTypeEnum.MEMBER.getValue())
|
|
.bizId(job.getId().toString())
|
|
.bizId(job.getId().toString())
|
|
.price(Math.toIntExact(recommendPrice))
|
|
.price(Math.toIntExact(recommendPrice))
|
|
.bizType(PayWalletBizTypeEnum.NOT_RECOMMENDED.getType())
|
|
.bizType(PayWalletBizTypeEnum.NOT_RECOMMENDED.getType())
|
|
@@ -503,6 +505,7 @@ public class InterviewInviteServiceImpl implements InterviewInviteService {
|
|
&& null != cv.getRecommendUserId()) {
|
|
&& null != cv.getRecommendUserId()) {
|
|
walletApi.addWalletBalance(PayWalletAddBalanceReqDTO.builder()
|
|
walletApi.addWalletBalance(PayWalletAddBalanceReqDTO.builder()
|
|
.userId(cv.getRecommendUserId())
|
|
.userId(cv.getRecommendUserId())
|
|
|
|
+ .userType(UserTypeEnum.MEMBER.getValue())
|
|
.bizId(job.getId().toString())
|
|
.bizId(job.getId().toString())
|
|
.price(Math.toIntExact(recommendPrice))
|
|
.price(Math.toIntExact(recommendPrice))
|
|
.bizType(PayWalletBizTypeEnum.RECOMMENDED_POSITIONS.getType())
|
|
.bizType(PayWalletBizTypeEnum.RECOMMENDED_POSITIONS.getType())
|
|
@@ -515,6 +518,7 @@ public class InterviewInviteServiceImpl implements InterviewInviteService {
|
|
|
|
|
|
walletApi.addWalletBalance(PayWalletAddBalanceReqDTO.builder()
|
|
walletApi.addWalletBalance(PayWalletAddBalanceReqDTO.builder()
|
|
.userId(cv.getUserId())
|
|
.userId(cv.getUserId())
|
|
|
|
+ .userType(UserTypeEnum.MEMBER.getValue())
|
|
.bizId(job.getId().toString())
|
|
.bizId(job.getId().toString())
|
|
.price(Math.toIntExact(cvPrice))
|
|
.price(Math.toIntExact(cvPrice))
|
|
.bizType(PayWalletBizTypeEnum.DELIVERY_PERSON.getType())
|
|
.bizType(PayWalletBizTypeEnum.DELIVERY_PERSON.getType())
|