| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.utils.page.PageDTO; |
| | | import com.ruoyi.common.security.annotation.InnerAuth; |
| | | import com.ruoyi.member.domain.vo.RegionVo; |
| | | import com.ruoyi.member.dto.MemberAddressDTO; |
| | | import com.ruoyi.member.service.IMemberAddressService; |
| | | import com.ruoyi.member.service.IRegionService; |
| | | import com.ruoyi.system.api.domain.MemberAddress; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | * |
| | | */ |
| | | |
| | | @ApiModelProperty |
| | | @Resource |
| | | private IMemberAddressService iMemberAddressService; |
| | | |
| | | |
| | | @PostMapping("/getMemberAddressOne") |
| | | @ResponseBody |
| | | @InnerAuth |
| | | public R<MemberAddress> getMemberAddressOne(@RequestBody Integer userId) { |
| | | public R<MemberAddress> getMemberAddressOne(@RequestBody Long userId) { |
| | | LambdaQueryWrapper<MemberAddress> wrapper2= Wrappers.lambdaQuery(); |
| | | wrapper2.eq(MemberAddress::getMemberId,userId); |
| | | wrapper2.eq(MemberAddress::getDelFlag,0); |