|
|
@@ -17,17 +17,17 @@ class LiveOrderController extends BaseController
|
|
|
{
|
|
|
$get = Yii::$app->request->get();
|
|
|
$staffId = $get['staffId'] ?? 0;
|
|
|
- $name = $get['name'] ?? '';
|
|
|
+ $searchContent = $get['searchContent'] ?? '';
|
|
|
$where = [];
|
|
|
$where['mainId'] = $this->mainId;
|
|
|
if (!empty($staffId)) {
|
|
|
$where['staffId'] = $staffId;
|
|
|
}
|
|
|
- if (!empty($name)) {
|
|
|
- if (stringUtil::isLetter($name)) {
|
|
|
- $where['py'] = ['like', $name];
|
|
|
+ if (!empty($searchContent)) {
|
|
|
+ if (stringUtil::isLetter($searchContent)) {
|
|
|
+ $where['py'] = ['like', $searchContent];
|
|
|
} else {
|
|
|
- $where['name'] = ['like', $name];
|
|
|
+ $where['name'] = ['like', $searchContent];
|
|
|
}
|
|
|
}
|
|
|
$searchTime = $get['searchTime'] ?? '';
|