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},