Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
lxx_pms
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
游宗学
lxx_pms
Commits
7146789e
提交
7146789e
authored
6月 09, 2020
作者:
游宗学
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改!
上级
07e0ac4e
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
30 行增加
和
1 行删除
+30
-1
ContractController.class.php
...pplication/Client/Controller/ContractController.class.php
+12
-0
ContractLogic.class.php
PHP/Application/Common/Logic/Api/ContractLogic.class.php
+16
-0
ContractLogic.class.php
...Application/Common/Logic/Contract/ContractLogic.class.php
+1
-1
contract-2020-06-09.sql
PHP/sql/contract-2020-06-09.sql
+1
-0
没有找到文件。
PHP/Application/Client/Controller/ContractController.class.php
浏览文件 @
7146789e
...
...
@@ -194,4 +194,15 @@ class ContractController extends BaseClientController
$this
->
ajaxReturn
(
$res
);
}
/**
* @desc 提交续租请求
* @version 2020-06-09
* @author yzx
*/
public
function
createRenewals
(){
$data
[
'contract_id'
]
=
I
(
'contract_id'
);
$res
=
$this
->
logic
(
'Api\Contract'
)
->
payReservationLogic
(
$data
);
$this
->
ajaxReturn
(
$res
);
}
}
\ No newline at end of file
PHP/Application/Common/Logic/Api/ContractLogic.class.php
浏览文件 @
7146789e
...
...
@@ -683,4 +683,20 @@ class ContractLogic extends BaseLogic
return
RD
(
'获取预览连接失败'
);
}
/**
* @desc APP申请续租
* @param $contract_id
* @version 2020-06-09
* @author yzx
* @return array
*/
public
function
createRenewals
(
$contract_id
){
$contractModel
=
D
(
'Contract'
);
$result
=
$contractModel
->
where
([
'contract_id'
=>
$contract_id
])
->
data
([
'is_renewal'
=>
1
])
->
save
();
if
(
!
$result
){
return
RD
(
'申请失败'
);
}
return
RD
(
'申请成功'
,[],
1
);
}
}
PHP/Application/Common/Logic/Contract/ContractLogic.class.php
浏览文件 @
7146789e
...
...
@@ -322,7 +322,7 @@ class ContractLogic extends BaseLogic
$conWhere
[
'surrender_time'
]
=
0
;
}
$contract_fields
=
'contract_id, room_id, begin_time, end_time, rental, is_surrender,
surrender_time, advance_pay_rent_day, renewal_contract, bill_id, paid_day'
;
surrender_time, advance_pay_rent_day, renewal_contract, bill_id, paid_day
,is_renewal
'
;
$contractList
=
$this
->
helper
(
'Contract'
)
->
getList
(
$conWhere
,
$contract_fields
);
if
(
empty
(
$contractList
[
'data'
]))
{
return
[
'status'
=>
1
,
'message'
=>
'该租客没有合同'
,
'data'
=>
[]];
...
...
PHP/sql/contract-2020-06-09.sql
0 → 100644
浏览文件 @
7146789e
ALTER
TABLE
`contract`
ADD
`is_renewal`
TINYINT
(
1
)
UNSIGNED
NOT
NULL
DEFAULT
'0'
COMMENT
'是否申请续租'
AFTER
`is_sublet`
;
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论