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
465b2ff2
Commit
465b2ff2
authored
Sep 19, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取实收日期
parent
04939541
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
Finance.php
application/index/controller/Finance.php
+24
-0
route.php
application/route.php
+1
-0
No files found.
application/index/controller/Finance.php
View file @
465b2ff2
...
...
@@ -1694,4 +1694,28 @@ class Finance extends Basic
$date
=
date
(
'Y-m-d'
,
strtotime
(
$create_time
));
$sum
->
updateTotalByAgentId
(
$id
,
$store_id
,
$district_id
,
$date
);
//被修改的人
}
/**
* 获取实收日期
*
* @return \think\Response
*/
public
function
getRealIncome
()
{
if
(
empty
(
$this
->
params
[
'bargain_id'
]))
{
return
$this
->
response
(
101
,
'参数错误'
);
}
$data
=
[];
try
{
$code
=
200
;
$msg
=
''
;
$m_real_income
=
new
ORealIncome
();
$data
=
$m_real_income
->
getBargainTaxes
(
$this
->
params
[
'bargain_id'
],
'id,income_time,money'
);
}
catch
(
\Exception
$e
)
{
$code
=
101
;
$msg
=
$e
->
getMessage
();
}
return
$this
->
response
(
$code
,
$msg
,
$data
);
}
}
application/route.php
View file @
465b2ff2
...
...
@@ -265,6 +265,7 @@ Route::group('index', [
'getTaxesById'
=>
[
'index/Finance/getTaxesById'
,
[
'method'
=>
'POST|GET'
]
],
//财务结单
'financeUpdateLog'
=>
[
'index/Finance/financeUpdateLog'
,
[
'method'
=>
'POST|GET'
]
],
//财务结单
'getRealIncome'
=>
[
'index/Finance/getRealIncome'
,
[
'method'
=>
'GET'
]
],
//获取实收日期
'noticeIndex'
=>
[
'index/notice/index'
,
[
'method'
=>
'GET'
]
],
//公告列表
'getNoticeInfo'
=>
[
'index/notice/getNoticeInfo'
,
[
'method'
=>
'GET'
]
],
//公告详情
'delNotice'
=>
[
'index/notice/delNotice'
,
[
'method'
=>
'POST'
]
],
//删除公告
...
...
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