add comment

This commit is contained in:
2026-02-22 13:59:27 +03:00
parent e72c6f761f
commit b884c04b86
2 changed files with 215 additions and 0 deletions

View File

@@ -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 (