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
2148152a
Commit
2148152a
authored
Jan 30, 2018
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报备
parent
8efb8c1b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
+13
-13
Report.php
application/api_broker/controller/Report.php
+3
-3
ReportService.php
application/api_broker/service/ReportService.php
+7
-7
reportModel.php
application/model/reportModel.php
+3
-3
No files found.
application/api_broker/controller/
FollowUp
.php
→
application/api_broker/controller/
Report
.php
View file @
2148152a
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
namespace
app\api_broker\controller
;
namespace
app\api_broker\controller
;
use
app\api_broker\extend\Basic
;
use
app\api_broker\extend\Basic
;
use
app\api_broker\service\
FollowUp
Service
;
use
app\api_broker\service\
Report
Service
;
/**
/**
* Created by PhpStorm.
* Created by PhpStorm.
...
@@ -12,14 +12,14 @@ use app\api_broker\service\FollowUpService;
...
@@ -12,14 +12,14 @@ use app\api_broker\service\FollowUpService;
* Time : 14:24
* Time : 14:24
* Intro:
* Intro:
*/
*/
class
FollowUp
extends
Basic
class
Report
extends
Basic
{
{
private
$service_
;
private
$service_
;
public
function
__construct
(
$request
=
null
)
public
function
__construct
(
$request
=
null
)
{
{
parent
::
__construct
(
$request
);
parent
::
__construct
(
$request
);
$this
->
service_
=
new
FollowUp
Service
();
$this
->
service_
=
new
Report
Service
();
}
}
...
...
application/api_broker/service/
FollowUp
Service.php
→
application/api_broker/service/
Report
Service.php
View file @
2148152a
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
namespace
app\api_broker\service
;
namespace
app\api_broker\service
;
use
app\model\OFollowUp
;
use
app\model\OrderModel
;
use
app\model\OrderModel
;
use
app\model\reportModel
;
/**
/**
* Created by PhpStorm.
* Created by PhpStorm.
...
@@ -12,15 +12,15 @@ use app\model\OrderModel;
...
@@ -12,15 +12,15 @@ use app\model\OrderModel;
* Time : 16:41
* Time : 16:41
* Intro:
* Intro:
*/
*/
class
FollowUp
Service
class
Report
Service
{
{
private
$
followUp
Model
;
private
$
report
Model
;
private
$orderModel
;
private
$orderModel
;
function
__construct
()
function
__construct
()
{
{
$this
->
followUpModel
=
new
OFollowUp
();
$this
->
reportModel
=
new
ReportModel
();
$this
->
orderModel
=
new
OrderModel
();
$this
->
orderModel
=
new
OrderModel
();
}
}
...
@@ -38,7 +38,7 @@ class FollowUpService
...
@@ -38,7 +38,7 @@ class FollowUpService
public
function
verifyReport
(
$agent_id
,
$store_id
,
$user_id
,
$house_ids
,
$vehicle
,
$intro
,
$predict_see_time
)
public
function
verifyReport
(
$agent_id
,
$store_id
,
$user_id
,
$house_ids
,
$vehicle
,
$intro
,
$predict_see_time
)
{
{
$id
=
$this
->
oFollowUp
Bin
(
$agent_id
,
$store_id
,
$user_id
,
$vehicle
,
$intro
,
$predict_see_time
);
$id
=
$this
->
report
Bin
(
$agent_id
,
$store_id
,
$user_id
,
$vehicle
,
$intro
,
$predict_see_time
);
if
(
$id
>
0
)
{
if
(
$id
>
0
)
{
$house_arr
=
explode
(
","
,
$house_ids
);
$house_arr
=
explode
(
","
,
$house_ids
);
...
@@ -75,7 +75,7 @@ class FollowUpService
...
@@ -75,7 +75,7 @@ class FollowUpService
* @param $predict_see_time
* @param $predict_see_time
* @return array
* @return array
*/
*/
private
function
oFollowUp
Bin
(
$report_agent_id
,
$report_store_id
,
$user_id
,
$vehicle
,
$intro
,
$predict_see_time
)
private
function
report
Bin
(
$report_agent_id
,
$report_store_id
,
$user_id
,
$vehicle
,
$intro
,
$predict_see_time
)
{
{
$param
[
"report_agent_id"
]
=
$report_agent_id
;
$param
[
"report_agent_id"
]
=
$report_agent_id
;
$param
[
"report_store_id"
]
=
$report_store_id
;
$param
[
"report_store_id"
]
=
$report_store_id
;
...
@@ -86,7 +86,7 @@ class FollowUpService
...
@@ -86,7 +86,7 @@ class FollowUpService
$param
[
"predict_see_time"
]
=
date
(
"Y-m-d H:i:s"
,
$predict_see_time
);
$param
[
"predict_see_time"
]
=
date
(
"Y-m-d H:i:s"
,
$predict_see_time
);
$param
[
"create_time"
]
=
date
(
"Y-m-d H:i:s"
,
time
());
$param
[
"create_time"
]
=
date
(
"Y-m-d H:i:s"
,
time
());
$param
[
"update_time"
]
=
date
(
"Y-m-d H:i:s"
,
time
());
$param
[
"update_time"
]
=
date
(
"Y-m-d H:i:s"
,
time
());
return
$this
->
followUpModel
->
addFollowUp
(
$param
);
return
$this
->
reportModel
->
addReport
(
$param
);
}
}
/**
/**
...
...
application/model/
OFollowUp
.php
→
application/model/
reportModel
.php
View file @
2148152a
...
@@ -14,10 +14,10 @@ use think\Model;
...
@@ -14,10 +14,10 @@ use think\Model;
use
think\helper\Time
;
use
think\helper\Time
;
use
think\Db
;
use
think\Db
;
class
OFollowUp
extends
Model
class
reportModel
extends
Model
{
{
// 设置当前模型对应的完整数据表名称
// 设置当前模型对应的完整数据表名称
protected
$table
=
'o_
follow_up
'
;
protected
$table
=
'o_
report
'
;
protected
$db
;
protected
$db
;
function
__construct
()
function
__construct
()
...
@@ -30,7 +30,7 @@ class OFollowUp extends Model
...
@@ -30,7 +30,7 @@ class OFollowUp extends Model
* @param $params
* @param $params
* @return array
* @return array
*/
*/
public
function
add
FollowUp
(
$params
)
public
function
add
Report
(
$params
)
{
{
Db
::
startTrans
();
Db
::
startTrans
();
try
{
try
{
...
...
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