浏览代码

订单明细优化

liude 7 月之前
父节点
当前提交
37e9ddb5a5
共有 1 个文件被更改,包括 5 次插入3 次删除
  1. 5 3
      src/main/java/com/chelvc/cloud/maintain/controller/CurrencyRecordController.java

+ 5 - 3
src/main/java/com/chelvc/cloud/maintain/controller/CurrencyRecordController.java

@@ -3,11 +3,13 @@ package com.chelvc.cloud.maintain.controller;
 import java.time.LocalDate;
 import java.util.Date;
 import java.util.List;
+import javax.validation.Valid;
 import javax.validation.constraints.NotNull;
 
 import com.chelvc.cloud.vehicle.client.CurrencyRecordClient;
 import com.chelvc.cloud.vehicle.client.dto.CurrencyRecordDTO;
 import com.chelvc.cloud.vehicle.client.dto.EarningsDTO;
+import com.chelvc.cloud.vehicle.client.param.BalanceRetailParam;
 import com.chelvc.framework.base.annotation.ResponseWrapping;
 import lombok.RequiredArgsConstructor;
 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")
-    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);
     }
 
     /**