FCLT#56984 'scanners' ook de laatste notificatie datum laten opleveren
svn path=/Website/branches/v2019.1/; revision=41742
This commit is contained in:
@@ -78,7 +78,9 @@ var JSON_Result = true;
|
||||
, STATUS_APPPUSH: 32 // Naar Azure app
|
||||
};
|
||||
|
||||
var sql = "SELECT count(*) cnt, MIN(fac_notificatie_datum) fac_notificatie_datum"
|
||||
var sql = "SELECT count(*) cnt,"
|
||||
+ " MIN(fac_notificatie_datum) fac_notificatie_datum,"
|
||||
+ " MAX(fac_notificatie_datum) max_notificatie_datum"
|
||||
+ " FROM fac_v_notifyqueue"
|
||||
+ " WHERE ( BITAND (fac_notificatie_status, " + (puo_const.STATUS_EMAIL | puo_const.STATUS_SMS| puo_const.STATUS_APPPUSH) + ") > 0"
|
||||
+ " OR fac_notificatie_systeemadres IS NOT NULL)"
|
||||
@@ -86,7 +88,10 @@ var JSON_Result = true;
|
||||
var oRs = Oracle.Execute(sql);
|
||||
result.notiqueue = oRs("cnt").Value;
|
||||
if (result.notiqueue)
|
||||
{
|
||||
result.notidate = new Date(oRs("fac_notificatie_datum").Value).getTime();
|
||||
result.lastnotidate = new Date(oRs("max_notificatie_datum").Value).getTime();
|
||||
}
|
||||
oRs.Close();
|
||||
|
||||
// Krachtige users. Pas op: fac_v_webgebruiker is hier uitgewerkt omdat die bij UWV te traag was
|
||||
|
||||
Reference in New Issue
Block a user