This commit is contained in:
2022-05-31 17:27:47 -04:00
parent cd8afaf1b1
commit 5e5f643d9f
2 changed files with 196 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
<?php
class Coupon_model extends CI_Model {
function __construct() {
}
public function loadMemberActiveCoupons($member_id,$fliters=[]){
$sql="SELECT ca.code, ca.amount, ca.added,ca.status
FROM coupons_allocation ca WHERE ca.member_id = $member_id ORDER BY ca.id DESC";
$q = $this->db->query($sql);
return $q;
}
}