P2-07~14 판매대행소/담당자/업체/무료대상자 CRUD 일괄 구현
- 4개 테이블 생성 (sales_agency, manager, company, free_recipient) - 4개 Model + 4개 Controller + 12개 View - 담당자: 소속(S)/직위(T) 코드 연동 - 업체: 협회/제작업체/회수업체 유형 분류 - 무료대상자: 무상지급구분(H)/동코드(D) 연동 - 모두 지자체별 멀티테넌시 적용 - 24개 라우트 추가 - E2E 테스트 9개 전체 통과 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
17
app/Models/CompanyModel.php
Normal file
17
app/Models/CompanyModel.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use CodeIgniter\Model;
|
||||
|
||||
class CompanyModel extends Model
|
||||
{
|
||||
protected $table = 'company';
|
||||
protected $primaryKey = 'cp_idx';
|
||||
protected $returnType = 'object';
|
||||
protected $useTimestamps = false;
|
||||
protected $allowedFields = [
|
||||
'cp_lg_idx', 'cp_type', 'cp_name', 'cp_biz_no', 'cp_rep_name',
|
||||
'cp_tel', 'cp_addr', 'cp_state', 'cp_regdate',
|
||||
];
|
||||
}
|
||||
17
app/Models/FreeRecipientModel.php
Normal file
17
app/Models/FreeRecipientModel.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use CodeIgniter\Model;
|
||||
|
||||
class FreeRecipientModel extends Model
|
||||
{
|
||||
protected $table = 'free_recipient';
|
||||
protected $primaryKey = 'fr_idx';
|
||||
protected $returnType = 'object';
|
||||
protected $useTimestamps = false;
|
||||
protected $allowedFields = [
|
||||
'fr_lg_idx', 'fr_type_code', 'fr_name', 'fr_phone', 'fr_addr',
|
||||
'fr_dong_code', 'fr_note', 'fr_end_date', 'fr_state', 'fr_regdate',
|
||||
];
|
||||
}
|
||||
17
app/Models/ManagerModel.php
Normal file
17
app/Models/ManagerModel.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use CodeIgniter\Model;
|
||||
|
||||
class ManagerModel extends Model
|
||||
{
|
||||
protected $table = 'manager';
|
||||
protected $primaryKey = 'mg_idx';
|
||||
protected $returnType = 'object';
|
||||
protected $useTimestamps = false;
|
||||
protected $allowedFields = [
|
||||
'mg_lg_idx', 'mg_name', 'mg_dept_code', 'mg_position_code',
|
||||
'mg_tel', 'mg_phone', 'mg_email', 'mg_state', 'mg_regdate',
|
||||
];
|
||||
}
|
||||
17
app/Models/SalesAgencyModel.php
Normal file
17
app/Models/SalesAgencyModel.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use CodeIgniter\Model;
|
||||
|
||||
class SalesAgencyModel extends Model
|
||||
{
|
||||
protected $table = 'sales_agency';
|
||||
protected $primaryKey = 'sa_idx';
|
||||
protected $returnType = 'object';
|
||||
protected $useTimestamps = false;
|
||||
protected $allowedFields = [
|
||||
'sa_lg_idx', 'sa_name', 'sa_biz_no', 'sa_rep_name',
|
||||
'sa_tel', 'sa_addr', 'sa_state', 'sa_regdate',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user