消费者地址
This commit is contained in:
parent
7d5b57c303
commit
336e6ba297
|
|
@ -7,6 +7,7 @@ import com.ghy.customer.domain.CustomerAddress;
|
||||||
import com.ghy.customer.service.CustomerAddressService;
|
import com.ghy.customer.service.CustomerAddressService;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
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.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.ResponseBody;
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
|
||||||
|
|
@ -25,7 +26,7 @@ public class CustomerAddressController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@PostMapping("/list")
|
@PostMapping("/list")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
AjaxResult getCustomerAddressList(CustomerAddress customerAddress){
|
AjaxResult getCustomerAddressList(@RequestBody CustomerAddress customerAddress){
|
||||||
try {
|
try {
|
||||||
return AjaxResult.success(customerAddressService.getCustomerAddressList(customerAddress));
|
return AjaxResult.success(customerAddressService.getCustomerAddressList(customerAddress));
|
||||||
}catch (Exception e){
|
}catch (Exception e){
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectCustomerAddress">
|
<sql id="selectCustomerAddress">
|
||||||
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
|
address, create_by, create_time, remark
|
||||||
FROM customer_address
|
FROM customer_address
|
||||||
</sql>
|
</sql>
|
||||||
|
|
|
||||||
|
|
@ -283,6 +283,7 @@ public class ShiroConfig
|
||||||
filterChainDefinitionMap.put("/tool/**", "anon");
|
filterChainDefinitionMap.put("/tool/**", "anon");
|
||||||
filterChainDefinitionMap.put("/adapay/**", "anon");
|
filterChainDefinitionMap.put("/adapay/**", "anon");
|
||||||
filterChainDefinitionMap.put("/system/area/**", "anon");
|
filterChainDefinitionMap.put("/system/area/**", "anon");
|
||||||
|
filterChainDefinitionMap.put("/customer/address/**", "anon");
|
||||||
filterChainDefinitionMap.put("/MP_verify_bRFuvYpyQ4WLr0on.txt", "anon");
|
filterChainDefinitionMap.put("/MP_verify_bRFuvYpyQ4WLr0on.txt", "anon");
|
||||||
// 对静态资源设置匿名访问
|
// 对静态资源设置匿名访问
|
||||||
filterChainDefinitionMap.put("/favicon.ico**", "anon");
|
filterChainDefinitionMap.put("/favicon.ico**", "anon");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue