优化
This commit is contained in:
@ -274,8 +274,8 @@ public class DiningPlatesServiceImpl implements DiningPlatesService {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
//刷新绑定时间
|
//刷新绑定时间
|
||||||
diningPlatesDO.setBindingTime(LocalDateTime.now());
|
//diningPlatesDO.setBindingTime(LocalDateTime.now());
|
||||||
diningPlatesMapper.updateById(diningPlatesDO);
|
//diningPlatesMapper.updateById(diningPlatesDO);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -288,6 +288,9 @@ public class DiningPlatesServiceImpl implements DiningPlatesService {
|
|||||||
if (diningPlatesDO == null || diningPlatesDO.getUserId() == null) {
|
if (diningPlatesDO == null || diningPlatesDO.getUserId() == null) {
|
||||||
throw exception(DINING_PLATES_NOT_BIND);
|
throw exception(DINING_PLATES_NOT_BIND);
|
||||||
}
|
}
|
||||||
|
//刷新绑定时间
|
||||||
|
diningPlatesDO.setBindingTime(LocalDateTime.now());
|
||||||
|
diningPlatesMapper.updateById(diningPlatesDO);
|
||||||
|
|
||||||
MemberUserDO memberUserDO = memberUserMapper.selectById(diningPlatesDO.getUserId());
|
MemberUserDO memberUserDO = memberUserMapper.selectById(diningPlatesDO.getUserId());
|
||||||
AppUserInfoCardVO data = new AppUserInfoCardVO();
|
AppUserInfoCardVO data = new AppUserInfoCardVO();
|
||||||
|
@ -246,7 +246,8 @@ public class DishesServiceImpl implements DishesService {
|
|||||||
List<DishesDO> dishesDOS = dishesMapper.selectList(Wrappers.<DishesDO>lambdaQuery()
|
List<DishesDO> dishesDOS = dishesMapper.selectList(Wrappers.<DishesDO>lambdaQuery()
|
||||||
.eq(DishesDO::getCarteenId, carteenId)
|
.eq(DishesDO::getCarteenId, carteenId)
|
||||||
.in(DishesDO::getWeekTime, week)
|
.in(DishesDO::getWeekTime, week)
|
||||||
.in(DishesDO::getTimeSlot, todayTime));
|
.in(DishesDO::getTimeSlot, todayTime)
|
||||||
|
.orderByDesc(DishesDO::getCreateTime));
|
||||||
return dishesDOS;
|
return dishesDOS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user