|
@@ -383,7 +383,6 @@ class VerifyApi {
|
|
|
$offset = $params["offset"] ?: 0;
|
|
|
$limit = $params["limit"] ?: 10;
|
|
|
$type = session("user")["type"];
|
|
|
- $where[] = ["e.type", "=", $type];
|
|
|
if ($params["name"]) {
|
|
|
$where[] = ["ti.name", "like", "%{$params["name"]}%"];
|
|
|
}
|
|
@@ -470,11 +469,13 @@ class VerifyApi {
|
|
|
$process = $params["process"];
|
|
|
if ($process == 4) {
|
|
|
if (self::chkUserInSuperDeptUsers()) {
|
|
|
+ $where[] = ["e.type", "=", $type];
|
|
|
return self::getFullDeptList($params, $where);
|
|
|
} else {
|
|
|
return self::getDeptList($params, $where);
|
|
|
}
|
|
|
}
|
|
|
+ $where[] = ["e.type", "=", $type];
|
|
|
if ($process == 5) {
|
|
|
$whereRaw = sprintf("(tl.state in (-14,14,15,16)) or (tl.state=12 and ti.pass_dept_check=0) or (tl.state=10 and ti.pass_dept_check=1) or (tl.state=10 and (tc.companyIds is null or tc.companyIds = ''))");
|
|
|
switch ($params["checkState"]) {
|