Commit 1d1afc32 authored by 盖献康's avatar 盖献康

bug(70445) - 车企管理,列表第二页的排序不正确

parent 2009a18e
...@@ -53,17 +53,18 @@ ...@@ -53,17 +53,18 @@
resultMap="AutomobileEnterpriseResult"> resultMap="AutomobileEnterpriseResult">
<include refid="selectAutomobileEnterpriseListSQL"/> <include refid="selectAutomobileEnterpriseListSQL"/>
<where> <where>
deleted = 0 ae.deleted = 0
<if test="enterpriseName != null and enterpriseName != ''">and enterprise_name like concat('%', <if test="enterpriseName != null and enterpriseName != ''">and ae.enterprise_name like concat('%',
#{enterpriseName}, '%') #{enterpriseName}, '%')
</if> </if>
<if test="address != null and address != ''">and address like concat('%', #{address}, '%')</if> <if test="address != null and address != ''">and ae.address like concat('%', #{address}, '%')</if>
<if test="postcode != null and postcode != ''">and postcode like concat('%', #{postcode}, '%')</if> <if test="postcode != null and postcode != ''">and ae.postcode like concat('%', #{postcode}, '%')</if>
<if test="enterpriseContact != null and enterpriseContact != ''"> <if test="enterpriseContact != null and enterpriseContact != ''">
and enterprise_contact like concat('%', #{enterpriseContact}, '%') and ae.enterprise_contact like concat('%', #{enterpriseContact}, '%')
</if> </if>
<if test="contactNumber != null and contactNumber != ''">and contact_number like concat('%', #{contactNumber}, '%')</if> <if test="contactNumber != null and contactNumber != ''">and ae.contact_number like concat('%', #{contactNumber}, '%')</if>
</where> </where>
order by ae.create_time desc
</select> </select>
<select id="selectAutomobileEnterpriseById" parameterType="Long" resultMap="AutomobileEnterpriseResult"> <select id="selectAutomobileEnterpriseById" parameterType="Long" resultMap="AutomobileEnterpriseResult">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment