|
@@ -1,25 +1,15 @@
|
|
package com.chelvc.cloud.vehicle.server.service.impl;
|
|
package com.chelvc.cloud.vehicle.server.service.impl;
|
|
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
-import com.chelvc.cloud.vehicle.api.dto.CarouselImagesDTO;
|
|
|
|
-import com.chelvc.cloud.vehicle.api.param.CarouselImagesModifyParam;
|
|
|
|
-import com.chelvc.cloud.vehicle.api.param.CarouselImagesPagingParam;
|
|
|
|
-import com.chelvc.cloud.vehicle.server.copier.CarouselImagesCopier;
|
|
|
|
-import com.chelvc.cloud.vehicle.server.dao.CarouselImagesMapper;
|
|
|
|
|
|
+import com.chelvc.cloud.vehicle.api.dto.CurrencyRecordDTO;
|
|
|
|
+import com.chelvc.cloud.vehicle.server.copier.CurrencyRecordCopier;
|
|
import com.chelvc.cloud.vehicle.server.dao.CurrencyRecordMapper;
|
|
import com.chelvc.cloud.vehicle.server.dao.CurrencyRecordMapper;
|
|
-import com.chelvc.cloud.vehicle.server.entity.CarouselImages;
|
|
|
|
import com.chelvc.cloud.vehicle.server.entity.CurrencyRecord;
|
|
import com.chelvc.cloud.vehicle.server.entity.CurrencyRecord;
|
|
-import com.chelvc.cloud.vehicle.server.service.CarouselImagesService;
|
|
|
|
import com.chelvc.cloud.vehicle.server.service.CurrencyRecordService;
|
|
import com.chelvc.cloud.vehicle.server.service.CurrencyRecordService;
|
|
-import com.chelvc.framework.common.model.Pagination;
|
|
|
|
-import com.chelvc.framework.common.util.AssertUtils;
|
|
|
|
-import com.chelvc.framework.common.util.StringUtils;
|
|
|
|
-import com.chelvc.framework.database.context.DatabaseContextHolder;
|
|
|
|
-import lombok.NonNull;
|
|
|
|
|
|
+import com.chelvc.framework.base.context.SessionContextHolder;
|
|
import org.apache.dubbo.config.annotation.DubboService;
|
|
import org.apache.dubbo.config.annotation.DubboService;
|
|
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
-import java.util.Objects;
|
|
|
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 收益流水记录表操作接口
|
|
* 收益流水记录表操作接口
|
|
@@ -31,4 +21,17 @@ import java.util.Objects;
|
|
public class CurrencyRecordServiceImpl extends ServiceImpl<CurrencyRecordMapper, CurrencyRecord> implements CurrencyRecordService,
|
|
public class CurrencyRecordServiceImpl extends ServiceImpl<CurrencyRecordMapper, CurrencyRecord> implements CurrencyRecordService,
|
|
com.chelvc.cloud.vehicle.api.service.CurrencyRecordService {
|
|
com.chelvc.cloud.vehicle.api.service.CurrencyRecordService {
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
+ public List<CurrencyRecordDTO> listCurrencyRecord(){
|
|
|
|
+ Long userId = SessionContextHolder.getId();
|
|
|
|
+ List<CurrencyRecord> currencyRecords = this.lambdaQuery()
|
|
|
|
+ .eq(CurrencyRecord::getUserId,userId)
|
|
|
|
+ .list();
|
|
|
|
+ return CurrencyRecordCopier.INSTANCE.copying(currencyRecords);
|
|
|
|
+ }
|
|
|
|
+ @Override
|
|
|
|
+ public Map<String, Object> getCurrencyRecord(){
|
|
|
|
+ Long userId = SessionContextHolder.getId();
|
|
|
|
+ return this.baseMapper.getCurrencyRecord(userId);
|
|
|
|
+ }
|
|
}
|
|
}
|