|
|
@@ -251,7 +251,7 @@ class QcodeProduct extends Backend
|
|
|
'main_unit' =>$req['row']['main_unit'],
|
|
|
'sec_unit' =>$req['row']['sec_unit'],
|
|
|
'proportion' =>$req['row']['proportion'],
|
|
|
- 'create_time' =>date('Y-m-d H:i:s'),
|
|
|
+ 'create_time' =>time(),
|
|
|
];
|
|
|
//插入数据
|
|
|
$re = $this->model->save($data);
|
|
|
@@ -314,7 +314,7 @@ class QcodeProduct extends Backend
|
|
|
'main_unit' =>$req['row']['main_unit'],
|
|
|
'sec_unit' =>$req['row']['sec_unit'],
|
|
|
'proportion' =>$req['row']['proportion'],
|
|
|
- 'update_time' =>date('Y-m-d H:i:s'),
|
|
|
+ 'update_time' =>time(),
|
|
|
];
|
|
|
|
|
|
//修改数据
|
|
|
@@ -340,7 +340,7 @@ class QcodeProduct extends Backend
|
|
|
{
|
|
|
$department = \app\admin\model\QcodeProduct::get(['_id' => new \MongoDB\BSON\ObjectID($ids)]);
|
|
|
|
|
|
- $department->delete_time = date('Y-m-d H:i:s');
|
|
|
+ $department->delete_time = time();
|
|
|
$re = $department->save();
|
|
|
if($re){
|
|
|
$this->success('删除成功');
|
|
|
@@ -365,7 +365,7 @@ class QcodeProduct extends Backend
|
|
|
|
|
|
$data = [
|
|
|
'product_id'=>$ids,
|
|
|
- 'create_time'=>date('Y-m-d H:i:s'),
|
|
|
+ 'create_time'=>time(),
|
|
|
];
|
|
|
|
|
|
//插入qcode_company数据
|
|
|
@@ -388,7 +388,7 @@ class QcodeProduct extends Backend
|
|
|
//查询是否已经添加
|
|
|
$bool = $db->name($company_id.'_'."qcode_company")
|
|
|
->where(['delete_time'=>'','product_id'=>$ids])
|
|
|
- ->update(['delete_time'=>date('Y-m-d H:i:s')]);
|
|
|
+ ->update(['delete_time'=>time()]);
|
|
|
|
|
|
if($bool){
|
|
|
$this->success('删除成功');
|