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
cd86bb1d
Commit
cd86bb1d
authored
Aug 06, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新财务日报未提交记录表数据
parent
46a75cf9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
0 deletions
+30
-0
DailyPaperService.php
application/api_broker/service/DailyPaperService.php
+4
-0
DailyUncommitted.php
application/index/controller/DailyUncommitted.php
+19
-0
ODailyUncommittedModel.php
application/model/ODailyUncommittedModel.php
+7
-0
No files found.
application/api_broker/service/DailyPaperService.php
View file @
cd86bb1d
...
@@ -4,6 +4,7 @@ namespace app\api_broker\service;
...
@@ -4,6 +4,7 @@ namespace app\api_broker\service;
use
app\api_broker\controller\Agent
;
use
app\api_broker\controller\Agent
;
use
app\api_broker\service\VerifyService
;
use
app\api_broker\service\VerifyService
;
use
app\index\controller\DailyUncommitted
;
use
app\model\AAgents
;
use
app\model\AAgents
;
use
app\model\AStore
;
use
app\model\AStore
;
use
app\model\GHouses
;
use
app\model\GHouses
;
...
@@ -636,6 +637,9 @@ class DailyPaperService
...
@@ -636,6 +637,9 @@ class DailyPaperService
$tenpay_2
,
$alipay_2
,
$site_id
,
$bank_card
,
$bank_card_yun
,
$bank_card_lin
,
$bank_card_new
);
$tenpay_2
,
$alipay_2
,
$site_id
,
$bank_card
,
$bank_card_yun
,
$bank_card_lin
,
$bank_card_new
);
$is_ok
=
$this
->
oDailyModel
->
addDaily
(
$params
);
$is_ok
=
$this
->
oDailyModel
->
addDaily
(
$params
);
if
(
$is_ok
>
0
)
{
if
(
$is_ok
>
0
)
{
//更新财务日报未提交记录表数据
$c_daily_uncommitted
=
new
DailyUncommitted
();
$c_daily_uncommitted
->
updateUncommittedList
(
$agent_info
[
0
][
"store_id"
],
$daily_date
);
return
[
"code"
=>
200
,
"data"
=>
null
];
return
[
"code"
=>
200
,
"data"
=>
null
];
}
else
{
}
else
{
return
[
"code"
=>
101
,
"msg"
=>
"审核异常"
];
return
[
"code"
=>
101
,
"msg"
=>
"审核异常"
];
...
...
application/index/controller/DailyUncommitted.php
View file @
cd86bb1d
...
@@ -129,4 +129,22 @@ class DailyUncommitted extends Basic
...
@@ -129,4 +129,22 @@ class DailyUncommitted extends Basic
return
$this
->
response
(
"200"
,
"成功"
,
$data
);
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/model/ODailyUncommittedModel.php
View file @
cd86bb1d
...
@@ -79,5 +79,12 @@ class ODailyUncommittedModel extends Model
...
@@ -79,5 +79,12 @@ class ODailyUncommittedModel extends Model
return
$result
;
return
$result
;
}
}
public
function
updateDailyUncommitted
(
$where
,
$params
)
{
$result
=
$this
->
db_
->
where
(
$where
)
->
update
(
$params
);
//dump($this->getLastSql());
return
$result
;
}
}
}
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