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
51b1dfe1
Commit
51b1dfe1
authored
Aug 05, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
案场权限人
parent
1cc71a60
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
9 deletions
+35
-9
Shop.php
application/api_broker/controller/Shop.php
+5
-2
ReceiptOperatingRecords.php
application/index/controller/ReceiptOperatingRecords.php
+25
-0
GReceiptOperatingRecords.php
application/model/GReceiptOperatingRecords.php
+5
-7
No files found.
application/api_broker/controller/Shop.php
View file @
51b1dfe1
...
@@ -728,8 +728,6 @@ class Shop extends Basic
...
@@ -728,8 +728,6 @@ class Shop extends Basic
}
}
}
}
//独家方
// $result['exclusive_info'] = $this->getExclusiveInfo($result['id'], 3);
//案场权限人
//案场权限人
$result
[
'stronghold_info'
]
=
$this
->
getExclusiveInfo
(
$result
[
'id'
]);
$result
[
'stronghold_info'
]
=
$this
->
getExclusiveInfo
(
$result
[
'id'
]);
...
@@ -737,6 +735,11 @@ class Shop extends Basic
...
@@ -737,6 +735,11 @@ class Shop extends Basic
return
$this
->
response
(
"200"
,
'request success'
,
$result
);
return
$this
->
response
(
"200"
,
'request success'
,
$result
);
}
}
/**
* 案场权限人
* @param $house_id
* @return null|string
*/
public
function
getExclusiveInfo
(
$house_id
)
public
function
getExclusiveInfo
(
$house_id
)
{
{
// $m_agent_house = new GHousesToAgents();
// $m_agent_house = new GHousesToAgents();
...
...
application/index/controller/ReceiptOperatingRecords.php
View file @
51b1dfe1
...
@@ -19,6 +19,31 @@ class ReceiptOperatingRecords extends Basic
...
@@ -19,6 +19,31 @@ class ReceiptOperatingRecords extends Basic
$this
->
m_receipt_operating_records
=
new
GReceiptOperatingRecords
();
$this
->
m_receipt_operating_records
=
new
GReceiptOperatingRecords
();
}
}
/**
* 新增记录
* @param $agents_id
* @param $type
* @param $remark
* @param $house_id
* @return bool
*/
public
function
addOperating
(
$agents_id
,
$type
,
$remark
,
$house_id
)
{
$data
[
"agents_id"
]
=
$agents_id
;
$data
[
"type"
]
=
$type
;
$data
[
"remark"
]
=
$remark
;
$data
[
"house_id"
]
=
$house_id
;
$result
=
$this
->
m_receipt_operating_records
->
saveOperating
(
$data
);
//int(1)
if
(
$result
)
{
return
true
;
}
else
{
return
false
;
}
}
/**
/**
* 收款操作记录
* 收款操作记录
...
...
application/model/GReceiptOperatingRecords.php
View file @
51b1dfe1
...
@@ -17,13 +17,11 @@ class GReceiptOperatingRecords extends Model
...
@@ -17,13 +17,11 @@ class GReceiptOperatingRecords extends Model
$this
->
db_
=
Db
::
name
(
$this
->
table
);
$this
->
db_
=
Db
::
name
(
$this
->
table
);
}
}
// public function saveOperating($data) {
public
function
saveOperating
(
$data
)
{
// $time = date("Y-m-d H:i:s", time());
$time
=
date
(
"Y-m-d H:i:s"
,
time
());
// $data['create_time'] = $time;
$data
[
'create_time'
]
=
$time
;
// $data['update_time'] = $time;
return
$this
->
db_
->
insert
(
$data
);
// $data['is_del'] = 0;
}
// return $this->db_ ->insert($data);
// }
/**
/**
...
...
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