Commit f53eab4c authored by clone's avatar clone

1

parent 7c9e6fac
...@@ -14,15 +14,18 @@ use think\Log; ...@@ -14,15 +14,18 @@ use think\Log;
*/ */
class BargainService class BargainService
{ {
/** /**获取成交报告列表
* 获取成交报告列表
* @param $pageNo * @param $pageNo
* @param $pageSize * @param $pageSize
* @param $submit_agent_id * @param $submit_agent_id
* @param $status * @param $status
* @param $is_my_correlation * @param $is_my_correlation
* @param $keyword * @param $keyword
* @return array|false|\PDOStatement|string|\think\Collection * @param $bargain_id
* @return mixed
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/ */
public function getBargainList($pageNo, $pageSize, $submit_agent_id, $status, $is_my_correlation, $keyword, $bargain_id) public function getBargainList($pageNo, $pageSize, $submit_agent_id, $status, $is_my_correlation, $keyword, $bargain_id)
{ {
...@@ -32,7 +35,8 @@ class BargainService ...@@ -32,7 +35,8 @@ class BargainService
$aService = new VerifyService(); $aService = new VerifyService();
$ids = $aService->getAgentsByAgentId($submit_agent_id); $ids = $aService->getAgentsByAgentId($submit_agent_id);
$condition["ids"] = $ids; $condition["ids"] = $ids;
$condition["submit_agent_id"] = $submit_agent_id;
} else { } else {
$condition["father_id"] = 0; $condition["father_id"] = 0;
} }
...@@ -51,7 +55,7 @@ class BargainService ...@@ -51,7 +55,7 @@ class BargainService
$condition["status"] = 21; $condition["status"] = 21;
break; break;
case 5://调账->搜成交报告 不包括 待撤销和已撤销 case 5://调账->搜成交报告 不包括 待撤销和已撤销
$condition["status"] = array('not in','20,21'); $condition["status"] = array('not in', '20,21');
break; break;
default: default:
} }
...@@ -74,7 +78,7 @@ class BargainService ...@@ -74,7 +78,7 @@ class BargainService
return $convertResult; return $convertResult;
} }
public function getBargainListV2($pageNo, $pageSize, $submit_agent_id, $status, $is_my_correlation, $keyword, $bargain_id,$type) public function getBargainListV2($pageNo, $pageSize, $submit_agent_id, $status, $is_my_correlation, $keyword, $bargain_id, $type)
{ {
$condition = []; $condition = [];
...@@ -82,7 +86,8 @@ class BargainService ...@@ -82,7 +86,8 @@ class BargainService
$aService = new VerifyService(); $aService = new VerifyService();
$ids = $aService->getAgentsByAgentId($submit_agent_id); $ids = $aService->getAgentsByAgentId($submit_agent_id);
$condition["ids"] = $ids; $condition["ids"] = $ids;
$condition["submit_agent_id"] = $submit_agent_id;
} else { } else {
$condition["father_id"] = 0; $condition["father_id"] = 0;
} }
...@@ -101,7 +106,7 @@ class BargainService ...@@ -101,7 +106,7 @@ class BargainService
$condition["status"] = 21; $condition["status"] = 21;
break; break;
case 5://调账->搜成交报告 不包括 待撤销和已撤销 case 5://调账->搜成交报告 不包括 待撤销和已撤销
$condition["status"] = array('not in','20,21'); $condition["status"] = array('not in', '20,21');
break; break;
default: default:
} }
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment