Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
aeda6327
Commit
aeda6327
authored
Jul 24, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
70f4307d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
7 deletions
+36
-7
StoreFeeService.php
application/api_broker/service/StoreFeeService.php
+0
-0
StoreFee.php
application/index/controller/StoreFee.php
+6
-1
FApplyForFee.php
application/model/FApplyForFee.php
+1
-1
FOffice.php
application/model/FOffice.php
+17
-5
FStoreCostExt.php
application/model/FStoreCostExt.php
+12
-0
No files found.
application/api_broker/service/StoreFeeService.php
View file @
aeda6327
This diff is collapsed.
Click to expand it.
application/index/controller/StoreFee.php
View file @
aeda6327
...
@@ -56,7 +56,12 @@ class StoreFee extends Basic
...
@@ -56,7 +56,12 @@ class StoreFee extends Basic
//todo 1.判断是否都审核过,
//todo 1.判断是否都审核过,
//todo 2.计算门店成本 3.总部成本,4.分部成本,5.同联发展基金 6门店单独成本
//todo 2.计算门店成本 3.总部成本,4.分部成本,5.同联发展基金 6门店单独成本
$this
->
service_
->
calculateStoreFee
(
$setting_date
,
$agent_id
,
$agent_name
);
$msg
=
$this
->
service_
->
calculateStoreFee
(
$setting_date
,
$agent_id
,
$agent_name
);
if
(
$msg
!=
1
){
return
$this
->
response
(
"101"
,
$msg
);
}
else
{
return
$this
->
response
(
"200"
,
"success"
);
}
}
}
/**
/**
...
...
application/model/FApplyForFee.php
View file @
aeda6327
...
@@ -90,7 +90,7 @@ class FApplyForFee extends BaseModel
...
@@ -90,7 +90,7 @@ class FApplyForFee extends BaseModel
return
$this
->
db_
return
$this
->
db_
->
field
(
$field
)
->
field
(
$field
)
->
alias
(
"a"
)
->
alias
(
"a"
)
->
join
(
"
f_apply_for_fe
e b"
,
"a.store_id = b.id"
,
"left"
)
->
join
(
"
a_stor
e b"
,
"a.store_id = b.id"
,
"left"
)
->
where
(
$params
)
->
where
(
$params
)
->
select
();
->
select
();
}
}
...
...
application/model/FOffice.php
View file @
aeda6327
...
@@ -35,6 +35,9 @@ class FOffice extends BaseModel
...
@@ -35,6 +35,9 @@ class FOffice extends BaseModel
* @param $field
* @param $field
* @param $params
* @param $params
* @return array|false|\PDOStatement|string|Model
* @return array|false|\PDOStatement|string|Model
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
*/
public
function
findByOne
(
$field
,
$params
)
{
public
function
findByOne
(
$field
,
$params
)
{
$params
[
"is_del"
]
=
0
;
$params
[
"is_del"
]
=
0
;
...
@@ -46,12 +49,15 @@ class FOffice extends BaseModel
...
@@ -46,12 +49,15 @@ class FOffice extends BaseModel
return
$result
;
return
$result
;
}
}
/**查询数据
/**
* 查询数据
* @param $field
* @param $field
* @param $params
* @param $params
* @param $pageNo
* @param $pageSize
* @return false|\PDOStatement|string|\think\Collection
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
*/
public
function
getOffice
(
$field
,
$params
,
$pageNo
,
$pageSize
)
public
function
getOffice
(
$field
,
$params
,
$pageNo
,
$pageSize
)
{
{
...
@@ -65,6 +71,11 @@ class FOffice extends BaseModel
...
@@ -65,6 +71,11 @@ class FOffice extends BaseModel
return
$result
;
return
$result
;
}
}
/**
* @param $field
* @param $params
* @return int|string
*/
public
function
getOfficeTotal
(
$field
,
$params
)
public
function
getOfficeTotal
(
$field
,
$params
)
{
{
$params
[
'is_del'
]
=
0
;
$params
[
'is_del'
]
=
0
;
...
@@ -75,10 +86,11 @@ class FOffice extends BaseModel
...
@@ -75,10 +86,11 @@ class FOffice extends BaseModel
return
$result
;
return
$result
;
}
}
/**
/**更新数据
* 更新数据
* @param $params
* @param $params
* @return int|string
* @return int|string
* @throws \think\Exception
* @throws \think\exception\PDOException
*/
*/
public
function
updateOffice
(
$params
)
public
function
updateOffice
(
$params
)
{
{
...
...
application/model/FStoreCostExt.php
View file @
aeda6327
...
@@ -16,6 +16,18 @@ class FStoreCostExt extends BaseModel
...
@@ -16,6 +16,18 @@ class FStoreCostExt extends BaseModel
$this
->
db_
=
Db
::
name
(
$this
->
table
);
$this
->
db_
=
Db
::
name
(
$this
->
table
);
}
}
public
function
addCostExt
(
$params
)
{
Db
::
startTrans
();
try
{
$this
->
db_
->
insertAll
(
$params
);
Db
::
commit
();
return
1
;
}
catch
(
\Exception
$e
)
{
Db
::
rollback
();
return
0
;
}
}
/**
/**
* 查询数据
* 查询数据
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment