生日祝福 筛选离职人员

美之高考勤假期
Chengliang 3 months ago
parent cf2ba4ff25
commit cd95a89672

@ -152,7 +152,7 @@ public class PortalElementCusServiceImpl extends Service implements PortalElemen
RecordSet rs = new RecordSet();
String substrFun = ("oracle".equals(rs.getDBType()) || DialectUtil.isMySql(rs.getDBType())) ? "substr" : "substring";
rs.executeQuery("select lastname,"+substrFun+"(birthday,9,2) as days from hrmresource where birthday is not null and birthday <> ''\n" +
rs.executeQuery("select lastname,"+substrFun+"(birthday,9,2) as days from hrmresource where status < 4 and birthday is not null and birthday <> ''\n" +
" and "+substrFun+"(birthday,6,2) = ? order by secLevel desc",currentMonth);
while (rs.next()) {

Loading…
Cancel
Save