优化
This commit is contained in:
@ -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();
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user