|
@@ -17,7 +17,6 @@ import org.springframework.stereotype.Service;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
-
|
|
|
import java.time.LocalDateTime;
|
|
|
|
|
|
import static com.citu.framework.common.exception.util.ServiceExceptionUtil.exception;
|
|
@@ -119,12 +118,14 @@ public class EnterpriseEntitlementServiceImpl implements EnterpriseEntitlementSe
|
|
|
.hireJob(packageDO.getHireJob())
|
|
|
.build();
|
|
|
// 如果vip标识大于0 并且vip时间没有过期,并且创建时间是在2024-1月1号之前的
|
|
|
- if(Integer.valueOf(enterprise.getVipFlag()) > 0
|
|
|
- && enterprise.getVipExpireDate().isAfter(LocalDateTime.now())
|
|
|
- && enterprise.getCreateTime().isBefore(LocalDateTime.of(2024, 11, 1, 0, 0, 0))) {
|
|
|
- // 旧系统会员
|
|
|
- insert.setPublishJobCount(9999);
|
|
|
- insert.setLookCvCount(9999);
|
|
|
+ if (null != enterprise.getVipFlag()) {
|
|
|
+ if (Integer.valueOf(enterprise.getVipFlag()) > 0
|
|
|
+ && enterprise.getVipExpireDate().isAfter(LocalDateTime.now())
|
|
|
+ && enterprise.getCreateTime().isBefore(LocalDateTime.of(2024, 11, 1, 0, 0, 0))) {
|
|
|
+ // 旧系统会员
|
|
|
+ insert.setPublishJobCount(9999);
|
|
|
+ insert.setLookCvCount(9999);
|
|
|
+ }
|
|
|
}
|
|
|
mapper.insert(insert);
|
|
|
EnterpriseEntitlementRespVO respVO =
|