|
|
@@ -583,7 +583,13 @@ class tools {
|
|
|
where ni.insert_date > NOW() - INTERVAL '1 year'
|
|
|
and ni.notifications_method = 'true' and ni.is_send_message is null
|
|
|
and lower(ni.user_login) = '".strtolower(_getLoginName())."'
|
|
|
- and ni.frequency_type in ('Daily','Weekly') group by ni.notifiation_type,insert_date_format
|
|
|
+ and ((ni.frequency_type = 'Daily'
|
|
|
+ and timezone(ni.daily_time_zone, NOW()::time) > ni.daily_time::time
|
|
|
+ and ni.insert_date::date <= CURRENT_DATE + ni.daily_time::time)
|
|
|
+ or (ni.frequency_type = 'Weekly' and timezone(ni.weekly_time_zone, NOW()::time) > ni.weekly_time::time
|
|
|
+ and ni.weekly_week ilike '%'|| EXTRACT(dow FROM timezone(ni.weekly_time_zone, NOW())) ||'%'
|
|
|
+ and ni.insert_date::date <= CURRENT_DATE + ni.weekly_time::time))
|
|
|
+ group by ni.notifiation_type,insert_date_format
|
|
|
union all
|
|
|
select ni.notifiation_type, '' as insert_date_format
|
|
|
from public.kln_notifiation_info ni
|
|
|
@@ -1344,7 +1350,7 @@ class tools {
|
|
|
"timeLabel"=>"",
|
|
|
"previous"=>"",
|
|
|
"frequency_type"=>$mInfo["frequency_type"],
|
|
|
- "serial_no"=>$mInfo["serial_no"],
|
|
|
+ "serial_no"=>common::deCode($mInfo["serial_no"], 'E'),
|
|
|
"order_from"=>$mInfo["order_from"],
|
|
|
"id"=>$mInfo["id"],
|
|
|
"insert_date_format"=>'',
|
|
|
@@ -1398,7 +1404,7 @@ class tools {
|
|
|
"timeLabel"=>"",
|
|
|
"previous"=>"",
|
|
|
"frequency_type"=>$mInfo["frequency_type"],
|
|
|
- "serial_no"=>$mInfo["serial_no"],
|
|
|
+ "serial_no"=>common::deCode($mInfo["serial_no"], 'E'),
|
|
|
"order_from"=>$mInfo["order_from"],
|
|
|
"id"=>$mInfo["id"],
|
|
|
"insert_date_format"=>'',
|
|
|
@@ -1489,7 +1495,7 @@ class tools {
|
|
|
"timeLabel"=>$outsideTimeLabel,
|
|
|
"previous"=>"",
|
|
|
"frequency_type"=>$mInfo["frequency_type"],
|
|
|
- "serial_no"=>$mInfo["serial_no"],
|
|
|
+ "serial_no"=>common::deCode($mInfo["serial_no"], 'E'),
|
|
|
"order_from"=>$mInfo["order_from"],
|
|
|
"id"=>$mInfo["id"],
|
|
|
"insert_date_format"=>'',
|
|
|
@@ -1557,7 +1563,7 @@ class tools {
|
|
|
"timeLabel"=>$outsideTimeLabel,
|
|
|
"previous"=>"",
|
|
|
"frequency_type"=>$mInfo["frequency_type"],
|
|
|
- "serial_no"=>$mInfo["serial_no"],
|
|
|
+ "serial_no"=>common::deCode($mInfo["serial_no"], 'E'),
|
|
|
"order_from"=>$mInfo["order_from"],
|
|
|
"id"=>$mInfo["id"],
|
|
|
"insert_date_format"=>'',
|