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
4f781903
Commit
4f781903
authored
Jun 12, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
4daa2c20
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
45 deletions
+10
-45
OfficePayLogService.php
application/api_broker/service/OfficePayLogService.php
+5
-5
Finance.php
application/index/controller/Finance.php
+1
-39
OfficePayLog.php
application/index/controller/OfficePayLog.php
+0
-0
OfficeRoomService.php
application/index/service/OfficeRoomService.php
+1
-1
route.php
application/route.php
+3
-0
No files found.
application/api_broker/service/OfficePayLogService.php
View file @
4f781903
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
namespace
app\api_broker\service
;
namespace
app\api_broker\service
;
use
app\model\OfficeOImg
;
use
app\model\OfficeOPayLogAdjustment
;
use
app\model\OfficeOPayLogAdjustment
;
use
app\model\OfficeOPayLogModel
;
use
app\model\OfficeOPayLogModel
;
use
app\model\OfficeORefundModel
;
use
app\model\OfficeORefundModel
;
...
@@ -85,9 +86,8 @@ class OfficePayLogService
...
@@ -85,9 +86,8 @@ class OfficePayLogService
if
(
count
(
$pay_log_arr
)
<
0
)
{
if
(
count
(
$pay_log_arr
)
<
0
)
{
return
-
1
;
return
-
1
;
}
}
$oPayLogAdjustment
=
new
OPayLogAdjustment
();
$where_
=
$this
->
adjustmentBin
(
$new_pay_id
,
$pay_id
,
$money
,
$type
,
$agent_id
,
$pay_log_arr
[
0
][
"type"
]);
$where_
=
$this
->
adjustmentBin
(
$new_pay_id
,
$pay_id
,
$money
,
$type
,
$agent_id
,
$pay_log_arr
[
0
][
"type"
]);
$
oPayLogAdjustment
->
addAdjustment
(
$where_
);
$
this
->
payLogAdjustmentModel
->
addAdjustment
(
$where_
);
}
}
/**
/**
...
@@ -271,7 +271,7 @@ class OfficePayLogService
...
@@ -271,7 +271,7 @@ class OfficePayLogService
*/
*/
private
function
addOImg
(
$id
,
$type
,
$transfer_img
)
private
function
addOImg
(
$id
,
$type
,
$transfer_img
)
{
{
$oImgModel
=
new
OImg
();
$oImgModel
=
new
O
fficeO
Img
();
$oImgModel
->
addImgAll
(
$id
,
$type
,
$transfer_img
);
$oImgModel
->
addImgAll
(
$id
,
$type
,
$transfer_img
);
}
}
...
@@ -283,7 +283,7 @@ class OfficePayLogService
...
@@ -283,7 +283,7 @@ class OfficePayLogService
private
function
getOImg
(
$id
,
$img_type
)
private
function
getOImg
(
$id
,
$img_type
)
{
{
//查询图片
//查询图片
$oImgModel
=
new
OImg
();
$oImgModel
=
new
O
fficeO
Img
();
$params
[
"img_id"
]
=
$id
;
$params
[
"img_id"
]
=
$id
;
$params
[
"img_type"
]
=
$img_type
;
$params
[
"img_type"
]
=
$img_type
;
$img_arr
=
$oImgModel
->
getImgList
(
$params
);
$img_arr
=
$oImgModel
->
getImgList
(
$params
);
...
@@ -295,7 +295,7 @@ class OfficePayLogService
...
@@ -295,7 +295,7 @@ class OfficePayLogService
* @param $del_img
* @param $del_img
*/
*/
private
function
delOImg
(
$type
,
$del_img
){
private
function
delOImg
(
$type
,
$del_img
){
$oImgModel
=
new
OImg
();
$oImgModel
=
new
O
fficeO
Img
();
$ids
=
rtrim
(
$del_img
,
","
);
$ids
=
rtrim
(
$del_img
,
","
);
$where_
[
"id"
]
=
array
(
"in"
,
$ids
);
$where_
[
"id"
]
=
array
(
"in"
,
$ids
);
$where_
[
"img_type"
]
=
$type
;
$where_
[
"img_type"
]
=
$type
;
...
...
application/index/controller/Finance.php
View file @
4f781903
...
@@ -26,6 +26,7 @@ use app\model\OBargainLogModel;
...
@@ -26,6 +26,7 @@ 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\OfficeOImg
;
use
app\model\OfficeOPayLogModel
;
use
app\model\OImg
;
use
app\model\OImg
;
use
app\model\OMarchInModel
;
use
app\model\OMarchInModel
;
use
app\model\OPayLogAdjustment
;
use
app\model\OPayLogAdjustment
;
...
@@ -3526,7 +3527,6 @@ class Finance extends Basic
...
@@ -3526,7 +3527,6 @@ class Finance extends Basic
}
}
}
}
/**
/**
* 收款列表记录上传图片
* 收款列表记录上传图片
* 朱伟 2018-07-04
* 朱伟 2018-07-04
...
@@ -3565,44 +3565,6 @@ class Finance extends Basic
...
@@ -3565,44 +3565,6 @@ 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/index/controller/OfficePayLog.php
View file @
4f781903
This diff is collapsed.
Click to expand it.
application/index/service/OfficeRoomService.php
View file @
4f781903
...
@@ -1251,7 +1251,7 @@ class OfficeRoomService
...
@@ -1251,7 +1251,7 @@ class OfficeRoomService
$order
=
'a.home_page_sort desc'
;
$order
=
'a.home_page_sort desc'
;
}
}
$field
=
'a.id,b.disc,b.title,b.address,c.name as business_name,a.building_id,a.price,a.price_total'
;
$field
=
'a.id,b.disc,b.title,b.address,c.name as business_name,a.building_id,a.price,a.price_total
,b.status
'
;
try
{
try
{
$data
=
$this
->
m_office_room
->
getRoomBuilding
(
$page_no
,
$page_size
,
$order
,
$field
,
$where
);
$data
=
$this
->
m_office_room
->
getRoomBuilding
(
$page_no
,
$page_size
,
$order
,
$field
,
$where
);
}
catch
(
\Exception
$e
)
{
}
catch
(
\Exception
$e
)
{
...
...
application/route.php
View file @
4f781903
...
@@ -1046,6 +1046,9 @@ Route::group('office_index', [
...
@@ -1046,6 +1046,9 @@ Route::group('office_index', [
'getPayLogImg'
=>
[
'index/DailyPaper/getPayLogOfficeImg'
,
[
'method'
=>
'get|post'
]],
'getPayLogImg'
=>
[
'index/DailyPaper/getPayLogOfficeImg'
,
[
'method'
=>
'get|post'
]],
'receiptImgList'
=>
[
'index/officePayLog/receiptOfficeImgList'
,
[
'method'
=>
'post|get'
]],
//收款列表-收款图片列表
'receiptImgList'
=>
[
'index/officePayLog/receiptOfficeImgList'
,
[
'method'
=>
'post|get'
]],
//收款列表-收款图片列表
'getCollectionEdit'
=>
[
'index/officePayLog/getCollectionEdit'
,
[
'method'
=>
'post'
]],
//收款修改保存
'getCollectionEdit'
=>
[
'index/officePayLog/getCollectionEdit'
,
[
'method'
=>
'post'
]],
//收款修改保存
'refundPayLog'
=>
[
'index/officePayLog/refundPayLog'
,
[
'method'
=>
'POST'
]],
//退款
'delPayLog'
=>
[
'index/officePayLog/delPayLog'
,
[
'method'
=>
'POST'
]],
//删除收款
'delAdjustment'
=>
[
'index/officePayLog/delAdjustment'
,
[
'method'
=>
'post'
]],
//撤销调整
]);
]);
...
...
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