时间
This commit is contained in:
parent
946dcc5066
commit
3e5851edf1
@ -60,7 +60,7 @@ class ProductRepository extends Repository
|
||||
}
|
||||
|
||||
if (isset($conditions['type'])) {
|
||||
$conditions['type'] = array_wrap($conditions['type']);
|
||||
$conditions['type'] = array_map('intval', array_wrap($conditions['type']));
|
||||
$query->whereIn('type', $conditions['type']);
|
||||
}
|
||||
|
||||
|
@ -154,6 +154,8 @@ class ProductService extends Service
|
||||
return $node;
|
||||
} else {
|
||||
$attributes['sn'] = self::sn($package['sn'], $attributes['company_id']);
|
||||
$attributes['created_at'] = date('Y-m-d H:i:s');
|
||||
$attributes['updated_at'] = date('Y-m-d H:i:s');
|
||||
|
||||
$node = $this->productRepository->upsert($attributes, ['sn', 'deleted_at']);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user