|
|
@@ -53,13 +53,20 @@ class OrderController extends BaseController
|
|
|
}
|
|
|
$name = $get['name'] ?? '';
|
|
|
if (!empty($name)) {
|
|
|
- //订单编号
|
|
|
- if (strpos($name, 'XSD') === 0) {
|
|
|
- $where['orderSn'] = $name;
|
|
|
- } elseif (preg_match("/^[a-zA-Z\s]+$/", $name)) {
|
|
|
- $where['customNamePy'] = ['like', $name];
|
|
|
- } else {
|
|
|
- $where['customName'] = ['like', $name];
|
|
|
+ $searchType = $get['searchType'] ?? 0;
|
|
|
+ if(empty($searchType)){
|
|
|
+ //订单编号
|
|
|
+ if (strpos($name, 'XSD') === 0) {
|
|
|
+ $where['orderSn'] = $name;
|
|
|
+ } elseif (preg_match("/^[a-zA-Z\s]+$/", $name)) {
|
|
|
+ $where['customNamePy'] = ['like', $name];
|
|
|
+ } else {
|
|
|
+ $where['customName'] = ['like', $name];
|
|
|
+ }
|
|
|
+ }elseif($searchType == 1){
|
|
|
+ $where['sendNum'] = $name;
|
|
|
+ }else{
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
$respond = OrderClass::getOrderList($where);
|