|
@@ -570,13 +570,15 @@ public class CourseServiceImpl extends ServiceImpl<CourseMapper, Course> impleme
|
|
|
&& (DateUtils.getNowTime() >= goodsUserVo.getServiceStartTime() && DateUtils.getNowTime() <= goodsUserVo.getServiceEndTime())){
|
|
|
UserSubscribe userSubscribe = iUserSubscribeService.getOne(new LambdaQueryWrapper<UserSubscribe>()
|
|
|
.eq(UserSubscribe::getUserId, bo.getUserId())
|
|
|
- .eq(UserSubscribe::getGoodsId, goodsUserVo.getGoodsId())
|
|
|
+ .eq(UserSubscribe::getOrderGoodsId, goodsUserVo.getOrderGoodsId())
|
|
|
.eq(UserSubscribe::getSubscribeStatus, 1)
|
|
|
.orderByDesc(UserSubscribe::getCreateTime)
|
|
|
.last("limit 1"));
|
|
|
if (ObjectUtils.isNull(userSubscribe)){
|
|
|
goodsUserVo.setSubscribeSign(1);
|
|
|
- }else if (ObjectUtils.isNotNull(userSubscribe.getResult()) && userSubscribe.getResult() == 0){
|
|
|
+ }else if (userSubscribe.getSubscribeStatus() == 1 && userSubscribe.getExamStatus() == 0){
|
|
|
+ goodsUserVo.setSubscribeSign(4);
|
|
|
+ } else if (ObjectUtils.isNotNull(userSubscribe.getResult()) && userSubscribe.getResult() == 0){
|
|
|
goodsUserVo.setSubscribeSign(3);
|
|
|
}
|
|
|
}
|
|
@@ -596,6 +598,13 @@ public class CourseServiceImpl extends ServiceImpl<CourseMapper, Course> impleme
|
|
|
String format = String.format("%s-%s", twoAddBo.getStartTime(), twoAddBo.getEndTime());
|
|
|
examApplyGoodsVo.setApplyTime(time);
|
|
|
examApplyGoodsVo.setApplyMoment(format);
|
|
|
+ examApplyGoodsVo.setApplyNum(twoAddBo.getNum().intValue());
|
|
|
+ //预约人数
|
|
|
+ int count = iUserSubscribeService.count(new LambdaQueryWrapper<UserSubscribe>()
|
|
|
+ .eq(UserSubscribe::getSubscribeStatus, 1)
|
|
|
+ .eq(UserSubscribe::getExamStatus, 0)
|
|
|
+ .eq(UserSubscribe::getApplyId, examApplyGoodsVo.getApplyId()));
|
|
|
+ examApplyGoodsVo.setSubscribeNum(count);
|
|
|
}
|
|
|
}
|
|
|
switch (examApply.getApplyNature()){
|