|
|
@ -477,7 +477,12 @@ class Vendor_money_model extends CI_Model {
|
|
|
|
OR (
|
|
|
|
OR (
|
|
|
|
data_tmp.COLI_OPI_ID<>435
|
|
|
|
data_tmp.COLI_OPI_ID<>435
|
|
|
|
and TLD_total_price-TLD_agency_receipt-HT_haina_receipt<>0
|
|
|
|
and TLD_total_price-TLD_agency_receipt-HT_haina_receipt<>0
|
|
|
|
)";
|
|
|
|
)
|
|
|
|
|
|
|
|
OR exists (
|
|
|
|
|
|
|
|
select 1 from groupcombineinfo
|
|
|
|
|
|
|
|
where gci_gri_sn=data_tmp.GRI_SN and ( GCI_createTime<'$expire_fresh' or GCI_combineNo is null)
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
order by total_income_err desc,agency_receipt_err desc,HT_receipt_err desc";
|
|
|
|
$query = $this->HT->query($sql);
|
|
|
|
$query = $this->HT->query($sql);
|
|
|
|
return $query->result_array();
|
|
|
|
return $query->result_array();
|
|
|
|
}
|
|
|
|
}
|
|
|
|