This commit is contained in:
zengtao01
2024-10-08 10:59:59 +08:00
parent a4eda09219
commit 825c6658ef
2 changed files with 7 additions and 3 deletions

View File

@ -274,8 +274,8 @@ public class DiningPlatesServiceImpl implements DiningPlatesService {
return false;
}
//刷新绑定时间
diningPlatesDO.setBindingTime(LocalDateTime.now());
diningPlatesMapper.updateById(diningPlatesDO);
//diningPlatesDO.setBindingTime(LocalDateTime.now());
//diningPlatesMapper.updateById(diningPlatesDO);
return true;
}
@ -288,6 +288,9 @@ public class DiningPlatesServiceImpl implements DiningPlatesService {
if (diningPlatesDO == null || diningPlatesDO.getUserId() == null) {
throw exception(DINING_PLATES_NOT_BIND);
}
//刷新绑定时间
diningPlatesDO.setBindingTime(LocalDateTime.now());
diningPlatesMapper.updateById(diningPlatesDO);
MemberUserDO memberUserDO = memberUserMapper.selectById(diningPlatesDO.getUserId());
AppUserInfoCardVO data = new AppUserInfoCardVO();

View File

@ -246,7 +246,8 @@ public class DishesServiceImpl implements DishesService {
List<DishesDO> dishesDOS = dishesMapper.selectList(Wrappers.<DishesDO>lambdaQuery()
.eq(DishesDO::getCarteenId, carteenId)
.in(DishesDO::getWeekTime, week)
.in(DishesDO::getTimeSlot, todayTime));
.in(DishesDO::getTimeSlot, todayTime)
.orderByDesc(DishesDO::getCreateTime));
return dishesDOS;
}