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
191d283d
Commit
191d283d
authored
May 16, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
开盘申请
parent
bce9c1ac
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
132 additions
and
10 deletions
+132
-10
PayLogOpen.php
application/api_broker/controller/PayLogOpen.php
+59
-0
PayLogOpenService.php
application/api_broker/service/PayLogOpenService.php
+18
-0
PayLogOpenValidate.php
application/api_broker/validate/PayLogOpenValidate.php
+45
-0
Finance.php
application/index/controller/Finance.php
+4
-4
PayOpenService.php
application/index/service/PayOpenService.php
+4
-4
OPayLogOpen.php
application/model/OPayLogOpen.php
+1
-1
OPayLogOpenLog.php
application/model/OPayLogOpenLog.php
+1
-1
No files found.
application/api_broker/controller/PayLogOpen.php
0 → 100644
View file @
191d283d
<?php
namespace
app\api_broker\controller
;
use
app\api_broker\extend\Basic
;
use
app\api_broker\service\PayLogOpenService
;
use
think\Request
;
/**
* Created by PhpStorm.
* User: zw
* Date: 2019/5/16
* Time: 15:47
* Intro: 开业
*/
class
PayLogOpen
extends
Basic
{
private
$service_
;
public
function
__construct
(
Request
$request
=
null
)
{
parent
::
__construct
(
$request
);
$this
->
service_
=
new
PayLogOpenService
();
}
public
function
applyForOpen
()
{
$params
=
$this
->
params
;
$params
=
array
(
"pay_log_id"
=>
1
,
"report_id"
=>
1
,
"bargain_id"
=>
1
,
"order_id"
=>
1
,
"agent_id"
=>
1
,
"house_id"
=>
1
,
"house_address"
=>
"123123"
,
);
$checkResult
=
$this
->
validate
(
$params
,
"PayLogOpenValidate.applyForOpen"
);
if
(
true
!==
$checkResult
)
{
return
$this
->
response
(
"101"
,
$checkResult
);
}
$pay_log_id
=
$params
[
"pay_log_id"
];
$report_id
=
$params
[
"report_id"
];
$bargain_id
=
$params
[
"bargain_id"
];
$agent_id
=
$params
[
"agent_id"
];
$house_id
=
$params
[
"house_id"
];
$house_address
=
$params
[
"house_address"
];
$return_id
=
$this
->
service_
->
addApplyForOpen
(
$pay_log_id
,
$report_id
,
$bargain_id
,
$agent_id
,
$house_id
,
$house_address
);
if
(
$return_id
>
0
)
{
return
$this
->
response
(
"200"
,
"success"
,
[
"id"
=>
$return_id
]);
}
else
{
return
$this
->
response
(
"101"
,
"save error"
);
}
}
}
\ No newline at end of file
application/api_broker/service/PayLogOpenService.php
0 → 100644
View file @
191d283d
<?php
namespace
app\api_broker\service
;
use
app\model\OPayLogOpen
;
/**
* Created by PhpStorm.
* User: zw
* Date: 2019/5/16
* Time: 15:48
*/
class
PayLogOpenService
{
private
$payLogOpenMode
;
public
function
__construct
()
{
$this
->
payLogOpenMode
=
new
OPayLogOpen
();
}
}
\ No newline at end of file
application/api_broker/validate/PayLogOpenValidate.php
0 → 100644
View file @
191d283d
<?php
namespace
app\api_broker\validate
;
use
think\Validate
;
/**
* Created by PhpStorm.
* User: zw
* Date: 2019/5/16
* Time: 15:58
*/
class
PayLogOpenValidate
extends
Validate
{
protected
$rule
=
[
'pay_log_id'
=>
'require|number'
,
'report_id'
=>
'require|number'
,
'bargain_id'
=>
'require|number'
,
'order_id'
=>
'require|number'
,
'agent_id'
=>
'require|number'
,
'house_id'
=>
'require|number'
,
'house_address'
=>
'require'
,
];
protected
$message
=
[
'pay_log_id.require'
=>
'收款id为必填字段'
,
'pay_log_id.number'
=>
'收款id只能为数字'
,
'report_id.require'
=>
'报备id不能为空'
,
'report_id.number'
=>
'报备id只能为数字'
,
'bargain_id.require'
=>
'成交报告id不能为空'
,
'bargain_id.number'
=>
'成交报告id只能是数字'
,
'order_id.require'
=>
'订单id不能为空'
,
'order_id.number'
=>
'订单id只能是数字'
,
'agent_id.require'
=>
'经纪人为必填字段'
,
'agent_id.number'
=>
'经纪人id只能为数字'
,
'house_id.require'
=>
'楼盘id不能为空'
,
'house_id.number'
=>
'楼盘id只能是数字'
,
'house_address.require'
=>
'楼盘地址不能为空'
,
];
protected
$scene
=
[
'applyForOpen'
=>
[
'pay_log_id'
,
'report_id'
,
'bargain_id'
,
'order_id'
,
'agent_id'
,
'house_id'
,
'house_address'
],
];
}
\ No newline at end of file
application/index/controller/Finance.php
View file @
191d283d
...
...
@@ -27,8 +27,8 @@ use app\model\ODaily;
use
app\model\OImg
;
use
app\model\OMarchInModel
;
use
app\model\OPayLogAdjustment
;
use
app\model\OPayOpen
;
use
app\model\OPayOpenLog
;
use
app\model\OPay
Log
Open
;
use
app\model\OPay
Log
OpenLog
;
use
app\model\OrderModel
;
use
app\model\ORealIncome
;
use
app\model\ORefundLogModel
;
...
...
@@ -5082,8 +5082,8 @@ class Finance extends Basic
$where
[
'a.is_del'
]
=
0
;
$fields
=
'a.id,a.create_time,a.agent_id,a.pay_log_id,a.bargain_id,a.order_id,a.house_id,a.house_address,a.status,b.create_time as disc_time,max(b.id) as two_id'
;
$m_pay_open
=
new
OPayOpen
();
$m_pay_open_log
=
new
OPayOpenLog
();
$m_pay_open
=
new
OPay
Log
Open
();
$m_pay_open_log
=
new
OPay
Log
OpenLog
();
$redis_service
=
new
RedisCacheService
();
$list
=
$m_pay_open
->
getListCheck
(
$pageNo
,
$pageSize
,
'a.id desc'
,
$fields
,
$where
);
...
...
application/index/service/PayOpenService.php
View file @
191d283d
...
...
@@ -4,8 +4,8 @@
namespace
app\index\service
;
use
app\model\OPayOpen
;
use
app\model\OPayOpenLog
;
use
app\model\OPay
Log
Open
;
use
app\model\OPay
Log
OpenLog
;
class
PayOpenService
{
...
...
@@ -14,8 +14,8 @@ class PayOpenService
public
function
__construct
()
{
$this
->
m_open
=
new
OPayOpen
();
$this
->
m_open_log
=
new
OPayOpenLog
();
$this
->
m_open
=
new
OPay
Log
Open
();
$this
->
m_open_log
=
new
OPay
Log
OpenLog
();
}
public
function
getList
()
{
...
...
application/model/OPayOpen.php
→
application/model/OPay
Log
Open.php
View file @
191d283d
...
...
@@ -6,7 +6,7 @@ namespace app\model;
use
think\Db
;
class
OPayOpen
extends
BaseModel
class
OPay
Log
Open
extends
BaseModel
{
protected
$table
=
"o_paylog_open"
;
private
$db_
;
...
...
application/model/OPayOpenLog.php
→
application/model/OPay
Log
OpenLog.php
View file @
191d283d
...
...
@@ -6,7 +6,7 @@ namespace app\model;
use
think\Db
;
class
OPayOpenLog
extends
BaseModel
class
OPay
Log
OpenLog
extends
BaseModel
{
protected
$table
=
"o_paylog_open_log"
;
private
$db_
;
...
...
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