调整备货单
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user