|
@@ -1600,7 +1600,7 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements
|
|
|
|
|
|
if (CollectionUtils.isNotEmpty(recordList)){
|
|
|
//保存记录
|
|
|
- iSysGoodsCopyRecordService.saveBatch(recordList);
|
|
|
+// iSysGoodsCopyRecordService.saveBatch(recordList);
|
|
|
}
|
|
|
|
|
|
//规格模板商品重新绑定
|
|
@@ -1704,7 +1704,8 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements
|
|
|
record.setCreateTime(DateUtils.getNowTime());
|
|
|
record.setUpdateTime(DateUtils.getNowTime());
|
|
|
record.setTenantId(newTenantId);
|
|
|
- array.add(record);
|
|
|
+ iSysGoodsCopyRecordService.save(record);
|
|
|
+// array.add(record);
|
|
|
}
|
|
|
|
|
|
private void disposeGoodsAttached(Long oldGoodsId,Long newGoodsId,Long newTenantId,List<SysGoodsCopyRecord> array){
|
|
@@ -1760,7 +1761,7 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements
|
|
|
course.setCourseId(null);
|
|
|
course.setTenantId(newTenantId);
|
|
|
course.setEducationTypeId(getNewEducationTypeId(course.getEducationTypeId(),newTenantId,array));
|
|
|
- course.setProjectId(getNewProjectTypeId(course.getProjectId(),newTenantId,array));
|
|
|
+ course.setBusinessId(getNewBusinessId(course.getBusinessId(),newTenantId,array));
|
|
|
course.setSubjectId(getNewSubjectId(course.getSubjectId(), newTenantId,array));
|
|
|
course.setProjectId(getNewProjectTypeId(course.getProjectId(), newTenantId,array));
|
|
|
course.setMajorId(getNewMajorId(course.getMajorId(),newTenantId,array));
|
|
@@ -3976,8 +3977,10 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements
|
|
|
sectionNum = baseMapper.getSectionNum(vo.getGoodsId());
|
|
|
vo.setGoodsCourseMsg(String.format("%s课程 %s节 %s学时",courseCount,sectionNum,vo.getClassHours()));
|
|
|
}
|
|
|
- //学习进度
|
|
|
- Long examNum = baseMapper.getCourseExamNum(vo.getGoodsId());
|
|
|
+ //商品试卷总节数
|
|
|
+ Long examNum = baseMapper.getCourseExamNum(vo.getGoodsId());
|
|
|
+ //当前用户学习进度
|
|
|
+ Long userStudyNum = baseMapper.getUserStudyNum(bo.getUserId(),vo.getOrderGoodsId());
|
|
|
|
|
|
}
|
|
|
|