|
|
@ -340,6 +340,10 @@ class FinanceController extends BaseController
|
|
|
|
$add['widthdraw_number'] = $this->produceWithdrawNumber();
|
|
|
|
$add['widthdraw_number'] = $this->produceWithdrawNumber();
|
|
|
|
$add['settlement_end_time'] = $thisDay - 1;
|
|
|
|
$add['settlement_end_time'] = $thisDay - 1;
|
|
|
|
$add['spend_ids'] = '';
|
|
|
|
$add['spend_ids'] = '';
|
|
|
|
|
|
|
|
$add['op_id'] = $this->loginPromote['id'];
|
|
|
|
|
|
|
|
$add['op_type'] = 1;
|
|
|
|
|
|
|
|
$add['last_op_id'] = $this->loginPromote['id'];
|
|
|
|
|
|
|
|
$add['last_op_type'] = 1;
|
|
|
|
|
|
|
|
|
|
|
|
M()->startTrans();//开启事物
|
|
|
|
M()->startTrans();//开启事物
|
|
|
|
$withdrawId = M('withdraw', 'tab_')->add($add);
|
|
|
|
$withdrawId = M('withdraw', 'tab_')->add($add);
|
|
|
@ -634,6 +638,8 @@ class FinanceController extends BaseController
|
|
|
|
|
|
|
|
|
|
|
|
$save['status'] = 0;
|
|
|
|
$save['status'] = 0;
|
|
|
|
$save['id'] = $id;
|
|
|
|
$save['id'] = $id;
|
|
|
|
|
|
|
|
$save['last_op_id'] = $this->loginPromote['id'];
|
|
|
|
|
|
|
|
$save['last_op_type'] = 1;
|
|
|
|
$res = M('withdraw', 'tab_')->save($save);
|
|
|
|
$res = M('withdraw', 'tab_')->save($save);
|
|
|
|
if ($res === false) {
|
|
|
|
if ($res === false) {
|
|
|
|
$data['status'] = 0;
|
|
|
|
$data['status'] = 0;
|
|
|
@ -686,6 +692,8 @@ class FinanceController extends BaseController
|
|
|
|
$withdrawSave['status'] = -2;
|
|
|
|
$withdrawSave['status'] = -2;
|
|
|
|
$withdrawSave['spend_ids'] = $spendIds;
|
|
|
|
$withdrawSave['spend_ids'] = $spendIds;
|
|
|
|
$withdrawSave['last_up_update_time'] = $time;
|
|
|
|
$withdrawSave['last_up_update_time'] = $time;
|
|
|
|
|
|
|
|
$withdrawSave['last_op_id'] = $this->loginPromote['id'];
|
|
|
|
|
|
|
|
$withdrawSave['last_op_type'] = 1;
|
|
|
|
|
|
|
|
|
|
|
|
M('withdraw', 'tab_')->startTrans();//开启事物
|
|
|
|
M('withdraw', 'tab_')->startTrans();//开启事物
|
|
|
|
$withdrawRes = M('withdraw', 'tab_')->save($withdrawSave);
|
|
|
|
$withdrawRes = M('withdraw', 'tab_')->save($withdrawSave);
|
|
|
|