GROUP_CONCAT(concat(a.CONTRACT_START,'~',ifnull(a.CONTRACT_END,'')) ORDER BY a.CONTRACT_START asc) HISTORY
FROM t_employee_contract_info a
FROM t_employee_contract_info a
<where>
<where>
a.DELETE_FLAG = 0
a.DELETE_FLAG = 0 and a.AUDIT_TIME_LAST is not null
<includerefid="tEmployeeContractInfo_where"/>
<includerefid="tEmployeeContractInfo_where"/>
</where>
</where>
GROUP BY a.EMP_IDCARD,a.SETTLE_DOMAIN
order by a.CREATE_TIME desc
</select>
</select>
<!--tEmployeeContractInfo简单分页查询-->
<!--tEmployeeContractInfo简单分页查询-->
...
@@ -407,4 +445,9 @@
...
@@ -407,4 +445,9 @@
SELECT ifnull(max(right(e.APPLY_NO,5)),0) APPLY_NO FROM t_employee_contract_info e where e.DELETE_FLAG = 0 and e.CREATE_TIME>DATE_FORMAT(now(),'%Y-%m-%d')
SELECT ifnull(max(right(e.APPLY_NO,5)),0) APPLY_NO FROM t_employee_contract_info e where e.DELETE_FLAG = 0 and e.CREATE_TIME>DATE_FORMAT(now(),'%Y-%m-%d')