From 2c617701d453b48bcebfa681d6bc6a802e805bf9 Mon Sep 17 00:00:00 2001 From: kerwincui <164770707@qq.com> Date: Wed, 22 Jun 2022 01:44:57 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E7=AB=AF=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E6=96=B0=E9=97=BB=E5=88=86=E7=B1=BB=E5=88=97=E8=A1=A8bug?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/iot/NewsCategoryMapper.xml | 8 ++++---- .../main/resources/mapper/iot/NewsMapper.xml | 20 ++++++++++--------- .../mapper/iot/SocialPlatformMapper.xml | 8 ++++---- .../resources/mapper/iot/SocialUserMapper.xml | 8 ++++---- 4 files changed, 23 insertions(+), 21 deletions(-) diff --git a/springboot/wumei-iot/src/main/resources/mapper/iot/NewsCategoryMapper.xml b/springboot/wumei-iot/src/main/resources/mapper/iot/NewsCategoryMapper.xml index c5fc908d..04f84724 100644 --- a/springboot/wumei-iot/src/main/resources/mapper/iot/NewsCategoryMapper.xml +++ b/springboot/wumei-iot/src/main/resources/mapper/iot/NewsCategoryMapper.xml @@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + @@ -25,7 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" select category_id, category_name, order_num, del_flag, create_by, create_time, update_by, update_time, remark from news_category - and category_name like concat('%', #{categoryName}, '%') @@ -44,7 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where category_id = #{categoryId} - + insert into news_category category_name, @@ -68,7 +68,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - + update news_category category_name = #{categoryName}, diff --git a/springboot/wumei-iot/src/main/resources/mapper/iot/NewsMapper.xml b/springboot/wumei-iot/src/main/resources/mapper/iot/NewsMapper.xml index 76ef0688..0871286e 100644 --- a/springboot/wumei-iot/src/main/resources/mapper/iot/NewsMapper.xml +++ b/springboot/wumei-iot/src/main/resources/mapper/iot/NewsMapper.xml @@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + @@ -27,20 +27,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" select news_id, title, img_url, is_top, is_banner, category_id, category_name, status, author, del_flag, create_by, create_time, update_by, update_time, remark from news - + select news_id, title, img_url, is_top, is_banner, category_id, category_name, status, author, + create_by, create_time, update_by, update_time, remark + from news s + + and title like concat('%', #{title}, '%') + and category_id = #{categoryId} and is_top = #{isTop} and is_banner = #{isBanner} and category_name like concat('%', #{categoryName}, '%') - and category_Id = #{categoryId}) and status = #{status} order by create_time desc - select n.news_id, n.title, n.img_url, n.is_top, n.is_banner, n.category_id, c.category_name, n.status, n.author, n.create_time, n.remark from news n left join news_category c on c.category_id=n.category_id where n.is_top=1 and n.status=1 @@ -52,7 +54,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where news_id = #{newsId} - + insert into news title, @@ -90,7 +92,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - + update news title = #{title}, diff --git a/springboot/wumei-iot/src/main/resources/mapper/iot/SocialPlatformMapper.xml b/springboot/wumei-iot/src/main/resources/mapper/iot/SocialPlatformMapper.xml index 3cd74e33..86ebcfea 100644 --- a/springboot/wumei-iot/src/main/resources/mapper/iot/SocialPlatformMapper.xml +++ b/springboot/wumei-iot/src/main/resources/mapper/iot/SocialPlatformMapper.xml @@ -4,7 +4,7 @@ "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + @@ -41,7 +41,7 @@ from iot_social_platform - and platform = #{platform} @@ -67,7 +67,7 @@ where platform = #{platform} - insert into iot_social_platform @@ -104,7 +104,7 @@ - + update iot_social_platform platform = #{platform}, diff --git a/springboot/wumei-iot/src/main/resources/mapper/iot/SocialUserMapper.xml b/springboot/wumei-iot/src/main/resources/mapper/iot/SocialUserMapper.xml index a5f479ba..bc1e1368 100644 --- a/springboot/wumei-iot/src/main/resources/mapper/iot/SocialUserMapper.xml +++ b/springboot/wumei-iot/src/main/resources/mapper/iot/SocialUserMapper.xml @@ -4,7 +4,7 @@ "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + @@ -69,7 +69,7 @@ from iot_social_user - and uuid = #{uuid} @@ -105,7 +105,7 @@ where social_user_id = #{socialUserId} - + insert into iot_social_user uuid, @@ -169,7 +169,7 @@ - + update iot_social_user uuid = #{uuid},