아파트평면도 엑셀업로드 추가
Some checks failed
Close Pull Request / main (pull_request_target) Has been cancelled

This commit is contained in:
yangsh
2025-12-30 11:06:23 +09:00
parent 0f5d52271f
commit 48f4c0e158
5 changed files with 326 additions and 0 deletions

View File

@@ -468,6 +468,33 @@ class GroundModel extends Model
return $query->getResultArray();
}
// 엑셀 업로드 저장
public function saveExcelUploadData($params)
{
$this->db->transStart();
$builder = $this->db->table('apt_ground');
$res = $builder->insert($params);
if ($res === false) {
return [
'success' => false,
'msg' => "구분코드 : {$params['part_no']} 저장실패",
];
}
$rcpt_no = $this->db->insertID();
$this->saveHistory($rcpt_no, $params['apt_step'], 'U', 'U1', session('usr_id'));
$this->db->transComplete();
// 성공
return [
'success' => true,
];
}
// 엑셀 다운로드
public function getExcelList($data)
{