囤油锁价

This commit is contained in:
齐天大圣 2024-05-10 17:28:09 +08:00
parent 88db1d93a0
commit fa64cf61b6
3 changed files with 4 additions and 4 deletions

View File

@ -109,7 +109,7 @@ public interface CardFuelRecordMapper extends BaseMapper<CardFuelRecord> {
List<CardFuelRecordCount> selectFuelRecordCount(CardFuelRecord cardFuelRecord);
CardFuelRecord getRecordByUserId(@Param("cardFuelRecord") CardFuelRecord cardFuelRecord);
List<CardFuelRecord> getRecordByUserId(@Param("cardFuelRecord") CardFuelRecord cardFuelRecord);
}

View File

@ -113,5 +113,5 @@ public interface CardFuelRecordService {
*/
List<CardFuelRecordCount> selectFuelRecordCount(CardFuelRecord cardFuelRecord);
CardFuelRecord getRecordByUserId(CardFuelRecord cardFuelRecord);
List<CardFuelRecord> getRecordByUserId(CardFuelRecord cardFuelRecord);
}

View File

@ -1005,7 +1005,7 @@ public class CardFuelRecordServiceImpl implements CardFuelRecordService {
}
@Override
public CardFuelRecord getRecordByUserId(CardFuelRecord cardFuelRecord) {
public List<CardFuelRecord> getRecordByUserId(CardFuelRecord cardFuelRecord) {
Integer storeId = 0;
if (ObjectUtils.isNotEmpty(cardFuelRecord.getStoreId())){
@ -1014,7 +1014,7 @@ public class CardFuelRecordServiceImpl implements CardFuelRecordService {
storeId= TokenUtil.getNowAccountInfo().getStoreId();
}
cardFuelRecord.setStoreId(storeId);
CardFuelRecord recordByUserId = cardFuelRecordMapper.getRecordByUserId(cardFuelRecord);
List<CardFuelRecord> recordByUserId = cardFuelRecordMapper.getRecordByUserId(cardFuelRecord);
return recordByUserId;
}
}