视频查看量更新

This commit is contained in:
Liuyang 2025-01-13 11:15:26 +08:00
parent 48dbd6e3fb
commit c71a78d39a

View File

@ -109,7 +109,7 @@ public class LearningResourcesServiceImpl implements LearningResourcesService {
Integer downCount = updateReqVO.getDownCount();
// 如果downCount为空或者小于等于0则将downCount设置为0
if (downCount == null|| downCount <= 0) {
if (downCount == null|| downCount < 0) {
updateReqVO.setDownCount(0);
}else {
updateReqVO.setDownCount(downCount + 1);