Commit 3a2b52d1 authored by clone's avatar clone

1

parent 9363821d
......@@ -21,7 +21,7 @@ class StoreFeeService
$this->applyForFeeModel = new FApplyForFee();
$this->imgModel = new FImg();
}
/**
* @param $type
* @param $fee_item
......@@ -37,7 +37,8 @@ class StoreFeeService
* @param $img_arr
* @param int $id
* @return int|string
* @throws \app\model\Exception
* @throws \think\Exception
* @throws \think\exception\PDOException
*/
public function addApplyFor($type, $fee_item, $total_fee, $agent_id, $store_id, $purpose, $site_id, $card_name,
$bank, $card_no, $count_time, $img_arr, $id = 0)
......
......@@ -20,11 +20,31 @@ class StoreFee extends Basic
{
protected $f_office;
private $service_;
public function __construct($request = null)
{
parent::__construct($request);
$this->f_office = new FOffice();
$this->service_ = new StoreFeeService();
}
public function createStoreFee(){
$params = $this->params;
$params = array(
"setting_date" => "2019-06-01",
"agent_id" => 1,
);
if(!$params["setting_date"] || !$params["agent_id"]){
return $this->response("101", "请求参数错误 ");
}
$setting_date = $params["setting_date"];
$agent_id = $params["agent_id"];
//todo 1.判断是否都审核过,
//todo 2.计算门店成本 3.总部成本,4.分部成本,5.同联发展基金 6门店单独成本
$this->service_->calculateStoreFee($setting_date,$agent_id);
}
/**
......
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