| | |
| | | |
| | | @Select("<script>" + |
| | | "select id,`name`,store_password,contacts,store_account,classify_id,logo,phone,delivery_type,remark,`status`," + |
| | | "sale,sale_volume,store_detail,create_at from com_shop_store c" + |
| | | "sale,sale_volume,store_detail,create_at, store_describe from com_shop_store c" + |
| | | " <where>" + |
| | | "c.delete_status=1" + |
| | | "c.delete_status=1 and c.status = 1" + |
| | | "<if test='pageComShopStoreDTO.contacts != null and pageComShopStoreDTO.contacts.trim() != ""'>" + |
| | | "and c.contacts like concat('%',#{pageComShopStoreDTO.contacts},'%') \n" + |
| | | " </if> " + |
| | | "<if test='pageComShopStoreDTO.account != null and pageComShopStoreDTO.account.trim() != ""'>" + |
| | | "and c.account = #{pageComShopStoreDTO.account} \n" + |
| | | "and c.store_account = #{pageComShopStoreDTO.account} \n" + |
| | | " </if> " + |
| | | "<if test='pageComShopStoreDTO.name != null and pageComShopStoreDTO.name.trim() != ""'>" + |
| | | "and c.`name` like concat('%',#{pageComShopStoreDTO.name},'%') \n" + |
| | |
| | | "</script>") |
| | | IPage<PageShopStoreVO> pageShopStore(Page page, @Param("pageComShopStoreDTO") PageComShopStoreDTO pageComShopStoreDTO); |
| | | |
| | | @Select("<script>" + |
| | | "select id,`name`,store_password,contacts,store_account,classify_id,logo,phone,delivery_type,remark,`status`," + |
| | | "sale,sale_volume,store_detail,create_at,store_describe from com_shop_store c" + |
| | | " <where>" + |
| | | " and c.delete_status=1 " + |
| | | "<if test='pageComShopStoreDTO.contacts != null and pageComShopStoreDTO.contacts.trim() != ""'>" + |
| | | "and c.contacts like concat('%',#{pageComShopStoreDTO.contacts},'%') \n" + |
| | | " </if> " + |
| | | "<if test='pageComShopStoreDTO.account != null and pageComShopStoreDTO.account.trim() != ""'>" + |
| | | "and c.store_account = #{pageComShopStoreDTO.account} \n" + |
| | | " </if> " + |
| | | "<if test='pageComShopStoreDTO.name != null and pageComShopStoreDTO.name.trim() != ""'>" + |
| | | "and c.`name` like concat('%',#{pageComShopStoreDTO.name},'%') \n" + |
| | | " </if> " + |
| | | "<if test='pageComShopStoreDTO.deliveryType != null'>" + |
| | | "and c.delivery_type =#{pageComShopStoreDTO.deliveryType}\n" + |
| | | " </if> " + |
| | | "<if test='pageComShopStoreDTO.status != null'>" + |
| | | "and c.status =#{pageComShopStoreDTO.status} \n" + |
| | | " </if> " + |
| | | " </where>" + |
| | | " order by c.create_at desc" + |
| | | "</script>") |
| | | IPage<PageShopStoreVO> 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); |
| | | } |