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
1884bd6d
Commit
1884bd6d
authored
Apr 08, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
恢复成交报告统计
parent
bdca07e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
Finance.php
application/index/controller/Finance.php
+17
-17
No files found.
application/index/controller/Finance.php
View file @
1884bd6d
...
...
@@ -4601,26 +4601,26 @@ class Finance extends Basic
if
(
empty
(
$agent_arr
))
{
return
$this
->
response
(
$code
,
'没有该记录'
);
}
foreach
(
$agent_arr
as
$k
=>
$v
)
{
try
{
$this
->
totalOfficialReceipts
(
$v
[
'agent_id'
],
$v
[
'district_id'
],
$v
[
'store_id'
],
$v
[
'create_time'
]);
$code
=
200
;
}
catch
(
\Exception
$e
)
{
$msg
=
'恢复失败:'
.
$e
->
getMessage
();
break
;
}
}
if
(
$code
==
200
)
{
$data
[
'status'
]
=
10
;
$data
[
'audit_level'
]
=
0
;
$where_2
[]
=
[
'EXP'
,
'id ='
.
$this
->
params
[
'id'
]
.
' OR father_id='
.
$this
->
params
[
'id'
]];
$is_ok
=
$this
->
m_bargain
->
updateBargainByWhere
(
$data
,
$where_2
);
if
(
!
$is_ok
)
{
$code
=
101
;
$msg
=
'恢复成交报告状态失败'
;
$data
[
'status'
]
=
10
;
$data
[
'audit_level'
]
=
0
;
$where_2
[]
=
[
'EXP'
,
'id ='
.
$this
->
params
[
'id'
]
.
' OR father_id='
.
$this
->
params
[
'id'
]];
$is_ok
=
$this
->
m_bargain
->
updateBargainByWhere
(
$data
,
$where_2
);
if
(
$is_ok
)
{
foreach
(
$agent_arr
as
$k
=>
$v
)
{
try
{
$this
->
totalOfficialReceipts
(
$v
[
'agent_id'
],
$v
[
'district_id'
],
$v
[
'store_id'
],
$v
[
'create_time'
]);
$code
=
200
;
}
catch
(
\Exception
$e
)
{
$msg
=
'恢复失败:'
.
$e
->
getMessage
();
break
;
}
}
}
else
{
$code
=
101
;
$msg
=
'恢复成交报告状态失败'
;
}
return
$this
->
response
(
$code
,
$msg
);
}
...
...
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