作者 王晓刚
1 个管道 的构建 通过 耗费 1 秒

去除保险时间字段

... ... @@ -29,7 +29,7 @@ class CollocationModel extends Model
public function totalSum($where){
$where['delete_time'] = ['=',0];
// $where['expire_time'] = ['>',time()];//判断保单是否还在缴费期限内
$data= $this->where($where)->sum('insurance_price');
$data= $this->where($where)->sum('pay_method_price');
return $data;
}
//获取全部被保人
... ...
... ... @@ -21,7 +21,7 @@ class SubjoinInsuranceModel extends Model
->alias('s')
->join('collocation c','s.collocation_id = c.id')
->where($where)
->sum('s.subjoin_price');
->sum('s.pay_method_price');
return $data;
}
public function selectData($where,$whereor=null){
... ...