아파트평면도 엑셀업로드 추가
Some checks failed
Close Pull Request / main (pull_request_target) Has been cancelled
Some checks failed
Close Pull Request / main (pull_request_target) Has been cancelled
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user