내역을 확인할 수 있도록 추가

This commit is contained in:
BJRambo 2016-02-26 13:10:25 +09:00
parent 74fcee987e
commit 9a60af1871
7 changed files with 69 additions and 2 deletions

View file

@ -689,6 +689,14 @@ class documentController extends document
if($obj->update_log_setting === 'Y')
{
$update_args = new stdClass();
if($obj->category_srl)
{
$update_args->category_srl = $obj->category_srl;
}
else
{
$update_args->category_srl = $source_obj->get('category_srl');
}
$update_args->document_srl = $obj->document_srl;
$update_args->member_srl = $source_obj->get('member_srl');
$update_args->module_srl = $source_obj->get('module_srl');
@ -701,7 +709,7 @@ class documentController extends document
$update_args->update_nick_name = $logged_info->nick_name;
$update_args->tags = $obj->tags;
$update_args->extra_vars = $obj->extra_vars;
$update_output = executeQuery('document.insertUpdateLog', $update_args);
$update_output = executeQuery('document.insertDocumentUpdateLog', $update_args);
if(!$update_output->toBool())
{
$oDB->rollback();

View file

@ -1548,6 +1548,16 @@ class documentModel extends document
return $document_list;
}
function getDocumentUpdateLog($document_srl)
{
$args = new stdClass();
$args->document_srl = $document_srl;
$output = executeQueryArray('document.getDocumentUpdateLog', $args);
$update_list = $output->data;
return $update_list;
}
}
/* End of file document.model.php */
/* Location: ./modules/document/document.model.php */

View file

@ -0,0 +1,11 @@
<query id="getDocumentUpdateLog" action="select">
<tables>
<table name="document_update_list" />
</tables>
<columns>
<column name="*" />
</columns>
<conditions>
<condition operation="equal" column="document_srl" var="document_srl" filter="number" notnull="notnull" />
</conditions>
</query>

View file

@ -1,4 +1,4 @@
<query id="insertUpdateLog" action="insert">
<query id="insertDocumentUpdateLog" action="insert">
<tables>
<table name="document_update_list" />
</tables>
@ -7,6 +7,7 @@
<column name="member_srl" var="member_srl" filter="number" notnull="notnull" />
<column name="module_srl" var="module_srl" filter="number" notnull="notnull" />
<column name="update_member_srl" var="update_member_srl" filter="number" />
<column name="category_srl" var="category_srl" filter="number" />
<column name="ipaddress" var="ipaddress" default="ipaddress()" />
<column name="nick_name" var="nick_name" notnull="notnull" />
<column name="title" var="title" notnull="notnull" />

View file

@ -3,6 +3,7 @@
<column name="member_srl" type="number" size="11" notnull="notnull" index="idx_member_srl" />
<column name="update_member_srl" type="number" size="11" notnull="notnull" />
<column name="module_srl" type="number" size="11" notnull="notnull" />
<column name="category_srl" type="number" size="11" />
<column name="ipaddress" type="varchar" size="128" notnull="notnull" index="idx_ipaddress" />
<column name="nick_name" type="varchar" size="80" notnull="notnull" />
<column name="regdate" type="date" index="idx_regdate" />