调整备货单
This commit is contained in:
@@ -80,8 +80,17 @@ class SysDictService
|
||||
break;
|
||||
case 'scope':
|
||||
$config['order']['id'] = 'desc';
|
||||
// 决定查id还是code
|
||||
$scopeType = 0;
|
||||
if (isset($p['scope_type']) && $p['scope_type'] > 0) {
|
||||
$scopeType = 1;
|
||||
}
|
||||
if (isset($p['scope']) && !empty($p['scope'])) {
|
||||
$config['where']['id'] = ['in', explode(',', $p['scope'])];
|
||||
if ($scopeType == 1) {
|
||||
$config['where']['dict_code'] = ['in', explode(',', $p['scope'])];
|
||||
} else {
|
||||
$config['where']['id'] = ['in', explode(',', $p['scope'])];
|
||||
}
|
||||
}
|
||||
$config['with']['sysDictItem'][] = 'dict_id';
|
||||
$config['with']['sysDictItem'][] = 'item_label';
|
||||
@@ -95,7 +104,7 @@ class SysDictService
|
||||
$config['with']['sysDictItem'][] = 'item_value';
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
return $config;
|
||||
}
|
||||
|
||||
|
||||
@@ -113,6 +113,7 @@ class UserService
|
||||
$config['where']['id'] = $p['id'];
|
||||
break;
|
||||
case 'edit':
|
||||
case 'updateSign':
|
||||
$config['where']['id'] = $request->user->uid;
|
||||
break;
|
||||
}
|
||||
@@ -154,4 +155,13 @@ class UserService
|
||||
$user = $this->logicUpdateBy($config,$data);
|
||||
return $user;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function serviceUpdateSign(Request $request, array $data)
|
||||
{
|
||||
$config = $this->buildQueryConfig($request, 'updateSign');
|
||||
$user = $this->logicUpdateBy($config,$data);
|
||||
return $user;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user