@@ -144,7 +144,7 @@ if (! class_exists("ApiBoard"))
//고객센터 게시물 저장
functionsaveCS(){
$title=$this->req["title"];
$userFk=$this->req["userFk"];
$userFk=$this->appUser["no"];
$targetType=$this->req["targetType"];
$imgPathCS1=$this->req["imgPathCS1"];
$imgPathCS2=$this->req["imgPathCS2"];
...
...
@@ -166,6 +166,8 @@ if (! class_exists("ApiBoard"))
NOW()
)
";
$this->update($sql);
return$this->makeResultJson("1","저장되었습니다");
}
...
...
@@ -208,7 +210,7 @@ if (! class_exists("ApiBoard"))
if($result!=null){
$sql="
SELECT
SELECT U.userID, C.*
FROM tblComment C
JOIN tblUser U ON C.userFk=U.userNo
WHERE targetFk='{$csNo}' AND commentType='CS'
...
...
@@ -266,11 +268,11 @@ if (! class_exists("ApiBoard"))
if($result!=null){
$sql="
SELECT
SELECT U.userID, C.*
FROM tblComment C
JOIN tblUser U ON C.userFk=U.userNo
WHERE targetFk='{$companyNo}' AND commentType='CP'
ORDER BY commentNo DESC
ORDER BY C.ommentGroup ASC, C.gOrder ASC
";
$commentList=$this->getArray($sql);
...
...
@@ -287,7 +289,7 @@ if (! class_exists("ApiBoard"))
functionsaveComment(){
$commentType=$this->req["commentType"];
$targetFk=$this->req["targetFk"];
$userFk=$this->req["userFk"];
$userFk=$this->appUser["no"];;
$content=$this->req["content"];
$parentNo=$this->req["parentNo"];//부모 댓글의 기본키
...
...
@@ -350,6 +352,7 @@ if (! class_exists("ApiBoard"))
WHERE commentGroup='{$childGroup}' AND gOrder > '{$childOrder}' + 1 AND status=1
";
$this->update($sql);
return$this->makeResultJson("1","저장되었습니다");
}
else{//부모에게 자식이 없을 때
$sql="
...
...
@@ -375,6 +378,7 @@ if (! class_exists("ApiBoard"))
WHERE commentGroup=(SELECT commentGroup FROM tblComment WHERE commentNo='{$parentNo}' AND status=1) AND gOrder > (SELECT gOrder + 1 FROM tblComment WHERE commentNo='{$parentNo}' AND status=1) AND status=1
";
$this->update($sql);
return$this->makeResultJson("1","저장되었습니다");
}
}
...
...
@@ -382,6 +386,192 @@ if (! class_exists("ApiBoard"))