|
@@ -134,14 +134,6 @@ public class ConsumptionTopUpLogServiceImpl implements ConsumptionTopUpLogServic
|
|
consumptionTopUpLogMapper.updateById(updateObj);
|
|
consumptionTopUpLogMapper.updateById(updateObj);
|
|
}
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
|
- public void deleteConsumptionTopUpLog(Long id) {
|
|
|
|
- // 校验存在
|
|
|
|
- validateConsumptionTopUpLogExists(id);
|
|
|
|
- // 删除
|
|
|
|
- consumptionTopUpLogMapper.deleteById(id);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
private void validateConsumptionTopUpLogExists(Long id) {
|
|
private void validateConsumptionTopUpLogExists(Long id) {
|
|
if (consumptionTopUpLogMapper.selectById(id) == null) {
|
|
if (consumptionTopUpLogMapper.selectById(id) == null) {
|
|
throw exception(CONSUMPTION_TOP_UP_LOG_NOT_EXISTS);
|
|
throw exception(CONSUMPTION_TOP_UP_LOG_NOT_EXISTS);
|
|
@@ -181,5 +173,13 @@ public class ConsumptionTopUpLogServiceImpl implements ConsumptionTopUpLogServic
|
|
return consumptionTopUpLogMapper.selectList();
|
|
return consumptionTopUpLogMapper.selectList();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
+ public PtTopUpWithUserTopUpRespVO ptTopUpWithUserTopUpList() {
|
|
|
|
+ return PtTopUpWithUserTopUpRespVO.builder()
|
|
|
|
+ .topUpList(consumptionTopUpLogMapper.ptTopUpWithUserTopUpList())
|
|
|
|
+ .totalConsumptionPoints(consumptionTopUpLogMapper.getTotalConsumptionPoints())
|
|
|
|
+ .build();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
}
|
|
}
|