add comment
This commit is contained in:
@@ -14,6 +14,7 @@ trait PRB_FileControl
|
||||
0,
|
||||
'$name',
|
||||
'$filePATH',
|
||||
'',
|
||||
'".$params['data']['item']['uploadIP']."',
|
||||
'".$params['data']['date']." $time')";
|
||||
insert($query);
|
||||
@@ -24,6 +25,7 @@ trait PRB_FileControl
|
||||
[isCompleted]
|
||||
,[file_name]
|
||||
,[file_path]
|
||||
,[comment]
|
||||
,convert(varchar, [upload_date],104)+' - '+convert(varchar, [upload_date],108) as [Дата загрузки]
|
||||
,[id]
|
||||
FROM [Production].[dbo].[PRB_FileControl]
|
||||
@@ -39,6 +41,15 @@ trait PRB_FileControl
|
||||
WHERE id=".$params['data']['id']."";
|
||||
update($query);
|
||||
}
|
||||
|
||||
public function setComment($params)
|
||||
{
|
||||
$query = "UPDATE [Production].[dbo].[PRB_FileControl]
|
||||
SET comment='".$params['data']['comment']."'
|
||||
WHERE id=".$params['data']['id']."";
|
||||
update($query);
|
||||
}
|
||||
|
||||
public function setHistory($params)
|
||||
{
|
||||
$query = "INSERT INTO [Production].[dbo].[PRB_FileLog] VALUES (
|
||||
|
||||
Reference in New Issue
Block a user