|
@@ -3,11 +3,13 @@ package com.chelvc.cloud.maintain.controller;
|
|
import java.time.LocalDate;
|
|
import java.time.LocalDate;
|
|
import java.util.Date;
|
|
import java.util.Date;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
+import javax.validation.Valid;
|
|
import javax.validation.constraints.NotNull;
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
|
|
import com.chelvc.cloud.vehicle.client.CurrencyRecordClient;
|
|
import com.chelvc.cloud.vehicle.client.CurrencyRecordClient;
|
|
import com.chelvc.cloud.vehicle.client.dto.CurrencyRecordDTO;
|
|
import com.chelvc.cloud.vehicle.client.dto.CurrencyRecordDTO;
|
|
import com.chelvc.cloud.vehicle.client.dto.EarningsDTO;
|
|
import com.chelvc.cloud.vehicle.client.dto.EarningsDTO;
|
|
|
|
+import com.chelvc.cloud.vehicle.client.param.BalanceRetailParam;
|
|
import com.chelvc.framework.base.annotation.ResponseWrapping;
|
|
import com.chelvc.framework.base.annotation.ResponseWrapping;
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -31,11 +33,11 @@ public class CurrencyRecordController {
|
|
/**
|
|
/**
|
|
* 用户收益记录列表查询
|
|
* 用户收益记录列表查询
|
|
*
|
|
*
|
|
- * @param type 类型:0-平台;1-用户;2-商户
|
|
|
|
|
|
+ * @param :0-平台;1-用户;2-商户
|
|
*/
|
|
*/
|
|
@GetMapping("/listCurrencyRecord")
|
|
@GetMapping("/listCurrencyRecord")
|
|
- public List<CurrencyRecordDTO> listCurrencyRecord(@NotNull(message = "查询类型不能为空") Integer type, @NotNull(message = "日期不能为空")Long date) {
|
|
|
|
- return this.currencyRecordClient.listCurrencyRecord(type,date);
|
|
|
|
|
|
+ public List<CurrencyRecordDTO> listCurrencyRecord(@Valid BalanceRetailParam param) {
|
|
|
|
+ return this.currencyRecordClient.listCurrencyRecord(param);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|