|
@@ -32,7 +32,7 @@ public class UserCourseCatalogServiceImpl extends ServiceImpl<UserCourseCatalogM
|
|
|
*/
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
- public void calcStudyTime(CatalogTimeVO catalogTimeVO) {
|
|
|
+ public synchronized void calcStudyTime(CatalogTimeVO catalogTimeVO) {
|
|
|
if (StringUtils.isBlank(catalogTimeVO.getCourseCatalogId()) || Objects.isNull(catalogTimeVO.getStartLearnTime())
|
|
|
|| Objects.isNull(catalogTimeVO.getEndLearnTime())) {
|
|
|
return;
|
|
@@ -51,7 +51,6 @@ public class UserCourseCatalogServiceImpl extends ServiceImpl<UserCourseCatalogM
|
|
|
? courseCatalog.getTotalLearnTime() : 0) + between))));
|
|
|
saveOrUpdate(courseCatalog);
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
|
|
|
public UserCourseCatalog findUserCatalog(String userId, String courseCatalogId) {
|