Commit 0fff9cca authored by clone's avatar clone

1

parent 6401a0c2
......@@ -34,11 +34,11 @@ class StoreFee extends Basic
public function creationStoreFee()
{
$params = $this->params;
$params = array(
/* $params = array(
"setting_date" => "2019-06-01",
"agent_id" => 1,
);
);*/
if (!$params["setting_date"] || !$params["agent_id"]) {
return $this->response("101", "请求参数错误 ");
}
......
......@@ -87,12 +87,14 @@ class FApplyForFee extends BaseModel
* @throws \think\exception\DbException
*/
public function getApplyForFeeList($field,$params){
return $this->db_
$result = $this->db_
->field($field)
->alias("a")
->join("a_store b","a.store_id = b.id","left")
->where($params)
->select();
// echo $this->db_->getLastSql();
return $result;
}
/**
......
......@@ -24,6 +24,7 @@ class FStoreCostExt extends BaseModel
Db::commit();
return 1;
} catch (\Exception $e) {
dump($e);
Db::rollback();
return 0;
}
......
......@@ -550,6 +550,7 @@ Route::group('index', [
'getApplyForFeeStore' => ['index/StoreFee/getApplyForFeeStore', ['method' => 'GET']],//获取费用承担办公室
'addFeeImage' => ['index/StoreFee/addFeeImage', ['method' => 'POST']],//新增报销申请图片
'getStoreOffice' => ['index/Store/getStoreOffice', ['method' => 'GET']],//获取费用承担办公室
'creationStoreFee' => [ 'index/StoreFee/creationStoreFee', [ 'method' => 'POST|GET' ] ],
'getStoreCostParameterList' => [ 'index/CostParameter/getStoreCostParameterList', [ 'method' => 'POST|GET' ] ],
'editCostParameter' => [ 'index/CostParameter/editCostParameter', [ 'method' => 'POST|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