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
5a1c9757
Commit
5a1c9757
authored
Jun 03, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
财务日报
parent
53f179ef
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
9 deletions
+21
-9
DailyPaperService.php
application/api_broker/service/DailyPaperService.php
+0
-0
DailyPaper.php
application/index/controller/DailyPaper.php
+4
-4
OfficeGRoom.php
application/model/OfficeGRoom.php
+12
-0
OfficeOPayLogModel.php
application/model/OfficeOPayLogModel.php
+5
-5
No files found.
application/api_broker/service/DailyPaperService.php
View file @
5a1c9757
This diff is collapsed.
Click to expand it.
application/index/controller/DailyPaper.php
View file @
5a1c9757
...
...
@@ -36,12 +36,12 @@ class DailyPaper extends Basic
{
header
(
'Access-Control-Allow-Origin:*'
);
$params
=
$this
->
params
;
/*
$params = array(
"store_id" =>
73
0,//门店id
$params
=
array
(
"store_id"
=>
0
,
//门店id
"is_store"
=>
0
,
//身份是否是店长,财务显示不一样 0店长 1财务
"daily_data" => "201
8-12-18
"
"daily_data"
=>
"201
9-06-03
"
);
$this->userId =
5775;*/
$this
->
userId
=
1
;
if
(
!
isset
(
$params
[
"store_id"
])
||
!
isset
(
$params
[
"is_store"
])
||
!
isset
(
$params
[
"daily_data"
]))
{
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
...
...
application/model/OfficeGRoom.php
View file @
5a1c9757
...
...
@@ -247,6 +247,18 @@ class OfficeGRoom extends BaseModel
return
$result
;
}
public
function
getRoomInfo
(
$field
,
$params
)
{
$result
=
Db
::
table
(
$this
->
table
)
->
field
(
$field
)
->
alias
(
"a"
)
->
join
(
'office_g_building b'
,
'a.building_id = b.id'
,
'left'
)
->
where
(
$params
)
->
select
();
return
$result
;
}
/**
* @param $page_no
* @param $page_size
...
...
application/model/OfficeOPayLogModel.php
View file @
5a1c9757
...
...
@@ -437,10 +437,10 @@ class OfficeOPayLogModel extends Model
{
return
$this
->
db_
->
field
(
$filed
)
->
alias
(
"a"
)
->
join
(
"o_order b"
,
"a.order_id = b.id"
,
"left"
)
->
join
(
"o
ffice_o
_order b"
,
"a.order_id = b.id"
,
"left"
)
// ->join("o_bargain c", "c.order_id = b.id", "left")
->
join
(
"o_bargain c"
,
"c.id = a.bargain_id"
,
"left"
)
->
join
(
"o_report d"
,
"a.report_id = d.id"
,
"left"
)
->
join
(
"o
ffice_o
_bargain c"
,
"c.id = a.bargain_id"
,
"left"
)
->
join
(
"o
ffice_o
_report d"
,
"a.report_id = d.id"
,
"left"
)
->
where
(
$params
)
->
group
(
"a.id"
)
->
select
();
...
...
@@ -476,8 +476,8 @@ class OfficeOPayLogModel extends Model
{
return
$this
->
db_
->
field
(
$filed
)
->
alias
(
"a"
)
->
join
(
"o_paylog_adjustment b"
,
"a.id = b.paylog_id"
,
"right"
)
->
join
(
"o_order c"
,
"a.order_id = c.id"
,
"left"
)
->
join
(
"o
ffice_o
_paylog_adjustment b"
,
"a.id = b.paylog_id"
,
"right"
)
->
join
(
"o
ffice_o
_order c"
,
"a.order_id = c.id"
,
"left"
)
->
where
(
$params
)
->
select
();
}
...
...
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