Commit ffd7420e authored by clone's avatar clone

是否可调整

parent a5ef3cd0
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
namespace app\api_broker\service; namespace app\api_broker\service;
use app\model\AAgents;
use app\model\AppointWatchShop; use app\model\AppointWatchShop;
use app\model\FollowUpLogModel; use app\model\FollowUpLogModel;
use app\model\GHousesFollowUp; use app\model\GHousesFollowUp;
...@@ -179,6 +180,24 @@ class OrderLogService ...@@ -179,6 +180,24 @@ class OrderLogService
return $father_id; return $father_id;
} }
public function verifyIsShowAdjustment($pay_id,$agent_id){
$params["id"] = $pay_id;
$pay_log_info = $this->payLogModel->getPayLogByOrderId("a.id,a.agent_id,c.store_id",$params);
if(count($pay_log_info) <= 0){
return ["code"=> 101 ,"msg"=> "没有找到相对应的收款信息"];
}
$agentModel = new AAgents();
$agent_info = $agentModel->getAgentById("id,store_id",["id"=>$agent_id]);
if(count($agent_info) <= 0){
return ["code"=> 101 ,"msg"=> "没有找到相对应的经纪人信息"];
}
if($pay_log_info[0]["store_id"] != $agent_info[0]["store_id"]){
return ["code"=> 200 ,"is_show"=> false];
}else{
return ["code"=> 200 ,"is_show"=> true];
}
}
/** /**
* 验证金额是否合法 * 验证金额是否合法
* @param $pay_id * @param $pay_id
......
...@@ -141,6 +141,9 @@ class OPayLogModel extends Model ...@@ -141,6 +141,9 @@ class OPayLogModel extends Model
if (isset($params["bargain_id"])) { if (isset($params["bargain_id"])) {
$where_["a.bargain_id"] = $params["bargain_id"]; $where_["a.bargain_id"] = $params["bargain_id"];
} }
if (isset($params["id"])) {
$where_["a.id"] = $params["id"];
}
$where_["a.is_del"] = 0; $where_["a.is_del"] = 0;
return Db::table($this->table) return Db::table($this->table)
->field($field) ->field($field)
......
...@@ -713,6 +713,7 @@ Route::group('broker', [ ...@@ -713,6 +713,7 @@ Route::group('broker', [
'searchBargainAgents' => ['api_broker/OrderLog/searchBargainAgents', ['method' => 'get']], 'searchBargainAgents' => ['api_broker/OrderLog/searchBargainAgents', ['method' => 'get']],
'isBargainEnd' => ['api_broker/OrderLog/isBargainEnd', ['method' => 'get']], 'isBargainEnd' => ['api_broker/OrderLog/isBargainEnd', ['method' => 'get']],
'getCommission' => ['api_broker/OrderLog/getCommission', ['method' => 'GET|POST']], 'getCommission' => ['api_broker/OrderLog/getCommission', ['method' => 'GET|POST']],
'isShowAdjustment' => ['api_broker/OrderLog/isShowAdjustment', ['method' => 'GET|POST']],
'appAgentAuth' => ['api_broker/Report/appAgentAuth', ['method' => 'get']], 'appAgentAuth' => ['api_broker/Report/appAgentAuth', ['method' => 'get']],
......
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