|
@@ -10,6 +10,7 @@ import com.zhongzheng.modules.alisms.service.IAliSmsService;
|
|
|
import com.zhongzheng.modules.exam.mapper.ExamApplyMapper;
|
|
|
import com.zhongzheng.modules.exam.vo.ExamApplySiteTimeVo;
|
|
|
import com.zhongzheng.modules.exam.vo.ExamApplySiteVo;
|
|
|
+import com.zhongzheng.modules.exam.vo.ExamApplyVo;
|
|
|
import com.zhongzheng.modules.exam.vo.ExamUserApplyVo;
|
|
|
import com.zhongzheng.modules.goods.service.IGoodsService;
|
|
|
import com.zhongzheng.modules.goods.vo.GoodsVo;
|
|
@@ -268,6 +269,11 @@ public class UserSubscribeServiceImpl extends ServiceImpl<UserSubscribeMapper, U
|
|
|
sendExamcancel(userSubscribeEditBo);
|
|
|
}
|
|
|
update.setUpdateTime(DateUtils.getNowTime());
|
|
|
+ UserSubscribeVo userSubscribeVo = this.queryById(update.getSubscribeId());
|
|
|
+ ExamApplyVo examApplyVo = examApplyMapper.selectByApply(userSubscribeVo.getApplyId());
|
|
|
+ if (examApplyVo.getApplyEndTime() < System.currentTimeMillis()/1000){
|
|
|
+ throw new IllegalArgumentException("不可取消预约");
|
|
|
+ }
|
|
|
return this.updateById(update);
|
|
|
}
|
|
|
|