diff --git a/api/app/lib/schedule/attendance.js b/api/app/lib/schedule/attendance.js index 8a1c20d..3f703e0 100644 --- a/api/app/lib/schedule/attendance.js +++ b/api/app/lib/schedule/attendance.js @@ -6,7 +6,7 @@ module.exports = function (app, opts) { // 妥妥流水账 (*^▽^*) { // interval: '34 21 4 * * *', - interval: '34 21 */1 * * *', + interval: '34 */15 * * * *', // immediate: true, // proRun: true, }, diff --git a/api/app/lib/utils/member.js b/api/app/lib/utils/member.js index 1ab6503..a1d61b4 100644 --- a/api/app/lib/utils/member.js +++ b/api/app/lib/utils/member.js @@ -111,8 +111,8 @@ module.exports = function (app, opts) { AND department.name LIKE '%${keyword}%' ) ` : ''} - ${state == 'dimission' ? `AND member.dimission_date != '1970-01-01 00:00:00.000000'` : ''} - ${state == 'onJob' ? `AND member.dimission_date = '1970-01-01 00:00:00.000000'` : ''} + ${state == 'dimission' ? `AND member.dimission_date IS NOT null` : ''} + ${state == 'onJob' ? `AND member.dimission_date IS null` : ''} ${whereFromSelectOption.length ? `AND ${whereFromSelectOption.join('AND')}` : ''} ` @@ -121,6 +121,7 @@ module.exports = function (app, opts) { hrMember."member.pep_user_id" AS pepUserId, hrMember.*, user.name AS userName, + user.people_code AS userCode, role.name AS roleName, role.id AS roleId, department.name AS depName,