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
086295c3
Commit
086295c3
authored
Dec 17, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
撤销调整
parent
3673d06d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
4 deletions
+48
-4
Finance.php
application/index/controller/Finance.php
+34
-0
HouseService.php
application/index/service/HouseService.php
+6
-2
GHouses.php
application/model/GHouses.php
+7
-2
route.php
application/route.php
+1
-0
No files found.
application/index/controller/Finance.php
View file @
086295c3
...
...
@@ -3107,4 +3107,38 @@ class Finance extends Basic
return
$this
->
response
(
"200"
,
"success"
,[
"residue_money"
=>
$result
]);
}
/**
* 撤销调整
*
* @return \think\Response
*/
public
function
delAdjustment
()
{
$code
=
101
;
if
(
empty
(
$this
->
params
[
'id'
]))
{
return
$this
->
response
(
$code
,
'参数错误'
);
}
$m_pay_adjustment
=
new
OPayLogAdjustment
();
$new_paylog_id
=
$m_pay_adjustment
->
getFieldValue
(
'new_paylog_id'
,
[
'id'
=>
$this
->
params
[
'id'
]]);
if
(
empty
(
$new_paylog_id
))
{
return
$this
->
response
(
$code
,
'无调整信息'
);
}
$num
=
$m_pay_adjustment
->
editData
([
'is_del'
=>
0
],
$this
->
params
[
'id'
]);
if
(
$num
>
0
)
{
$m_pay
=
new
OPayLogModel
();
$save_data
[
'id'
]
=
$new_paylog_id
;
$save_data
[
'is_del'
]
=
1
;
$m_pay
->
updatePayLog
(
$save_data
);
$code
=
200
;
$msg
=
'撤销成功'
;
}
else
{
$msg
=
'撤销失败'
;
}
return
$this
->
response
(
$code
,
$msg
);
}
}
application/index/service/HouseService.php
View file @
086295c3
...
...
@@ -93,16 +93,20 @@ class HouseService
}
$m_operating
=
new
GOperatingRecords
();
$remark
=
''
;
if
(
isset
(
$data
[
'residue_num'
]))
{
$remark
=
'修改为:剩余铺数'
.
$data
[
'residue_num'
];
}
if
(
$data
[
'is_exclusive_type'
]
==
1
)
{
$remark
.=
',独家有效期 '
.
$data
[
'agent_start_time'
]
.
'—'
.
$data
[
'agent_end_time'
];
}
if
(
$data
[
'internal_title'
]
!=
$house_data
[
0
][
'internal_title'
])
{
if
(
isset
(
$data
[
'internal_title'
])
&&
$data
[
'internal_title'
]
!=
$house_data
[
0
][
'internal_title'
])
{
$remark
.=
',商铺名改为:'
.
$data
[
'internal_title'
];
}
if
(
$data
[
'internal_address'
]
!=
$house_data
[
0
][
'internal_address'
])
{
if
(
isset
(
$data
[
'internal_address'
])
&&
$data
[
'internal_address'
]
!=
$house_data
[
0
][
'internal_address'
])
{
$remark
.=
',地址改为:'
.
$data
[
'internal_address'
];
}
...
...
application/model/GHouses.php
View file @
086295c3
...
...
@@ -583,12 +583,14 @@ class GHouses extends BaseModel
$save_data
[
'status'
]
=
$data
[
'status'
];
}
if
(
isset
(
$data
[
'residue_num'
])
||
isset
(
$data
[
'total'
]))
{
//剩余商铺为0下架
if
(
empty
(
$data
[
'residue_num'
])
||
empty
(
$data
[
'total'
]))
{
$save_data
[
'status'
]
=
2
;
}
else
{
$save_data
[
'status'
]
=
1
;
}
}
//首页排序
if
(
isset
(
$data
[
'home_page_sort'
]))
{
...
...
@@ -605,12 +607,14 @@ class GHouses extends BaseModel
$save_data
[
'shop_area_start'
]
=
$data
[
'shop_area_start'
];
}
if
(
isset
(
$data
[
'shop_area_end'
]))
{
//店铺面积存米 街铺start和end面积一样
if
(
isset
(
$data
[
'shop_area_end'
])
&&
$data
[
'shop_type'
]
==
0
)
{
if
(
$data
[
'shop_type'
]
==
0
)
{
$save_data
[
'shop_area_end'
]
=
$data
[
'shop_area_end'
];
}
else
{
$save_data
[
'shop_area_end'
]
=
$data
[
'shop_area_start'
];
}
}
//商铺标签
if
(
isset
(
$data
[
'shop_sign'
]))
{
...
...
@@ -721,6 +725,7 @@ class GHouses extends BaseModel
}
}
if
(
isset
(
$save_data
[
'internal_address'
]))
{
//楼盘地址(对外)
if
(
empty
(
$save_data
[
'internal_address'
]))
{
$save_data
[
'external_address'
]
=
$save_data
[
'city'
]
.
$save_data
[
'disc'
];
...
...
@@ -737,7 +742,7 @@ class GHouses extends BaseModel
if
(
strpos
(
$save_data
[
'internal_address'
],
'街'
))
{
$save_data
[
'external_address'
]
.=
substr
(
$save_data
[
'internal_address'
],
0
,
strpos
(
$save_data
[
'internal_address'
],
'街'
))
.
'街'
;
}
}
//是否显示真实图片
if
(
isset
(
$data
[
'is_show_image'
]))
{
$save_data
[
'is_show_image'
]
=
$data
[
'is_show_image'
];
...
...
application/route.php
View file @
086295c3
...
...
@@ -278,6 +278,7 @@ Route::group('index', [
'collectingBill'
=>
[
'index/Finance/collectingBill'
,
[
'method'
=>
'post'
]],
//收款
'getBeForNum'
=>
[
'index/Finance/getBeForNum'
,
[
'method'
=>
'get'
]],
//getBeForNum
'getAdjustment'
=>
[
'index/Finance/getAdjustment'
,
[
'method'
=>
'get'
]],
//剩余可以调整或退款的钱
'delAdjustment'
=>
[
'index/Finance/delAdjustment'
,
[
'method'
=>
'post'
]],
//撤销调整
'performanceInfo'
=>
[
'index/PerformanceInfo/performanceInfo'
,
[
'method'
=>
'post|get'
]],
//业绩明细
'getPerformanceInfoExcel'
=>
[
'index/PerformanceInfo/getPerformanceInfoExcel'
,
[
'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