|
@@ -609,7 +609,6 @@ public class OrderGoodsServiceImpl extends ServiceImpl<OrderGoodsMapper, OrderGo
|
|
|
|
|
|
Long secLong = 0L;
|
|
|
Long studyLong = 0L;
|
|
|
- Integer studyStatus = 0;
|
|
|
SubjectStudyRecordQueryBo subjectStudyRecordQueryBo = new SubjectStudyRecordQueryBo();
|
|
|
subjectStudyRecordQueryBo.setGoodsId(goodsVo.getGoodsId());
|
|
|
subjectStudyRecordQueryBo.setUserId(bo.getUserId());
|
|
@@ -625,11 +624,10 @@ public class OrderGoodsServiceImpl extends ServiceImpl<OrderGoodsMapper, OrderGo
|
|
|
if (ObjectUtils.isNotNull(vo)){
|
|
|
secLong = vo.getSectionNum();
|
|
|
studyLong = vo.getRecordNum();
|
|
|
- studyStatus = studyStatus + vo.getStudyStatus().intValue();
|
|
|
}
|
|
|
goodsVo.setSecAllNum(secLong);
|
|
|
goodsVo.setStuAllNum(studyLong);
|
|
|
- if(studyStatus>0){
|
|
|
+ if(vo.getStudyStatus()>0){
|
|
|
goodsVo.setStudyStatus(2);
|
|
|
}else{
|
|
|
goodsVo.setStudyStatus(1);
|