|
@@ -8,6 +8,7 @@ import com.payment.platform.module.payment.facetoface.dto.F2fOrderUpdateDTO;
|
|
|
import com.payment.platform.module.payment.facetoface.dto.F2fOrderVO;
|
|
import com.payment.platform.module.payment.facetoface.dto.F2fOrderVO;
|
|
|
import com.payment.platform.module.payment.facetoface.dto.F2fTradePrecreateDTO;
|
|
import com.payment.platform.module.payment.facetoface.dto.F2fTradePrecreateDTO;
|
|
|
import com.payment.platform.module.payment.facetoface.dto.F2fTradeQueryDTO;
|
|
import com.payment.platform.module.payment.facetoface.dto.F2fTradeQueryDTO;
|
|
|
|
|
+import com.payment.platform.module.payment.facetoface.dto.F2fTradeRecordVO;
|
|
|
import com.payment.platform.module.payment.facetoface.dto.F2fTradeVO;
|
|
import com.payment.platform.module.payment.facetoface.dto.F2fTradeVO;
|
|
|
import com.payment.platform.module.payment.facetoface.service.FacetofaceService;
|
|
import com.payment.platform.module.payment.facetoface.service.FacetofaceService;
|
|
|
import jakarta.validation.Valid;
|
|
import jakarta.validation.Valid;
|
|
@@ -77,4 +78,20 @@ public class FacetofaceController {
|
|
|
public Result<F2fTradeVO> queryTrade(@Valid F2fTradeQueryDTO dto) {
|
|
public Result<F2fTradeVO> queryTrade(@Valid F2fTradeQueryDTO dto) {
|
|
|
return Result.ok(service.queryTrade(dto));
|
|
return Result.ok(service.queryTrade(dto));
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ @GetMapping("/trade/list")
|
|
|
|
|
+ public Result<PageResult<F2fTradeRecordVO>> tradeList(
|
|
|
|
|
+ @RequestParam(name = "page_no", defaultValue = "1") int pageNo,
|
|
|
|
|
+ @RequestParam(name = "page_size", defaultValue = "20") int pageSize,
|
|
|
|
|
+ @RequestParam(name = "enterprise_id", required = false) String enterpriseId,
|
|
|
|
|
+ @RequestParam(name = "trade_status", required = false) String tradeStatus,
|
|
|
|
|
+ @RequestParam(name = "start_date", required = false) String startDate,
|
|
|
|
|
+ @RequestParam(name = "end_date", required = false) String endDate) {
|
|
|
|
|
+ return Result.ok(service.tradeList(pageNo, pageSize, enterpriseId, tradeStatus, startDate, endDate));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @GetMapping("/trade/{id}")
|
|
|
|
|
+ public Result<F2fTradeRecordVO> tradeDetail(@PathVariable(name = "id") Long id) {
|
|
|
|
|
+ return Result.ok(service.tradeDetail(id));
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|