餐位费返回最新的
This commit is contained in:
@@ -978,8 +978,10 @@ public class ProductService {
|
||||
.gt(TbCashierCart::getCreatedAt, DateUtil.offsetDay(DateUtil.date(), -1).getTime())
|
||||
// .and(r -> r.eq(TbCashierCart::getUserId, userId).or().isNull(TbCashierCart::getUserId))
|
||||
.eq(TbCashierCart::getUseType, shopEatTypeInfoDTO.getUseType())
|
||||
.eq(TbCashierCart::getTableId, tableId);
|
||||
return mpCashierCartMapper.selectOne(query);
|
||||
.eq(TbCashierCart::getTableId, tableId)
|
||||
.orderByDesc(TbCashierCart::getId);
|
||||
List<TbCashierCart> cashierCartList = mpCashierCartMapper.selectList(query);
|
||||
return cashierCartList.isEmpty() ? null : cashierCartList.get(0);
|
||||
}
|
||||
|
||||
public Object choseEatModel(ChoseEatModelDTO choseTableDTO) {
|
||||
|
||||
Reference in New Issue
Block a user