修改资讯查询模糊搜索,字段信息管理排序

This commit is contained in:
gognqingkai 2024-04-18 14:52:39 +08:00
parent d48a5c3348
commit 1a41b74097
4 changed files with 97 additions and 89 deletions

View File

@ -50,10 +50,10 @@
and info_category_name = #{infoCategoryName}
</if>
<if test="infoTitle != null and infoTitle != ''">
and info_title = #{infoTitle}
and info_title like concat('%', #{infoTitle}, '%')
</if>
<if test="infoCode != null and infoCode != ''">
and info_code = #{infoCode}
and info_code like concat('%', #{infoCode}, '%')
</if>
<if test="infoContent != null and infoContent != ''">
and info_content = #{infoContent}

View File

@ -15,14 +15,21 @@
</resultMap>
<sql id="selectInfoCategoryVo">
select id, info_category_code, info_category_name, info_category_type, info_category_sort, info_category_creator, info_category_create_time from info_category
select id,
info_category_code,
info_category_name,
info_category_type,
info_category_sort,
info_category_creator,
info_category_create_time
from info_category
</sql>
<select id="selectInfoCategoryList" parameterType="InfoCategory" resultMap="InfoCategoryResult">
<include refid="selectInfoCategoryVo"/>
<where>
<if test="infoCategoryCode != null and infoCategoryCode != ''">
and info_category_code = #{infoCategoryCode}
and info_category_code like concat('%', #{infoCategoryCode}, '%')
</if>
<if test="infoCategoryName != null and infoCategoryName != ''">
and info_category_name like concat('%', #{infoCategoryName}, '%')
@ -112,7 +119,9 @@
</update>
<delete id="deleteInfoCategoryById" parameterType="Long">
delete from info_category where id = #{id}
delete
from info_category
where id = #{id}
</delete>
<delete id="deleteInfoCategoryByIds" parameterType="String">
@ -130,7 +139,6 @@
</select>
<insert id="insertInfoCategoryList">
insert into info_category(
info_category_code,

View File

@ -77,7 +77,7 @@
#{fieldMark}
</if>
</where>
order by create_time DESC
order by content_sort, create_time DESC
</select>
<select id="selectLabelFieldContentById" parameterType="Long"

View File

@ -57,7 +57,7 @@
#{fieldRemark}
</if>
</where>
order by create_time DESC
order by field_sort, create_time DESC
</select>