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
7ce2743e
Commit
7ce2743e
authored
Jan 17, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
is_check
parent
7040b124
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
+19
-2
DailyPaperService.php
application/api_broker/service/DailyPaperService.php
+16
-0
ODailyLog.php
application/model/ODailyLog.php
+3
-2
No files found.
application/api_broker/service/DailyPaperService.php
View file @
7ce2743e
...
@@ -84,6 +84,7 @@ class DailyPaperService
...
@@ -84,6 +84,7 @@ class DailyPaperService
//todo 直接返回数据,没提交的没有财务审核无需向后走
//todo 直接返回数据,没提交的没有财务审核无需向后走
//todo 统计各金额
//todo 统计各金额
$result
[
"total_info"
]
=
$this
->
getTotal
(
$store_id
,
$daily_data
);
$result
[
"total_info"
]
=
$this
->
getTotal
(
$store_id
,
$daily_data
);
$result
[
'is_check'
]
=
$this
->
isCheck
(
$daily_info
[
0
][
"id"
]);
return
[
"code"
=>
200
,
"data"
=>
$result
];
return
[
"code"
=>
200
,
"data"
=>
$result
];
}
}
break
;
break
;
...
@@ -634,5 +635,19 @@ class DailyPaperService
...
@@ -634,5 +635,19 @@ class DailyPaperService
return
$oImgModel
->
getImgList
(
$params
);
return
$oImgModel
->
getImgList
(
$params
);
}
}
/**
* 检查是否审核
*
* @param $daily_id
* @return int
*/
public
function
isCheck
(
$daily_id
)
{
$where
[
'daily_id'
]
=
$daily_id
;
$where
[
'is_del'
]
=
0
;
$num
=
$this
->
oDailyLogModel
->
getTotal
(
$where
);
$result
=
$num
>
0
?
1
:
0
;
return
$result
;
}
}
}
\ No newline at end of file
application/model/ODailyLog.php
View file @
7ce2743e
...
@@ -12,13 +12,14 @@ use think\Model;
...
@@ -12,13 +12,14 @@ use think\Model;
* Time : 2:36 PM
* Time : 2:36 PM
* Intro:
* Intro:
*/
*/
class
ODailyLog
extends
Model
class
ODailyLog
extends
Base
Model
{
{
protected
$table
=
"o_daily_log"
;
protected
$table
=
"o_daily_log"
;
private
$db_
;
private
$db_
;
public
function
__construct
()
public
function
__construct
(
$data
=
[]
)
{
{
parent
::
__construct
(
$data
);
$this
->
db_
=
Db
::
name
(
$this
->
table
);
$this
->
db_
=
Db
::
name
(
$this
->
table
);
}
}
...
...
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