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
4c0d2186
Commit
4c0d2186
authored
Jul 04, 2018
by
hujun
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/0702-v.2.2.0' into 0702-v.2.2.0
parents
d699475a
de5ef022
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
81 additions
and
4 deletions
+81
-4
OrderLog.php
application/api_broker/controller/OrderLog.php
+4
-2
OrderLogService.php
application/api_broker/service/OrderLogService.php
+2
-0
Collection.php
application/index/controller/Collection.php
+68
-0
OImg.php
application/model/OImg.php
+3
-2
route.php
application/route.php
+4
-0
No files found.
application/api_broker/controller/OrderLog.php
View file @
4c0d2186
...
...
@@ -13,6 +13,7 @@ use app\model\OBargainModel;
use
app\model\OMarchInModel
;
use
app\model\ORefundModel
;
use
think\Exception
;
use
Think\Log
;
/**
* Created by PhpStorm.
...
...
@@ -115,8 +116,9 @@ class OrderLog extends Basic
$params
[
"collecting_bill"
]
=
json_decode
(
$params
[
"collecting_bill"
],
true
);
$remark
=
isset
(
$params
[
"remark"
])
?
$params
[
"remark"
]
:
""
;
$transfer_img
=
isset
(
$params
[
"transfer_img"
])
?
$params
[
"transfer_img"
]
:
""
;
$source
=
$params
[
"source"
]
?
$params
[
"source"
]
:
0
;
$transfer_img
=
isset
(
$params
[
"transfer_img"
])
?
json_decode
(
$params
[
"transfer_img"
]
,
true
)
:
""
;
Log
::
record
(
"********************transfer_img**"
.
json_encode
(
$transfer_img
));
$source
=
isset
(
$params
[
"source"
])
?
$params
[
"source"
]
:
0
;
$is_ok
=
$this
->
service_
->
addCollectingBill
(
$params
[
"agent_id"
],
$params
[
"agent_name"
],
$params
[
"report_id"
],
$params
[
"order_id"
],
$params
[
"order_no"
],
$params
[
"collecting_bill"
],
$params
[
"house_number"
],
$params
[
"industry_type"
],
$remark
,
$transfer_img
,
$source
);
...
...
application/api_broker/service/OrderLogService.php
View file @
4c0d2186
...
...
@@ -80,6 +80,7 @@ class OrderLogService
//保存图片
$oImgModel
=
new
OImg
();
$oImgModel
->
addImgAll
(
$father_id
,
2
,
$transfer_img
);
$pushMarchIn
=
new
PushMessageService
(
$params
[
"report_id"
],
2
);
$pushMarchIn
->
pushMarchInMessage
(
$params
[
"report_id"
],
2
);
//推送
}
...
...
@@ -285,6 +286,7 @@ class OrderLogService
$field_pay_log
=
"id,order_no,order_id,agent_id,agent_name,type,pay_type,money,house_number,industry_type,
remark,transfer_img,real_money,source,create_time"
;
$payLogData
=
$oPayLogModel
->
selectPayLogByOrderNo
(
$field_pay_log
,
[
"order_id"
=>
$order_id
]);
if
(
count
(
$payLogData
)
>
0
)
{
foreach
(
$payLogData
as
$k
=>
$v
)
{
$v
[
"step_name"
]
=
"pay_log"
;
...
...
application/index/controller/Collection.php
View file @
4c0d2186
...
...
@@ -11,6 +11,7 @@ namespace app\index\controller;
use
app\index\extend\Basic
;
use
app\index\untils\ExportExcelUntil
;
use
app\model\OImg
;
use
app\model\OPayLogModel
;
class
Collection
extends
Basic
...
...
@@ -135,6 +136,7 @@ class Collection extends Basic
return
view
(
'getCollection'
);
}
}
public
function
addRealMoney
(){
$params
=
$this
->
params
;
/* $params = array(
...
...
@@ -158,4 +160,69 @@ class Collection extends Basic
}
}
/**
* 收款列表记录上传图片
* 朱伟 2018-07-04
*/
public
function
addReceiptImg
(){
$params
=
$this
->
params
;
/*$params = array(
"img_id" => 1,
"img_name" => 123,
);*/
if
(
!
isset
(
$params
[
"img_id"
])){
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
if
(
!
isset
(
$params
[
"img_name"
])){
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
$time
=
date
(
"Y-m-d H:i:s"
,
time
());
$save_data
[
"img_id"
]
=
$params
[
"img_id"
];
//id根据img_type区分是收款还是进场还是其他'
$save_data
[
"img_type"
]
=
2
;
//图片类型:1进场,2收款
$save_data
[
"img_name"
]
=
$params
[
"img_name"
];
//图片名称
$save_data
[
"img_status"
]
=
0
;
//删除状态 0正常 1删除
$save_data
[
"update_time"
]
=
$time
;
//更新时间
$save_data
[
"create_time"
]
=
$time
;
//创建时间
$order
=
new
OImg
();
$res
=
$order
->
addImgOnce
(
$save_data
);
if
(
$res
){
return
$this
->
response
(
"200"
,
"成功"
);
}
else
{
return
$this
->
response
(
"101"
,
"失败"
);
}
}
/**
* 收款列表-删除上传图片
* 朱伟 2018-07-04
*/
public
function
deleteReceiptImg
(){
$params
=
$this
->
params
;
/*$params = array(
"id" => 3,
"img_name" => 123,
);*/
if
(
!
isset
(
$params
[
"id"
])){
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
$time
=
date
(
"Y-m-d H:i:s"
,
time
());
$save_data
[
"id"
]
=
$params
[
"id"
];
//id根据img_type区分是收款还是进场还是其他'
$save_data
[
"img_status"
]
=
1
;
//删除状态 0正常 1删除
$save_data
[
"update_time"
]
=
$time
;
//更新时间
$order
=
new
OImg
();
$res
=
$order
->
updateImgStatus
(
$save_data
);
if
(
$res
){
return
$this
->
response
(
"200"
,
"成功"
);
}
else
{
return
$this
->
response
(
"101"
,
"失败"
);
}
}
}
\ No newline at end of file
application/model/OImg.php
View file @
4c0d2186
...
...
@@ -11,10 +11,11 @@ namespace app\model;
*/
use
think\Db
;
use
think\Exception
;
use
Think\Log
;
class
OImg
extends
BaseModel
{
protected
$table
=
"o_img"
;
protected
$table
=
"o_img
s
"
;
private
$db_
;
public
function
__construct
(
$data
=
[])
...
...
@@ -53,7 +54,7 @@ class OImg extends BaseModel
* @return int|string
* @throws Exception xx
*/
public
function
addImgAll
(
int
$img_id
,
int
$img_type
,
array
$params
)
:
int
public
function
addImgAll
(
int
$img_id
,
int
$img_type
,
array
$params
)
:
int
{
$imgBin
=
[];
foreach
(
$params
as
$item
)
{
...
...
application/route.php
View file @
4c0d2186
...
...
@@ -232,6 +232,10 @@ Route::group('index', [
'carryOut'
=>
[
'index/Supervise/carryOut'
,
[
'method'
=>
'get'
]
],
//监督执行
'toReportListOne'
=>
[
'index/Finance/toReportListOne'
,
[
'method'
=>
'POST'
]
],
//回到一级审核
'checkOver'
=>
[
'index/Finance/checkOver'
,
[
'method'
=>
'POST'
]
],
//财务结单
'addReceiptImg'
=>
[
'index/Collection/addReceiptImg'
,
[
'method'
=>
'post|get'
]
],
//收款图片信息保存
'deleteReceiptImg'
=>
[
'index/Collection/deleteReceiptImg'
,
[
'method'
=>
'post|get'
]
],
//删除收款图片
'getTaxesById'
=>
[
'index/Finance/getTaxesById'
,
[
'method'
=>
'POST|GET'
]
],
//财务结单
'financeUpdateLog'
=>
[
'index/Finance/financeUpdateLog'
,
[
'method'
=>
'POST|GET'
]
],
//财务结单
...
...
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