From 336e6ba297d3c71e553a1802fb6047858eb6ec24 Mon Sep 17 00:00:00 2001 From: clunt Date: Tue, 17 May 2022 00:00:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E8=B4=B9=E8=80=85=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ghy/web/controller/customer/CustomerAddressController.java | 3 ++- .../main/resources/mapper/customer/CustomerAddressMapper.xml | 2 +- .../src/main/java/com/ghy/framework/config/ShiroConfig.java | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ghy-admin/src/main/java/com/ghy/web/controller/customer/CustomerAddressController.java b/ghy-admin/src/main/java/com/ghy/web/controller/customer/CustomerAddressController.java index af7e98dc..5767ee0d 100644 --- a/ghy-admin/src/main/java/com/ghy/web/controller/customer/CustomerAddressController.java +++ b/ghy-admin/src/main/java/com/ghy/web/controller/customer/CustomerAddressController.java @@ -7,6 +7,7 @@ import com.ghy.customer.domain.CustomerAddress; import com.ghy.customer.service.CustomerAddressService; import org.springframework.stereotype.Controller; 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.ResponseBody; @@ -25,7 +26,7 @@ public class CustomerAddressController extends BaseController { */ @PostMapping("/list") @ResponseBody - AjaxResult getCustomerAddressList(CustomerAddress customerAddress){ + AjaxResult getCustomerAddressList(@RequestBody CustomerAddress customerAddress){ try { return AjaxResult.success(customerAddressService.getCustomerAddressList(customerAddress)); }catch (Exception e){ diff --git a/ghy-custom/src/main/resources/mapper/customer/CustomerAddressMapper.xml b/ghy-custom/src/main/resources/mapper/customer/CustomerAddressMapper.xml index 00f16ffb..cdbeedff 100644 --- a/ghy-custom/src/main/resources/mapper/customer/CustomerAddressMapper.xml +++ b/ghy-custom/src/main/resources/mapper/customer/CustomerAddressMapper.xml @@ -20,7 +20,7 @@ - SELECT customer_address_id, customer_id, name, phone, provinceId, cityId, countryId, status, + SELECT customer_address_id, customer_id, name, phone, province_id, city_id, country_id, status, address, create_by, create_time, remark FROM customer_address diff --git a/ghy-framework/src/main/java/com/ghy/framework/config/ShiroConfig.java b/ghy-framework/src/main/java/com/ghy/framework/config/ShiroConfig.java index eb777fa3..a6a41738 100644 --- a/ghy-framework/src/main/java/com/ghy/framework/config/ShiroConfig.java +++ b/ghy-framework/src/main/java/com/ghy/framework/config/ShiroConfig.java @@ -283,6 +283,7 @@ public class ShiroConfig filterChainDefinitionMap.put("/tool/**", "anon"); filterChainDefinitionMap.put("/adapay/**", "anon"); filterChainDefinitionMap.put("/system/area/**", "anon"); + filterChainDefinitionMap.put("/customer/address/**", "anon"); filterChainDefinitionMap.put("/MP_verify_bRFuvYpyQ4WLr0on.txt", "anon"); // 对静态资源设置匿名访问 filterChainDefinitionMap.put("/favicon.ico**", "anon");