Commit 038d1c3c authored by hongguangwu's avatar hongguangwu

1.7.21-排序

parent 5e495a05
......@@ -172,7 +172,8 @@
a.delete_flag = '0'
<include refid="tFascTemplate_where"/>
</where>
ORDER BY a.fasc_create_time ASC
ORDER BY CASE WHEN a.sign_name = '安徽皖信人力资源管理有限公司' THEN 0 ELSE 1 END
,a.fasc_create_time ASC
</select>
<!--tFascTemplate简单分页查询-->
......@@ -184,7 +185,8 @@
a.delete_flag = '0'
<include refid="tFascTemplate_where"/>
</where>
ORDER BY a.fasc_create_time ASC
ORDER BY CASE WHEN a.sign_name = '安徽皖信人力资源管理有限公司' THEN 0 ELSE 1 END
,a.fasc_create_time ASC
</select>
<!--全量-->
<select id="getTFascTemplateListAll" resultMap="tFascTemplateMap">
......@@ -195,7 +197,8 @@
1=1
<include refid="tFascTemplate_where"/>
</where>
ORDER BY a.fasc_create_time ASC
ORDER BY CASE WHEN a.sign_name = '安徽皖信人力资源管理有限公司' THEN 0 ELSE 1 END
,a.fasc_create_time ASC
</select>
<!--导出-->
<select id="getTFascTemplateExport" resultMap="tFascTemplateExportMap">
......@@ -223,7 +226,8 @@
</foreach>
</if>
</where>
ORDER BY a.fasc_create_time ASC
ORDER BY CASE WHEN a.sign_name = '安徽皖信人力资源管理有限公司' THEN 0 ELSE 1 END
,a.fasc_create_time ASC
<if test="tFascTemplate != null">
<if test="tFascTemplate.limitStart != null">
limit #{tFascTemplate.limitStart},#{tFascTemplate.limitEnd}
......
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