package com.panzhihua.service_community.dao; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.panzhihua.common.model.vos.shop.ComShopUserAddressVO; import com.panzhihua.service_community.model.dos.ComShopFlowerUserAddressDO; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; import java.util.List; /** * @ClassName: ComShopFlowerUserAddressMapper * @Author: yh * @Date: 2022/11/9 16:46 * @Description: TODO */ @Mapper public interface ComShopFlowerUserAddressDAO extends BaseMapper { @Select("select id,`name`,phone,province_code,province_name,city_code,city_name" + ",district_code,district_name,detail_address,is_default " + " from com_shop_flower_user_address where delete_status = 2 and user_id = #{userId} order by create_at desc") List pageUserAddressList(Page page, @Param("userId") Long userId); }