From 0bf174be571c53b8af796eca4b51fcd3edec1657 Mon Sep 17 00:00:00 2001
From: DESKTOP-71BH0QO\L、ming <172680469@qq.com>
Date: 星期日, 25 四月 2021 21:55:43 +0800
Subject: [PATCH] no

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComShopStoreDAO.java |   33 ++++++++++++++++++++++++++++++++-
 1 files changed, 32 insertions(+), 1 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComShopStoreDAO.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComShopStoreDAO.java
index 43d848a..be98806 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComShopStoreDAO.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComShopStoreDAO.java
@@ -22,7 +22,7 @@
             "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" +
             " <where>" +
-            " and c.delete_status=1 and c.status = 1 " +
+            "c.delete_status=1 and c.status = 1" +
             "<if test='pageComShopStoreDTO.contacts != null and pageComShopStoreDTO.contacts.trim() != &quot;&quot;'>" +
             "and c.contacts like concat('%',#{pageComShopStoreDTO.contacts},'%') \n" +
             " </if> " +
@@ -43,4 +43,35 @@
             "</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 from com_shop_store c" +
+            " <where>" +
+            " and c.delete_status=1 " +
+            "<if test='pageComShopStoreDTO.contacts != null and pageComShopStoreDTO.contacts.trim() != &quot;&quot;'>" +
+            "and c.contacts like concat('%',#{pageComShopStoreDTO.contacts},'%') \n" +
+            " </if> " +
+            "<if test='pageComShopStoreDTO.account != null and pageComShopStoreDTO.account.trim() != &quot;&quot;'>" +
+            "and c.store_account = #{pageComShopStoreDTO.account} \n" +
+            " </if> " +
+            "<if test='pageComShopStoreDTO.name != null and pageComShopStoreDTO.name.trim() != &quot;&quot;'>" +
+            "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);
+
 }

--
Gitblit v1.7.1