|
|
@@ -615,8 +615,8 @@ class destination_delivery {
|
|
|
//代表employee
|
|
|
$sqlDeliveryWhere = " 1=1";
|
|
|
if(_isApexLogin()){
|
|
|
- //$sqlDeliveryWhere .= " and '".strtolower("CATHY.LEE@APEXSHIPPING.COM")."' = ANY(LOWER(regexp_split_to_array(kd.kln_pic, ',')))";
|
|
|
- $sqlDeliveryWhere .= " and '".strtolower(_getLoginEmployeeEamil())."' = ANY(LOWER(regexp_split_to_array(kd.kln_pic, ',')))";
|
|
|
+ //$sqlDeliveryWhere .= " and '".strtolower("CATHY.LEE@APEXSHIPPING.COM")."' = ANY(regexp_split_to_array(LOWER(kd.kln_pic), ','))";
|
|
|
+ $sqlDeliveryWhere .= " and '".strtolower(_getLoginEmployeeEamil())."' = ANY(regexp_split_to_array(LOWER(kd.kln_pic), ','))";
|
|
|
}
|
|
|
|
|
|
//条件带入
|
|
|
@@ -1148,8 +1148,8 @@ class destination_delivery {
|
|
|
|
|
|
$sqlDeliveryWhere = " 1=1";
|
|
|
if(_isApexLogin()){
|
|
|
- //$sqlDeliveryWhere .= " and '".strtolower("CATHY.LEE@APEXSHIPPING.COM")."' = ANY(LOWER(regexp_split_to_array(kd.kln_pic, ',')))";
|
|
|
- $sqlDeliveryWhere .= " and '".strtolower(_getLoginEmployeeEamil())."' = ANY(LOWER(regexp_split_to_array(kd.kln_pic, ',')))";
|
|
|
+ //$sqlDeliveryWhere .= " and '".strtolower("CATHY.LEE@APEXSHIPPING.COM")."' = ANY(regexp_split_to_array(LOWER(kd.kln_pic), ','))";
|
|
|
+ $sqlDeliveryWhere .= " and '".strtolower(_getLoginEmployeeEamil())."' = ANY(regexp_split_to_array(LOWER(kd.kln_pic), ','))";
|
|
|
}
|
|
|
//$sqlWhere_befrom_filterTag = $sqlWhere;
|
|
|
$sql = "select delivery_date::date as delivery_date,
|