|
@@ -109,12 +109,13 @@ class Proorder extends Base
|
|
|
$db = ProcessWait::alias("a")
|
|
|
->leftJoin('workflow b', 'a.order_type=b.order_type and a.order_code=b.order_code')
|
|
|
// ->leftJoin('process p', 'p.process_type=a.order_type AND p.is_del=0 AND p.status=1')
|
|
|
- ->where(['a.status' => ProcessWait::$status_wait])
|
|
|
- ->whereFindInSet('handle_user_list', $this->uid);
|
|
|
+ ->where(['a.status' => ProcessWait::$status_wait]);
|
|
|
+
|
|
|
|
|
|
// $db->where(function ($query) use ($param) {
|
|
|
//所属角色
|
|
|
-// $role = $this->checkRole();
|
|
|
+ $role = $this->checkRole();
|
|
|
+ if ($role['roleid'] != 1) $db->whereFindInSet('handle_user_list', $this->uid);
|
|
|
|
|
|
// if (!empty($role['write']) || $role['roleid'] == 33) $query->whereFindInSet('roleid', $role['roleid']);
|
|
|
// $query->whereFindInSet('roleid', $role['roleid']);
|