fixed
This commit is contained in:
parent
5b79502943
commit
3764507e39
@ -39,7 +39,7 @@ class TaskController extends BaseApiController
|
|||||||
// $where[] = ['type', '=', 33];
|
// $where[] = ['type', '=', 33];
|
||||||
// $where[] = ['director_uid', '=', $this->userId];
|
// $where[] = ['director_uid', '=', $this->userId];
|
||||||
// }
|
// }
|
||||||
// $where[] = ['company_id', '=', $this->userInfo['company_id']];
|
$where[] = ['company_id', '=', $this->userInfo['company_id']];
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($userCompanyInfo['company_type'] == 41) {
|
if ($userCompanyInfo['company_type'] == 41) {
|
||||||
@ -76,7 +76,6 @@ class TaskController extends BaseApiController
|
|||||||
->page($page, 25)
|
->page($page, 25)
|
||||||
->order(['id' => 'desc', 'status' => 'asc'])
|
->order(['id' => 'desc', 'status' => 'asc'])
|
||||||
->select()->toArray();
|
->select()->toArray();
|
||||||
|
|
||||||
foreach ($res as $k => $item) {
|
foreach ($res as $k => $item) {
|
||||||
if ($item['type'] == 33) {
|
if ($item['type'] == 33) {
|
||||||
$company = Company::where('id', $item['company_id'])->field('id,deposit,company_money,user_id,day_count,company_type,province,city,area,street,village,brigade,responsible_area')->find(); // 可能要判断预存金是否满足
|
$company = Company::where('id', $item['company_id'])->field('id,deposit,company_money,user_id,day_count,company_type,province,city,area,street,village,brigade,responsible_area')->find(); // 可能要判断预存金是否满足
|
||||||
|
Loading…
x
Reference in New Issue
Block a user