|
@@ -6,7 +6,6 @@ namespace app\admin\controller;
|
|
|
use app\admin\model\CgdInfo;use app\admin\model\InvoicePool;use app\admin\model\Pay;use app\admin\model\QrdInfo;use app\admin\model\TradePool;use think\App;
|
|
|
use think\facade\Db;use think\facade\Validate;
|
|
|
class Sale extends Base{
|
|
|
- #public $novalidate=["*"];
|
|
|
public function __construct(App $app) {parent::__construct($app);}
|
|
|
/** 获取列表
|
|
|
* @return \think\response\Json|void
|
|
@@ -71,15 +70,6 @@ class Sale extends Base{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- $apayIs = isset($post['apay_is'])&&$post['apay_is']!==''?intval($post['apay_is']):'';
|
|
|
- if($apayIs!==''){
|
|
|
- if($apayIs==1){
|
|
|
- $condition[]=['a.apay_fee','<>',0];
|
|
|
- }else{
|
|
|
- $condition[]=['a.apay_fee','=',0];
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
$pay_status = isset($post['pay_status'])&&$post['pay_status']!==''?intval($post['pay_status']):'';
|
|
|
if($pay_status!==''){
|
|
|
if($pay_status==0){
|
|
@@ -97,6 +87,10 @@ class Sale extends Base{
|
|
|
$condition[]=["a.status","=",$status];
|
|
|
}
|
|
|
|
|
|
+ }
|
|
|
+ $poCode = isset($post['poCode']) && $post['poCode'] !== '' ? trim($post['poCode']) : '';
|
|
|
+ if ($poCode !== '') {
|
|
|
+ $condition[] = ['a.poCode', 'like', "%$poCode%"];
|
|
|
}
|
|
|
$qrdNo = isset($post['sequenceNo'])&&$post['sequenceNo']!=''?trim($post['sequenceNo']):'';
|
|
|
if($qrdNo!==''){
|
|
@@ -131,13 +125,7 @@ class Sale extends Base{
|
|
|
$condition[]=["a.platform_type","=",$platform_type];
|
|
|
}
|
|
|
|
|
|
- $poCode = isset($post['poCode'])&&$post['poCode']!==''?trim($post['poCode']):'';
|
|
|
- if($poCode!==''){
|
|
|
- $condition[]=["a.poCode","like","%$poCode%"];
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- $saler= isset($post['saler']) && $post['saler']!='' ? trim($post['saler']) :"";
|
|
|
+ $saler= isset($post['saler']) && $post['saler']!='' ? trim($post['saler']) :"";
|
|
|
if($saler!='') $condition []=["a.ownerName","like","%$saler%"];
|
|
|
$salerid= isset($post['salerid']) && $post['salerid']!='' ? intval($post['salerid']) :"";
|
|
|
if($salerid!='') $condition []=["a.ownerid","=",$salerid];
|
|
@@ -266,14 +254,6 @@ class Sale extends Base{
|
|
|
$condition[]=["a.wpay_fee","=",0];
|
|
|
}
|
|
|
}
|
|
|
-// $apayIs = isset($post['apay_is'])&&$post['apay_is']!==''?intval($post['apay_is']):'';
|
|
|
-// if($apayIs!==''){
|
|
|
-// if($apayIs==1){
|
|
|
-// $condition[]=['a.apay_fee','<>',0];
|
|
|
-// }else{
|
|
|
-// $condition[]=['a.apay_fee','=',0];
|
|
|
-// }
|
|
|
-// }
|
|
|
|
|
|
$pay_status = isset($post['pay_status'])&&$post['pay_status']!==''?intval($post['pay_status']):'';
|
|
|
if($pay_status!==''){
|
|
@@ -326,7 +306,7 @@ class Sale extends Base{
|
|
|
$condition[]=["a.platform_type","=",$platform_type];
|
|
|
}
|
|
|
|
|
|
- $saler= isset($post['saler']) && $post['saler']!='' ? trim($post['saler']) :"";
|
|
|
+ $saler= isset($post['saler']) && $post['saler']!='' ? trim($post['saler']) :"";
|
|
|
if($saler!='') $condition []=["a.ownerName","like","%$saler%"];
|
|
|
$salerid= isset($post['salerid']) && $post['salerid']!='' ? intval($post['salerid']) :"";
|
|
|
if($salerid!='') $condition []=["a.ownerid","=",$salerid];
|
|
@@ -344,6 +324,10 @@ class Sale extends Base{
|
|
|
if($tag_id==3) $condition[]=["a.pay_tag|inv_tag","=",1];
|
|
|
if($tag_id==4) $condition[]=["a.pay_tag&inv_tag","=",1];
|
|
|
}
|
|
|
+ $poCode = isset($post['poCode']) && $post['poCode'] !== '' ? trim($post['poCode']) : '';
|
|
|
+ if ($poCode !== '') {
|
|
|
+ $condition[] = ['a.poCode', 'like', "%$poCode%"];
|
|
|
+ }
|
|
|
$cat_status= isset($post['cat_status'])&&$post['cat_status']!=="" ? intval($post['cat_status']) :"";
|
|
|
if($cat_status!=='') $condition[]=["b.status","=",$cat_status];
|
|
|
$list =Db::name("qrd_info")->alias("a")
|