Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
sayhoChun
/
kcSpecialVehicle
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
0652c268
authored
2017-02-16 16:28:09 +0900
by
sayhoChun
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
comment related function complete
1 parent
8609c565
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
common/classes/ApiBoard.php
common/classes/ApiBoard.php
View file @
0652c26
...
...
@@ -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"];
...
...
Please
register
or
sign in
to post a comment