|
@@ -195,21 +195,19 @@ public class OrderHandleServiceImpl extends ServiceImpl<OrderHandleMapper, Order
|
|
|
Long secLong = 0L;
|
|
Long secLong = 0L;
|
|
|
Long studyLong = 0L;
|
|
Long studyLong = 0L;
|
|
|
|
|
|
|
|
- if (vo.getPayStatus() == 1) {
|
|
|
|
|
- SubjectStudyRecordQueryBo subjectStudyRecordQueryBo = new SubjectStudyRecordQueryBo();
|
|
|
|
|
- subjectStudyRecordQueryBo.setGoodsId(vo.getGoodsId());
|
|
|
|
|
- subjectStudyRecordQueryBo.setUserId(vo.getUserId());
|
|
|
|
|
- subjectStudyRecordQueryBo.setGradeId(vo.getGradeId());
|
|
|
|
|
- subjectStudyRecordQueryBo.setOrderGoodsId(vo.getOrderGoodsId());
|
|
|
|
|
- List<SubjectStudyRecordVo> subjectStudyRecordVos = iUserStudyRecordService.listSubject(subjectStudyRecordQueryBo);
|
|
|
|
|
- for (SubjectStudyRecordVo subjectStudyRecordVo : subjectStudyRecordVos) {
|
|
|
|
|
- secLong = new BigDecimal(secLong.toString()).add(new BigDecimal(subjectStudyRecordVo.getSectionNum().toString())).longValue();
|
|
|
|
|
- studyLong = new BigDecimal(studyLong.toString()).add(new BigDecimal(subjectStudyRecordVo.getRecordNum().toString())).longValue();
|
|
|
|
|
|
|
+ SubjectStudyRecordQueryBo subjectStudyRecordQueryBo = new SubjectStudyRecordQueryBo();
|
|
|
|
|
+ subjectStudyRecordQueryBo.setGoodsId(vo.getGoodsId());
|
|
|
|
|
+ subjectStudyRecordQueryBo.setUserId(vo.getUserId());
|
|
|
|
|
+ subjectStudyRecordQueryBo.setGradeId(vo.getGradeId());
|
|
|
|
|
+ subjectStudyRecordQueryBo.setOrderGoodsId(vo.getOrderGoodsId());
|
|
|
|
|
+ List<SubjectStudyRecordVo> subjectStudyRecordVos = iUserStudyRecordService.listSubject(subjectStudyRecordQueryBo);
|
|
|
|
|
+ for (SubjectStudyRecordVo subjectStudyRecordVo : subjectStudyRecordVos) {
|
|
|
|
|
+ secLong = new BigDecimal(secLong.toString()).add(new BigDecimal(subjectStudyRecordVo.getSectionNum().toString())).longValue();
|
|
|
|
|
+ studyLong = new BigDecimal(studyLong.toString()).add(new BigDecimal(subjectStudyRecordVo.getRecordNum().toString())).longValue();
|
|
|
|
|
|
|
|
- }
|
|
|
|
|
- vo.setSecAllNum(secLong);
|
|
|
|
|
- vo.setStuAllNum(studyLong);
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+ vo.setSecAllNum(secLong);
|
|
|
|
|
+ vo.setStuAllNum(studyLong);
|
|
|
//退款
|
|
//退款
|
|
|
OrderGoodsRefund refund = iOrderGoodsRefundService
|
|
OrderGoodsRefund refund = iOrderGoodsRefundService
|
|
|
.getOne(new LambdaQueryWrapper<OrderGoodsRefund>()
|
|
.getOne(new LambdaQueryWrapper<OrderGoodsRefund>()
|