付款申请参数结构修改
This commit is contained in:
@@ -2,6 +2,9 @@
|
||||
namespace app\common\controller;
|
||||
|
||||
use app\common\controller\BaseController;
|
||||
use app\common\model\Country;
|
||||
use app\common\model\SysAccount;
|
||||
use app\common\model\SysCurrency;
|
||||
use app\common\traits\crud\CrudControllerTrait;
|
||||
use app\common\service\FinReceiptService;
|
||||
|
||||
@@ -32,6 +35,12 @@ class FinReceiptController extends BaseController
|
||||
$data['arrived_at'] = date('Y-m-d H:i:s', $data['arrived_at']);
|
||||
if (isset($data['received_at']))
|
||||
$data['received_at'] = date('Y-m-d H:i:s', $data['received_at']);
|
||||
if (isset($data['account_id'])) //收款账号
|
||||
$data['account_name'] = SysAccount::where('id', $data['account_id'])->first()->account_name;
|
||||
if (isset($data['country_id'])) //付款来源国家
|
||||
$data['country_name'] = Country::where('id', $data['currency_id'])->first()->cn_addr;
|
||||
if (isset($data['currency_id'])) //付款币种
|
||||
$data['currency_name'] = SysCurrency::where('id', $data['currency_id'])->first()->currency_name;
|
||||
return $data;
|
||||
}
|
||||
|
||||
@@ -51,6 +60,12 @@ class FinReceiptController extends BaseController
|
||||
$data['arrived_at'] = date('Y-m-d H:i:s', $data['arrived_at']);
|
||||
if (isset($data['received_at']))
|
||||
$data['received_at'] = date('Y-m-d H:i:s', $data['received_at']);
|
||||
if (isset($data['account_id'])) //收款账号
|
||||
$data['account_name'] = SysAccount::where('id', $data['account_id'])->first()->account_name;
|
||||
if (isset($data['country_id'])) //付款来源国家
|
||||
$data['country_name'] = Country::where('id', $data['currency_id'])->first()->cn_addr;
|
||||
if (isset($data['currency_id'])) //付款币种
|
||||
$data['currency_name'] = SysCurrency::where('id', $data['currency_id'])->first()->currency_name;
|
||||
return $data;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user