update controler kobank
This commit is contained in:
@ -304,7 +304,6 @@ class Account extends Model
|
||||
public function getAccountRK($arrCusNo, $date)
|
||||
{
|
||||
|
||||
|
||||
$data = [];
|
||||
$data = DB::connection("db2")->table("MIS.COLLECTION")
|
||||
->selectRaw('ACCOUNT_NUMBER,MATURITY_DATE,MAX(BATCH_DATE) AS BATCH_DATE,MAX(OUTSTANDING) AS OUTSTANDING,LOAN_CCY,PRODUCT_LOAN,PRINCIPLE_AMOUNT,CURRENT_INTEREST_RATE,TENOR,FACILITY_TYPE,LIMIT_ID')
|
||||
@ -355,4 +354,4 @@ class Account extends Model
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
34
Entities/Dpk.php
Normal file
34
Entities/Dpk.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Konfirmasibank\Entities;
|
||||
|
||||
use Spatie\Activitylog\LogOptions;
|
||||
use Spatie\Activitylog\Traits\LogsActivity;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
class DPK extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $primaryKey = 'cif';
|
||||
protected $connection = 'pgsql';
|
||||
protected $table = 'dpk';
|
||||
|
||||
//public $incrementing = false;
|
||||
|
||||
protected $fillable = [
|
||||
"'no_rek',
|
||||
'kode_cabang'
|
||||
'nama_cabang',
|
||||
'suku_bunga',
|
||||
'jumlah_nominal',
|
||||
'jenis_rekening'
|
||||
'period',
|
||||
'jatuh_tempo',
|
||||
'kode_mata_uang'"
|
||||
];
|
||||
|
||||
}
|
41
Entities/Loan.php
Normal file
41
Entities/Loan.php
Normal file
@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Konfirmasibank\Entities;
|
||||
|
||||
use Spatie\Activitylog\LogOptions;
|
||||
use Spatie\Activitylog\Traits\LogsActivity;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
class Loan extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $primaryKey = 'sk_nasabah';
|
||||
protected $connection = 'pgsql';
|
||||
protected $table = 'loan';
|
||||
|
||||
//public $incrementing = false;
|
||||
|
||||
protected $fillable = [
|
||||
"'sk_nasabah',
|
||||
'no_rek'
|
||||
'kode_cabang',
|
||||
'nama_cabang',
|
||||
'tgl_mulai',
|
||||
'jatuh_tempo',
|
||||
'periode',
|
||||
'outstanding',
|
||||
'kode_mata_uang',
|
||||
'product_loan',
|
||||
'principle_amount',
|
||||
'interest_rate',
|
||||
'tenor',
|
||||
'kode_status_lunas',
|
||||
'insert_date'
|
||||
"
|
||||
];
|
||||
|
||||
}
|
31
Entities/Nasabah.php
Normal file
31
Entities/Nasabah.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Konfirmasibank\Entities;
|
||||
|
||||
use Spatie\Activitylog\LogOptions;
|
||||
use Spatie\Activitylog\Traits\LogsActivity;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
class Nasabah extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $primaryKey = 'cif';
|
||||
protected $connection = 'pgsql';
|
||||
protected $table = 'customer';
|
||||
|
||||
//public $incrementing = false;
|
||||
|
||||
protected $fillable = [
|
||||
"'nama_nasabah',
|
||||
'email'
|
||||
'no_hp',
|
||||
'kode_cabang',
|
||||
'nama_cabang',
|
||||
'insert_date',"
|
||||
];
|
||||
|
||||
}
|
@ -26,5 +26,4 @@ class Signer extends Model
|
||||
'status',"
|
||||
];
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user