Commit 2d515686 authored by hongguangwu's avatar hongguangwu

order by a.CREATE_TIME desc

parent 9c319e1d
...@@ -411,11 +411,10 @@ ...@@ -411,11 +411,10 @@
select select
<include refid="baseParam"/> <include refid="baseParam"/>
from t_employee_info a from t_employee_info a
left join t_employee_project b on a.id = b.EMP_ID where a.DELETE_FLAG = '0'
where a.DELETE_FLAG = '0' and b.DELETE_FLAG = '0'
<include refid="employeeInfo_where"/> <include refid="employeeInfo_where"/>
${sql} ${sql}
group by a.id order by a.CREATE_TIME desc order by a.CREATE_TIME desc
</select> </select>
<!-- hgw 分页查询 --> <!-- hgw 分页查询 -->
...@@ -454,10 +453,9 @@ ...@@ -454,10 +453,9 @@
select select
<include refid="baseParam"/> <include refid="baseParam"/>
from t_employee_info a from t_employee_info a
left join t_employee_project b on a.id = b.EMP_ID where a.DELETE_FLAG = '0'
where a.DELETE_FLAG = '0' and b.DELETE_FLAG = '0'
<include refid="employeeInfo_where"/> <include refid="employeeInfo_where"/>
group by a.id order by a.CREATE_TIME desc order by a.CREATE_TIME desc
</select> </select>
<!-- hgw 根据身份证查询 --> <!-- hgw 根据身份证查询 -->
...@@ -547,7 +545,7 @@ ...@@ -547,7 +545,7 @@
a.DELETE_FLAG = '0' and b.DELETE_FLAG = '0' a.DELETE_FLAG = '0' and b.DELETE_FLAG = '0'
<include refid="employeeInfo_where"/> <include refid="employeeInfo_where"/>
</where> </where>
GROUP BY a.id GROUP BY a.id order by a.CREATE_TIME desc
</select> </select>
<!--tEmployeeInfo离职档案导出查询--> <!--tEmployeeInfo离职档案导出查询-->
...@@ -567,7 +565,7 @@ ...@@ -567,7 +565,7 @@
a.DELETE_FLAG = '0' and b.DELETE_FLAG = '0' a.DELETE_FLAG = '0' and b.DELETE_FLAG = '0'
<include refid="employeeInfo_where"/> <include refid="employeeInfo_where"/>
</where> </where>
GROUP BY a.id GROUP BY a.id order by a.CREATE_TIME desc
) b ) b
where 1=1 where 1=1
<if test="tEmployeeInfo.unitName != null and tEmployeeInfo.unitName.trim() != ''"> <if test="tEmployeeInfo.unitName != null and tEmployeeInfo.unitName.trim() != ''">
......
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