|
@@ -337,7 +337,7 @@ public class WxPayServiceImpl implements IWxPayService {
|
|
|
private void updateUserExamGoods(OrderGoods g,Order order) {
|
|
private void updateUserExamGoods(OrderGoods g,Order order) {
|
|
|
GoodsVo goodsVo = iGoodsService.queryById(g.getGoodsId());
|
|
GoodsVo goodsVo = iGoodsService.queryById(g.getGoodsId());
|
|
|
//添加商品考试次数和补考次数
|
|
//添加商品考试次数和补考次数
|
|
|
- if (goodsVo.getGoodsType().equals(1)){
|
|
|
|
|
|
|
+ if (goodsVo.getGoodsType().equals(1L)){
|
|
|
if (userExamGoodsService.queryExamGoods(goodsVo.getGoodsId(),order.getUserId()) < 1){
|
|
if (userExamGoodsService.queryExamGoods(goodsVo.getGoodsId(),order.getUserId()) < 1){
|
|
|
ExamNumber examNumber = userExamGoodsService.queryExam(goodsVo.getGoodsId());
|
|
ExamNumber examNumber = userExamGoodsService.queryExam(goodsVo.getGoodsId());
|
|
|
if (examNumber != null) {
|
|
if (examNumber != null) {
|
|
@@ -360,7 +360,7 @@ public class WxPayServiceImpl implements IWxPayService {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
//增加前培次数
|
|
//增加前培次数
|
|
|
- if (goodsVo.getGoodsType().equals(4)){
|
|
|
|
|
|
|
+ if (goodsVo.getGoodsType().equals(4L)){
|
|
|
UserExamGoodsQueryBo userExamGoodsQueryBo = new UserExamGoodsQueryBo();
|
|
UserExamGoodsQueryBo userExamGoodsQueryBo = new UserExamGoodsQueryBo();
|
|
|
userExamGoodsQueryBo.setUserId(order.getUserId());
|
|
userExamGoodsQueryBo.setUserId(order.getUserId());
|
|
|
userExamGoodsQueryBo.setGoodsId(goodsVo.getMakeGoodsId());
|
|
userExamGoodsQueryBo.setGoodsId(goodsVo.getMakeGoodsId());
|
|
@@ -380,7 +380,7 @@ public class WxPayServiceImpl implements IWxPayService {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
//增加考试次数
|
|
//增加考试次数
|
|
|
- if (goodsVo.getGoodsType().equals(3)){
|
|
|
|
|
|
|
+ if (goodsVo.getGoodsType().equals(3L)){
|
|
|
UserExamGoodsQueryBo userExamGoodsQueryBo = new UserExamGoodsQueryBo();
|
|
UserExamGoodsQueryBo userExamGoodsQueryBo = new UserExamGoodsQueryBo();
|
|
|
userExamGoodsQueryBo.setUserId(order.getUserId());
|
|
userExamGoodsQueryBo.setUserId(order.getUserId());
|
|
|
userExamGoodsQueryBo.setGoodsId(goodsVo.getMakeGoodsId());
|
|
userExamGoodsQueryBo.setGoodsId(goodsVo.getMakeGoodsId());
|