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
3da4df5c
Commit
3da4df5c
authored
Jun 12, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
39c7a653
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
78 additions
and
0 deletions
+78
-0
DailyPaper.php
application/api_broker/controller/DailyPaper.php
+24
-0
DailyPaperService.php
application/api_broker/service/DailyPaperService.php
+13
-0
Finance.php
application/index/controller/Finance.php
+39
-0
route.php
application/route.php
+2
-0
No files found.
application/api_broker/controller/DailyPaper.php
View file @
3da4df5c
...
@@ -155,4 +155,27 @@ class DailyPaper extends Basic
...
@@ -155,4 +155,27 @@ class DailyPaper extends Basic
}
}
}
}
/**
* @return \think\Response
*/
public
function
getPayLogOfficeImg
()
{
header
(
'Access-Control-Allow-Origin:*'
);
$params
=
$this
->
params
;
/* $params = array(
"pay_log_id" => 1
);*/
if
(
!
isset
(
$params
[
"pay_log_id"
]))
{
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
$img_list
=
$this
->
service_
->
getOfficeImg
(
$params
[
"pay_log_id"
]);
if
(
count
(
$img_list
)
>
0
)
{
$result
[
"img_path"
]
=
CHAT_IMG_URL
;
$result
[
"img_info"
]
=
$img_list
;
return
$this
->
response
(
"200"
,
"success"
,
$result
);
}
else
{
return
$this
->
response
(
"200"
,
"request null"
);
}
}
}
}
\ No newline at end of file
application/api_broker/service/DailyPaperService.php
View file @
3da4df5c
...
@@ -13,6 +13,7 @@ use app\model\ODaily;
...
@@ -13,6 +13,7 @@ use app\model\ODaily;
use
app\model\ODailyLog
;
use
app\model\ODailyLog
;
use
app\model\OfficeGRoom
;
use
app\model\OfficeGRoom
;
use
app\model\OfficeOBargainModel
;
use
app\model\OfficeOBargainModel
;
use
app\model\OfficeOImg
;
use
app\model\OfficeOPayLogModel
;
use
app\model\OfficeOPayLogModel
;
use
app\model\OImg
;
use
app\model\OImg
;
use
app\model\OPayLogAdjustment
;
use
app\model\OPayLogAdjustment
;
...
@@ -829,6 +830,18 @@ class DailyPaperService
...
@@ -829,6 +830,18 @@ class DailyPaperService
return
$oImgModel
->
getImgList
(
$params
);
return
$oImgModel
->
getImgList
(
$params
);
}
}
/**
* @param $pay_log_id
* @return false|\PDOStatement|string|\think\Collection
*/
public
function
getOfficeImg
(
$pay_log_id
)
{
$oImgModel
=
new
OfficeOImg
();
$params
[
"img_id"
]
=
$pay_log_id
;
$params
[
"img_type"
]
=
2
;
return
$oImgModel
->
getImgList
(
$params
);
}
/**
/**
* 检查是否审核
* 检查是否审核
*
*
...
...
application/index/controller/Finance.php
View file @
3da4df5c
...
@@ -25,6 +25,7 @@ use app\model\GHousesToAgents;
...
@@ -25,6 +25,7 @@ use app\model\GHousesToAgents;
use
app\model\OBargainLogModel
;
use
app\model\OBargainLogModel
;
use
app\model\OBargainModel
;
use
app\model\OBargainModel
;
use
app\model\ODaily
;
use
app\model\ODaily
;
use
app\model\OfficeOImg
;
use
app\model\OImg
;
use
app\model\OImg
;
use
app\model\OMarchInModel
;
use
app\model\OMarchInModel
;
use
app\model\OPayLogAdjustment
;
use
app\model\OPayLogAdjustment
;
...
@@ -3564,6 +3565,44 @@ class Finance extends Basic
...
@@ -3564,6 +3565,44 @@ class Finance extends Basic
}
}
}
}
/**
* 收款列表记录上传图片
* 朱伟 2018-07-04
*/
public
function
addReceiptOfficeImg
(){
$params
=
$this
->
params
;
$result
=
0
;
/*$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"
,
"请求参数错误"
);
}
$order
=
new
OfficeOImg
();
foreach
(
explode
(
','
,
$params
[
"img_name"
])
as
$k
=>
$v
){
$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"
]
=
$v
;
//图片名称
$save_data
[
"img_status"
]
=
0
;
//删除状态 0正常 1删除
$save_data
[
"update_time"
]
=
$time
;
//更新时间
$save_data
[
"create_time"
]
=
$time
;
//创建时间
$result
=
$order
->
addImgOnce
(
$save_data
);
}
if
(
$result
){
return
$this
->
response
(
"200"
,
"成功"
);
}
else
{
return
$this
->
response
(
"101"
,
"失败"
);
}
}
/**
/**
* 收款列表-删除上传图片
* 收款列表-删除上传图片
* 朱伟 2018-07-04
* 朱伟 2018-07-04
...
...
application/route.php
View file @
3da4df5c
...
@@ -1042,6 +1042,8 @@ Route::group('office_index', [
...
@@ -1042,6 +1042,8 @@ Route::group('office_index', [
'del'
=>
[
'index/OfficeRoom/del'
,
[
'method'
=>
'POST'
]],
//设置无效房源
'del'
=>
[
'index/OfficeRoom/del'
,
[
'method'
=>
'POST'
]],
//设置无效房源
'isShow'
=>
[
'index/OfficeRoom/isShow'
,
[
'method'
=>
'POST'
]],
//是否对C端显示
'isShow'
=>
[
'index/OfficeRoom/isShow'
,
[
'method'
=>
'POST'
]],
//是否对C端显示
'followUpList'
=>
[
'index/OfficeRemark/followUpList'
,
[
'method'
=>
'POST|GET'
]],
'followUpList'
=>
[
'index/OfficeRemark/followUpList'
,
[
'method'
=>
'POST|GET'
]],
'addReceiptImg'
=>
[
'index/Finance/addReceiptOfficeImg'
,
[
'method'
=>
'post|get'
]],
//收款图片信息保存
'getPayLogImg'
=>
[
'index/DailyPaper/getPayLogOfficeImg'
,
[
'method'
=>
'get|post'
]],
]);
]);
Route
::
group
(
'office_api'
,
[
Route
::
group
(
'office_api'
,
[
...
...
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