0652c268 by sayhoChun

comment related function complete

1 parent 8609c565
......@@ -263,6 +263,8 @@ if (! class_exists("ApiBoard"))
$boardNo=$this->req["boardNo"];
$sql="UPDATE tblBoard SET status=0 WHERE boardNo='{$boardNo}'";
$this->update($sql);
return $this->makeResultJson("1", "삭제되었습니다")
}
//고객센터 게시물 저장
......@@ -342,6 +344,8 @@ if (! class_exists("ApiBoard"))
$csNo=$this->req["csNo"];
$sql="UPDATE tblCustomerService SET status=0 WHERE csNo='{$csNo}'";
$this->update($sql);
return $this->makeResultJson("1", "삭제되었습니다")
}
//고객센터 게시물 리스트
......@@ -578,6 +582,40 @@ if (! class_exists("ApiBoard"))
}
}
function getInfoOfComment(){
$commentNo=$this->req["commentNo"];
$sql="
SELECT *
FROM tblComment
WHERE commentNo='{$commentNo}'
";
$result=$this->getRow($sql);
return $this->makeResultJson("1", "", $result);
}
function modifyComment(){
$commentNo=$this->req["commentNo"];
$content=$this->req["content"];
$sql="
UPDATE tblComment
SET content='$content'
WHERE commentNo='{$commentNo}'
";
$this->update($sql);
}
function delComment(){
$commentNo=$this->req["commentNo"];
$sql="
UPDATE tblComment
SET status=0
WHERE commentNo='{$commentNo}' OR (
commentGroup=(SELECT commentGroup FROM (SELECT * FROM tblComment) AS c WHERE commentNo='{$commentNo}')
AND depth > (SELECT depth FROM (SELECT * FROM tblComment) AS c WHERE commentNo='{$commentNo}'))
";
}
//제작사양서 저장
function saveProductionSpec(){
//$userFk = $this->appUser["no"];
......