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
bff1e606
Commit
bff1e606
authored
Aug 12, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
1e97a962
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
20 deletions
+48
-20
DailyPaperService.php
application/api_broker/service/DailyPaperService.php
+3
-3
DailyUncommitted.php
application/index/controller/DailyUncommitted.php
+2
-17
DailyUncommittedService.php
application/index/service/DailyUncommittedService.php
+43
-0
No files found.
application/api_broker/service/DailyPaperService.php
View file @
bff1e606
...
...
@@ -4,7 +4,7 @@ namespace app\api_broker\service;
use
app\api_broker\controller\Agent
;
use
app\api_broker\service\VerifyService
;
use
app\index\
controller\DailyUncommitted
;
use
app\index\
service\DailyUncommittedService
;
use
app\model\AAgents
;
use
app\model\AStore
;
use
app\model\GHouses
;
...
...
@@ -638,8 +638,8 @@ class DailyPaperService
$is_ok
=
$this
->
oDailyModel
->
addDaily
(
$params
);
if
(
$is_ok
>
0
)
{
//更新财务日报未提交记录表数据
/* $c_daily_uncommitted = new DailyUncommitted
();
$
c_daily_uncommitted->updateUncommittedList($agent_info[0]["store_id"],$daily_date);*/
$s_daily_uncommitted
=
new
DailyUncommittedService
();
$
s_daily_uncommitted
->
updateUncommittedList
(
$agent_info
[
0
][
"store_id"
],
$daily_date
);
return
[
"code"
=>
200
,
"data"
=>
null
];
}
else
{
return
[
"code"
=>
101
,
"msg"
=>
"审核异常"
];
...
...
application/index/controller/DailyUncommitted.php
View file @
bff1e606
...
...
@@ -53,22 +53,6 @@ class DailyUncommitted extends Basic
return
$this
->
response
(
"200"
,
"成功"
,
$data
);
}
/**
*
* @param $store_id
* @param $time
* @return bool
*/
public
function
updateUncommittedList
(
$store_id
,
$time
)
{
$params_d
=
[];
$params_d
[
'store_id'
]
=
$store_id
;
$params_d
[
'daily_date'
]
=
$time
;
$result
=
$this
->
m_daily_uncommitted
->
getDailyUncommitted
(
'id'
,
$params_d
);
if
(
$result
){
$this
->
m_daily_uncommitted
->
updateDailyUncommitted
([
'id'
=>
$result
[
'id'
]],[
'status'
=>
1
]);
}
return
true
;
}
}
\ No newline at end of file
application/index/service/DailyUncommittedService.php
0 → 100644
View file @
bff1e606
<?php
/**
* Created by PhpStorm.
* User: zhuwei
* Date: 2019-08-12
* Time: 17:53:36
*/
namespace
app\index\service
;
use
app\model\ODailyUncommittedModel
;
class
DailyUncommittedService
{
protected
$m_daily_uncommitted
;
public
function
__construct
()
{
$this
->
m_daily_uncommitted
=
new
ODailyUncommittedModel
();
}
/**
* 更新财务日报未提交记录表数据
* @param $store_id
* @param $time
* @return bool
*/
public
function
updateUncommittedList
(
$store_id
,
$time
)
{
$params_d
=
[];
$params_d
[
'store_id'
]
=
$store_id
;
$params_d
[
'daily_date'
]
=
$time
;
$result
=
$this
->
m_daily_uncommitted
->
getDailyUncommitted
(
'id'
,
$params_d
);
if
(
$result
){
$this
->
m_daily_uncommitted
->
updateDailyUncommitted
([
'id'
=>
$result
[
'id'
]],[
'status'
=>
1
]);
}
return
true
;
}
}
\ No newline at end of file
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