修复Get请求没有请求体参数的问题
This commit is contained in:
parent
db283b781d
commit
87c4289f40
@ -61,7 +61,7 @@ public class XhpcInvoiceApiController extends BaseController {
|
|||||||
* @since version-1.0
|
* @since version-1.0
|
||||||
*/
|
*/
|
||||||
@GetMapping(value = "/user/history")
|
@GetMapping(value = "/user/history")
|
||||||
public AjaxResult findInvoiceHistoryRecords(@RequestBody InvoiceHistoryRecordsRequest invoiceHistoryRecordsRequest) {
|
public AjaxResult findInvoiceHistoryRecords(InvoiceHistoryRecordsRequest invoiceHistoryRecordsRequest) {
|
||||||
|
|
||||||
InvoiceHistoryRecordsResponse invoiceHistoryRecordsResponse = xhpcInvoiceService.findInvoiceHistoryRecords(invoiceHistoryRecordsRequest);
|
InvoiceHistoryRecordsResponse invoiceHistoryRecordsResponse = xhpcInvoiceService.findInvoiceHistoryRecords(invoiceHistoryRecordsRequest);
|
||||||
return AjaxResult.success(invoiceHistoryRecordsResponse);
|
return AjaxResult.success(invoiceHistoryRecordsResponse);
|
||||||
@ -92,7 +92,7 @@ public class XhpcInvoiceApiController extends BaseController {
|
|||||||
* @since version-1.0
|
* @since version-1.0
|
||||||
*/
|
*/
|
||||||
@GetMapping(value = "/user/history-orders")
|
@GetMapping(value = "/user/history-orders")
|
||||||
public AjaxResult findUserHistoryOrders(@RequestBody InvoicedOrdersRequest invoicedOrdersRequest) {
|
public AjaxResult findUserHistoryOrders(InvoicedOrdersRequest invoicedOrdersRequest) {
|
||||||
|
|
||||||
if (invoicedOrdersRequest.getCurrentPage() == null || invoicedOrdersRequest.getItems() == null) {
|
if (invoicedOrdersRequest.getCurrentPage() == null || invoicedOrdersRequest.getItems() == null) {
|
||||||
return AjaxResult.error("分页参数不能为空:当前页数参数或当页要显示的条数为空");
|
return AjaxResult.error("分页参数不能为空:当前页数参数或当页要显示的条数为空");
|
||||||
|
|||||||
@ -133,7 +133,7 @@ public class XhpcInvoiceController extends BaseController {
|
|||||||
* @since version-1.0
|
* @since version-1.0
|
||||||
*/
|
*/
|
||||||
@GetMapping("/all-info")
|
@GetMapping("/all-info")
|
||||||
public AjaxResult findAllInvoiceOrders(@RequestBody AllInvoiceOrdersRequest requestData) {
|
public AjaxResult findAllInvoiceOrders(AllInvoiceOrdersRequest requestData) {
|
||||||
|
|
||||||
if (requestData.getCurrentPage() == null || requestData.getItems() == null) {
|
if (requestData.getCurrentPage() == null || requestData.getItems() == null) {
|
||||||
return AjaxResult.error("当前页数、每页要显示的条数为必传递项");
|
return AjaxResult.error("当前页数、每页要显示的条数为必传递项");
|
||||||
@ -152,7 +152,7 @@ public class XhpcInvoiceController extends BaseController {
|
|||||||
* @since version-1.0
|
* @since version-1.0
|
||||||
*/
|
*/
|
||||||
@GetMapping("/detail")
|
@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")));
|
Long invoiceId = Long.valueOf(String.valueOf(invoiceIdMap.get("invoiceId")));
|
||||||
SpecificInvoiceWrap specificInvoiceWrap = xhpcInvoiceService.findSpecificInvoice(invoiceId);
|
SpecificInvoiceWrap specificInvoiceWrap = xhpcInvoiceService.findSpecificInvoice(invoiceId);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user