| | |
| | | import cc.mrbird.febs.mall.dto.AddressInfoDto; |
| | | import cc.mrbird.febs.mall.dto.ApiIdentifyAddressDto; |
| | | import cc.mrbird.febs.mall.entity.MallAddressInfo; |
| | | import cc.mrbird.febs.mall.entity.MallAddressWorld; |
| | | import cc.mrbird.febs.mall.entity.MallMember; |
| | | import cc.mrbird.febs.mall.mapper.MallAddressInfoMapper; |
| | | import cc.mrbird.febs.mall.mapper.MallAddressWorldMapper; |
| | | import cc.mrbird.febs.mall.service.IApiMallAddressInfoService; |
| | | import cc.mrbird.febs.mall.vo.AddressInfoVo; |
| | | import cc.mrbird.febs.pay.util.WechatConfigure; |
| | | import cn.hutool.core.collection.CollUtil; |
| | | import cn.hutool.json.JSONObject; |
| | | import cn.hutool.json.JSONUtil; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import lombok.RequiredArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | |
| | | import java.io.IOException; |
| | | import java.util.Date; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | |
| | | @Autowired |
| | | private RedisUtils redisUtils; |
| | | @Autowired |
| | | private MallAddressWorldMapper mallAddressWorldMapper; |
| | | |
| | | @Override |
| | | public List<AddressInfoVo> findAddressInfoList() { |
| | |
| | | } |
| | | return new FebsResponse().success().data(data); |
| | | } |
| | | |
| | | @Override |
| | | public FebsResponse getProvince(Long id) { |
| | | LambdaQueryWrapper<MallAddressWorld> addressWorldLambdaQueryWrapper = new LambdaQueryWrapper<>(); |
| | | addressWorldLambdaQueryWrapper.eq(MallAddressWorld::getPid, id) |
| | | .orderByDesc(MallAddressWorld::getId); |
| | | List<MallAddressWorld> mallAddressWorlds = mallAddressWorldMapper.selectList(addressWorldLambdaQueryWrapper); |
| | | return new FebsResponse().success().data(mallAddressWorlds); |
| | | } |
| | | } |