|
|
|
@ -109,8 +109,9 @@ class CompanyStatementOfflineController extends ThinkController
|
|
|
|
|
}
|
|
|
|
|
public function doPayment()
|
|
|
|
|
{
|
|
|
|
|
if(!isset($_REQUEST['ids'])) $this->error("参数错误");
|
|
|
|
|
if(!isset($_REQUEST['ids']) || !isset($_REQUEST['payment_time'])) $this->error("参数错误");
|
|
|
|
|
$ids = $_REQUEST['ids'];
|
|
|
|
|
$payment_time = $_REQUEST['payment_time'];
|
|
|
|
|
//获取所有的母单id
|
|
|
|
|
$companyStatementInfo = M("company_statement_info","tab_");
|
|
|
|
|
$statementPool = $companyStatementInfo->where("id in ($ids) and pay_status <> 1")->field("pool_id,count(id) count")->group("pool_id")->select();
|
|
|
|
@ -128,7 +129,7 @@ class CompanyStatementOfflineController extends ThinkController
|
|
|
|
|
$saveData = [
|
|
|
|
|
"pay_type"=>3,
|
|
|
|
|
"pay_status"=>1,
|
|
|
|
|
"pay_info"=>json_encode(["payment_user"=>$_SESSION['onethink_admin']['user_auth']["username"],"payment_time"=>date("Y-m-d H:i:s")])
|
|
|
|
|
"pay_info"=>json_encode(["payment_user"=>$_SESSION['onethink_admin']['user_auth']["username"],"payment_time"=>$payment_time])
|
|
|
|
|
];
|
|
|
|
|
$ires = $companyStatementInfo->where("id in ($ids)")->save($saveData);
|
|
|
|
|
|
|
|
|
|