|
@@ -153,6 +153,7 @@ class ProjectDonationOrder extends BaseModel
|
|
|
|
|
|
|
|
if (isset($where['uid']) && $where['uid']>0) $xwhere['uid'] = $where['uid'];
|
|
if (isset($where['uid']) && $where['uid']>0) $xwhere['uid'] = $where['uid'];
|
|
|
if (isset($where['cid']) && $where['cid']>0) $xwhere['cid'] = $where['cid'];
|
|
if (isset($where['cid']) && $where['cid']>0) $xwhere['cid'] = $where['cid'];
|
|
|
|
|
+ if (isset($where['project_id']) && $where['project_id']>0) $xwhere['project_id'] = $where['project_id'];
|
|
|
$count = $model->where($xwhere)->count();
|
|
$count = $model->where($xwhere)->count();
|
|
|
$list = $model->where($xwhere)->page($where['page'],$where['limit'])->order('id desc')->select();
|
|
$list = $model->where($xwhere)->page($where['page'],$where['limit'])->order('id desc')->select();
|
|
|
foreach ($list as &$v)
|
|
foreach ($list as &$v)
|
|
@@ -247,7 +248,7 @@ class ProjectDonationOrder extends BaseModel
|
|
|
ProjectDonationOrderInfo::create($data);
|
|
ProjectDonationOrderInfo::create($data);
|
|
|
}
|
|
}
|
|
|
self::where('id',$rs['id'])->update(['total_num'=>$num]);
|
|
self::where('id',$rs['id'])->update(['total_num'=>$num]);
|
|
|
- ProjectDonationRocord::bill('caeate_order',0,$where['project_id'],$rs['id'],$where['name']);
|
|
|
|
|
|
|
+ ProjectDonationRocord::bill($rs['cid'],'caeate_order',0,$where['project_id'],$rs['id'],$where['name']);
|
|
|
self::commitTrans();
|
|
self::commitTrans();
|
|
|
return $rs;
|
|
return $rs;
|
|
|
}
|
|
}
|