update
This commit is contained in:
parent
0bb50ba85e
commit
1b18c6d6e0
@ -15,6 +15,7 @@
|
|||||||
namespace app\adminapi\validate\financial;
|
namespace app\adminapi\validate\financial;
|
||||||
|
|
||||||
|
|
||||||
|
use app\common\model\auth\Admin;
|
||||||
use app\common\model\financial\FinancialBorrowMoney;
|
use app\common\model\financial\FinancialBorrowMoney;
|
||||||
use app\common\model\financial\FinancialRepayment;
|
use app\common\model\financial\FinancialRepayment;
|
||||||
use app\common\validate\BaseValidate;
|
use app\common\validate\BaseValidate;
|
||||||
@ -119,4 +120,11 @@
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function checkPayer($value): bool|string
|
||||||
|
{
|
||||||
|
$data = Admin::where('id', $value)->findOrEmpty();
|
||||||
|
if ($data->isEmpty()) return '还款人信息不存在';
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user