修改资讯查询模糊搜索,字段信息管理排序
This commit is contained in:
parent
d48a5c3348
commit
1a41b74097
@ -50,10 +50,10 @@
|
|||||||
and info_category_name = #{infoCategoryName}
|
and info_category_name = #{infoCategoryName}
|
||||||
</if>
|
</if>
|
||||||
<if test="infoTitle != null and infoTitle != ''">
|
<if test="infoTitle != null and infoTitle != ''">
|
||||||
and info_title = #{infoTitle}
|
and info_title like concat('%', #{infoTitle}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="infoCode != null and infoCode != ''">
|
<if test="infoCode != null and infoCode != ''">
|
||||||
and info_code = #{infoCode}
|
and info_code like concat('%', #{infoCode}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="infoContent != null and infoContent != ''">
|
<if test="infoContent != null and infoContent != ''">
|
||||||
and info_content = #{infoContent}
|
and info_content = #{infoContent}
|
||||||
|
|||||||
@ -15,14 +15,21 @@
|
|||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectInfoCategoryVo">
|
<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>
|
</sql>
|
||||||
|
|
||||||
<select id="selectInfoCategoryList" parameterType="InfoCategory" resultMap="InfoCategoryResult">
|
<select id="selectInfoCategoryList" parameterType="InfoCategory" resultMap="InfoCategoryResult">
|
||||||
<include refid="selectInfoCategoryVo"/>
|
<include refid="selectInfoCategoryVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="infoCategoryCode != null and infoCategoryCode != ''">
|
<if test="infoCategoryCode != null and infoCategoryCode != ''">
|
||||||
and info_category_code = #{infoCategoryCode}
|
and info_category_code like concat('%', #{infoCategoryCode}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="infoCategoryName != null and infoCategoryName != ''">
|
<if test="infoCategoryName != null and infoCategoryName != ''">
|
||||||
and info_category_name like concat('%', #{infoCategoryName}, '%')
|
and info_category_name like concat('%', #{infoCategoryName}, '%')
|
||||||
@ -112,7 +119,9 @@
|
|||||||
</update>
|
</update>
|
||||||
|
|
||||||
<delete id="deleteInfoCategoryById" parameterType="Long">
|
<delete id="deleteInfoCategoryById" parameterType="Long">
|
||||||
delete from info_category where id = #{id}
|
delete
|
||||||
|
from info_category
|
||||||
|
where id = #{id}
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<delete id="deleteInfoCategoryByIds" parameterType="String">
|
<delete id="deleteInfoCategoryByIds" parameterType="String">
|
||||||
@ -130,7 +139,6 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<insert id="insertInfoCategoryList">
|
<insert id="insertInfoCategoryList">
|
||||||
insert into info_category(
|
insert into info_category(
|
||||||
info_category_code,
|
info_category_code,
|
||||||
|
|||||||
@ -77,7 +77,7 @@
|
|||||||
#{fieldMark}
|
#{fieldMark}
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
order by create_time DESC
|
order by content_sort, create_time DESC
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectLabelFieldContentById" parameterType="Long"
|
<select id="selectLabelFieldContentById" parameterType="Long"
|
||||||
|
|||||||
@ -57,7 +57,7 @@
|
|||||||
#{fieldRemark}
|
#{fieldRemark}
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
order by create_time DESC
|
order by field_sort, create_time DESC
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user