Commit 5199fba6 authored by huyuchen's avatar huyuchen

优化修改

parent be447289
...@@ -843,8 +843,8 @@ ...@@ -843,8 +843,8 @@
t1.EMP_ID ,t1.CONTRACT_PARTY,t1.IN_USE,t1.DEPT_NO t1.EMP_ID ,t1.CONTRACT_PARTY,t1.IN_USE,t1.DEPT_NO
FROM FROM
t_employee_contract_info t1 t_employee_contract_info t1
INNER JOIN ( SELECT EMP_ID, MAX( CREATE_TIME ) CREATE_TIME FROM t_employee_contract_info GROUP BY EMP_ID ) t2 ON t2.EMP_ID = t1.EMP_ID <!-- INNER JOIN ( SELECT EMP_ID, MAX( CREATE_TIME ) CREATE_TIME FROM t_employee_contract_info GROUP BY EMP_ID ) t2 ON t2.EMP_ID = t1.EMP_ID-->
AND t2.CREATE_TIME = t1.CREATE_TIME <!-- AND t2.CREATE_TIME = t1.CREATE_TIME-->
WHERE t1.IN_USE='0' WHERE t1.IN_USE='0'
) AS t ON t.EMP_ID = a.EMP_ID AND a.DEPT_NO =t.DEPT_NO ) AS t ON t.EMP_ID = a.EMP_ID AND a.DEPT_NO =t.DEPT_NO
LEFT JOIN sys_area a1 on a1.id=b.ID_PROVINCE LEFT JOIN sys_area a1 on a1.id=b.ID_PROVINCE
......
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