修复Get请求没有请求体参数的问题

This commit is contained in:
wen 2022-01-05 17:44:04 +08:00
parent db283b781d
commit 87c4289f40
2 changed files with 4 additions and 4 deletions

View File

@ -61,7 +61,7 @@ public class XhpcInvoiceApiController extends BaseController {
* @since version-1.0
*/
@GetMapping(value = "/user/history")
public AjaxResult findInvoiceHistoryRecords(@RequestBody InvoiceHistoryRecordsRequest invoiceHistoryRecordsRequest) {
public AjaxResult findInvoiceHistoryRecords(InvoiceHistoryRecordsRequest invoiceHistoryRecordsRequest) {
InvoiceHistoryRecordsResponse invoiceHistoryRecordsResponse = xhpcInvoiceService.findInvoiceHistoryRecords(invoiceHistoryRecordsRequest);
return AjaxResult.success(invoiceHistoryRecordsResponse);
@ -92,7 +92,7 @@ public class XhpcInvoiceApiController extends BaseController {
* @since version-1.0
*/
@GetMapping(value = "/user/history-orders")
public AjaxResult findUserHistoryOrders(@RequestBody InvoicedOrdersRequest invoicedOrdersRequest) {
public AjaxResult findUserHistoryOrders(InvoicedOrdersRequest invoicedOrdersRequest) {
if (invoicedOrdersRequest.getCurrentPage() == null || invoicedOrdersRequest.getItems() == null) {
return AjaxResult.error("分页参数不能为空:当前页数参数或当页要显示的条数为空");

View File

@ -133,7 +133,7 @@ public class XhpcInvoiceController extends BaseController {
* @since version-1.0
*/
@GetMapping("/all-info")
public AjaxResult findAllInvoiceOrders(@RequestBody AllInvoiceOrdersRequest requestData) {
public AjaxResult findAllInvoiceOrders(AllInvoiceOrdersRequest requestData) {
if (requestData.getCurrentPage() == null || requestData.getItems() == null) {
return AjaxResult.error("当前页数、每页要显示的条数为必传递项");
@ -152,7 +152,7 @@ public class XhpcInvoiceController extends BaseController {
* @since version-1.0
*/
@GetMapping("/detail")
public AjaxResult findSpecificInvoice(@RequestBody Map<String, Object> invoiceIdMap) {
public AjaxResult findSpecificInvoice(Map<String, Object> invoiceIdMap) {
Long invoiceId = Long.valueOf(String.valueOf(invoiceIdMap.get("invoiceId")));
SpecificInvoiceWrap specificInvoiceWrap = xhpcInvoiceService.findSpecificInvoice(invoiceId);