使用cake php

时间:2017-10-15 15:08:23

标签: mysql cakephp-3.0

如果我想搜索所有搜索链接的结果,那么:

http://192.168.1.91/UQUV2/uqu_system/sterilization/sterilization-task-orders/result?sterilization_status_id=&users_id=&sterilization_types_id=&sterilization_tasks_id=&sterilization_task_types_id=

我正在使用此代码执行此操作:

$query = $this->SterilizationTaskOrders
            ->find()
            ->Where([
    'SterilizationTaskOrders.sterilization_types_id IS' => '',
    'SterilizationTaskOrders.sterilization_task_types_id IS' => NULL,
    'SterilizationTaskOrders.sterilization_status_id IS' => NULL,
    'SterilizationTaskOrders.users_id IS' => NULL,
    'SterilizationTaskOrders.sterilization_tasks_id IS' => NULL 
])

但是它让我无效并且没有让我获得所有结果!

该代码有什么问题?

0 个答案:

没有答案