修改--查看他人发布作品详情完善剩余天数计算

This commit is contained in:
haotian 2025-04-14 10:15:33 +08:00
parent 1cc41ec09f
commit 01dae4bb95
2 changed files with 4 additions and 1 deletions

View File

@ -1418,7 +1418,7 @@ public class AppSystemController extends BaseController {
//--------------------------------------测试时直接注释掉-------------------------------------------------
LocalDate now = LocalDate.now();
long daysBetween = ChronoUnit.DAYS.between(now, userPublishWorkSourceListDto.getEndTime());
userPublishWorkSourceListDto.setrDays(daysBetween);
userPublishWorkSourceListDto.setrDays(Math.max(daysBetween, 0L));
//--------------------------------------测试时直接注释掉end-----------------------------------------------
// userPublishWorkSourceListDto.setrDays(0L);
}

View File

@ -15,7 +15,10 @@ ruoyi:
idCardPath: D:/ruoyi/IdCard
domain: http://10.0.0.17:8081
# # 腾讯云
# domain: http://82.156.153.112:8081
# # 火山云
# domain: http://14.103.162.172:8081
#
# idCardPath: /home/IdCard