package com.panzhihua.service_community.dao; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.panzhihua.common.model.dtos.shop.PageComShopStoreDTO; import com.panzhihua.common.model.vos.shop.PageShopStoreVO; import com.panzhihua.service_community.model.dos.ComShopStoreDO; /** * @auther lyq * @create 2021-04-14 15:03:55 * @describe 店铺表mapper类 */ @Mapper public interface ComShopStoreDAO extends BaseMapper { @Select("") IPage pageShopStore(Page page, @Param("pageComShopStoreDTO") PageComShopStoreDTO pageComShopStoreDTO); @Select("") IPage pageShopStoreByAdmin(Page page, @Param("pageComShopStoreDTO") PageComShopStoreDTO pageComShopStoreDTO); @Select("delete from sys_user where user_id = #{sysUserId}") void deleteSysUserBySysUserId(@Param("sysUserId") Long sysUserId); @Select("delete from sys_role where role_key = #{account}") void deleteSysRoleByAccount(@Param("account") String account); @Select("select count(user_id) from sys_user where phone=#{phone}") int reasonableUserByPhone(@Param("phone") String phone); @Select("select count(user_id) from sys_user where account=#{account} and type=5 ") int reasonableUserByAccount(@Param("account") String account); }