Преглед на файлове

修改对账查询传参方式

wanxl преди 1 година
родител
ревизия
cef3889aa2
променени са 1 файла, в които са добавени 4 реда и са изтрити 3 реда
  1. 4 3
      src/main/java/com/sqx/modules/reconciliation/controller/PlatformBillController.java

+ 4 - 3
src/main/java/com/sqx/modules/reconciliation/controller/PlatformBillController.java

@@ -8,6 +8,7 @@ import com.sqx.modules.reconciliation.service.PlatformBillService;
 import io.swagger.annotations.ApiOperation;
 import lombok.RequiredArgsConstructor;
 import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;
 
 import org.springframework.web.bind.annotation.RestController;
@@ -29,21 +30,21 @@ public class PlatformBillController {
 
     @ApiOperation("查询骑手对账")
     @PostMapping(value = "riderBill")
-    public Result riderBill(PlatformBillDto platformBillDto){
+    public Result riderBill(@RequestBody PlatformBillDto platformBillDto){
         PageUtils pageUtils = platformBillService.riderBill(platformBillDto);
         return Result.success().put("data",pageUtils);
     }
 
     @ApiOperation("查询商家对账")
     @PostMapping(value = "shopBill")
-    public Result shopBill(PlatformBillDto platformBillDto){
+    public Result shopBill(@RequestBody PlatformBillDto platformBillDto){
         PageUtils pageUtils = platformBillService.shopBill(platformBillDto);
         return Result.success().put("data",pageUtils);
     }
 
     @ApiOperation("查询平台对账")
     @PostMapping(value = "platformBill")
-    public Result platformBill(PlatformBillDto platformBillDto){
+    public Result platformBill(@RequestBody PlatformBillDto platformBillDto){
         PageUtils pageUtils = platformBillService.platformBill(platformBillDto);
         return Result.success().put("data",pageUtils);
     }