Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
jgjy
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
svn
jgjy
Commits
1abd20c1
提交
1abd20c1
authored
9月 06, 2019
作者:
zhouzhigang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
上级
56cb68ae
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
70 行增加
和
1 行删除
+70
-1
SchoolRequestPath.java
.../zrqx/core/constant/school/sysuser/SchoolRequestPath.java
+1
-0
PayForm.java
...rqx/core/form/school/sysuser/fg/studentorder/PayForm.java
+23
-0
StudentOrder.java
...com/zrqx/core/model/school/studentorder/StudentOrder.java
+1
-1
StudentOrderController.java
...suser/controller/studentorder/StudentOrderController.java
+10
-0
StudentOrderInfoController.java
...r/controller/studentorder/StudentOrderInfoController.java
+5
-0
StudentOrderInfoService.java
...sysuser/service/studentorder/StudentOrderInfoService.java
+3
-0
StudentOrderInfoServiceImpl.java
...ser/service/studentorder/StudentOrderInfoServiceImpl.java
+3
-0
StudentOrderService.java
...ool/sysuser/service/studentorder/StudentOrderService.java
+10
-0
StudentOrderServiceImpl.java
...sysuser/service/studentorder/StudentOrderServiceImpl.java
+14
-0
没有找到文件。
com.zrqx.core/src/main/java/com/zrqx/core/constant/school/sysuser/SchoolRequestPath.java
浏览文件 @
1abd20c1
...
...
@@ -150,5 +150,6 @@ public class SchoolRequestPath extends BaseRequestPath {
public
static
final
String
SEMESTER
=
"/semester"
;
/**监管*/
public
static
final
String
SUPERVISE
=
"/supervise"
;
}
com.zrqx.core/src/main/java/com/zrqx/core/form/school/sysuser/fg/studentorder/PayForm.java
0 → 100644
浏览文件 @
1abd20c1
package
com
.
zrqx
.
core
.
form
.
school
.
sysuser
.
fg
.
studentorder
;
import
java.math.BigDecimal
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
@Data
@ApiModel
(
value
=
"PayForm"
,
description
=
"学生支付表单"
)
public
class
PayForm
{
@ApiModelProperty
(
"订单id"
)
private
Integer
id
;
/**{ @link PayTypeEnum }}*/
@ApiModelProperty
(
"支付方式 1、支付宝 2、微信 3、银联"
)
private
String
payType
;
@ApiModelProperty
(
"实际订单总额(支付金额)"
)
private
BigDecimal
payment
;
}
com.zrqx.core/src/main/java/com/zrqx/core/model/school/studentorder/StudentOrder.java
浏览文件 @
1abd20c1
...
...
@@ -31,7 +31,7 @@ public class StudentOrder extends BaseModel{
private
String
payType
;
/**{ @link StudentOrderStatusEnum }*/
@ApiModelProperty
(
"支付状态"
)
@ApiModelProperty
(
"支付状态
0待支付 1已支付
"
)
private
String
payStatus
;
@ApiModelProperty
(
"订单总额"
)
...
...
com.zrqx.school.sysuser/src/main/java/com/zrqx/school/sysuser/controller/studentorder/StudentOrderController.java
浏览文件 @
1abd20c1
...
...
@@ -4,10 +4,12 @@ import java.util.List;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.zrqx.core.constant.school.sysuser.SchoolRequestPath
;
import
com.zrqx.core.form.school.sysuser.fg.studentorder.PayForm
;
import
com.zrqx.core.form.school.sysuser.fg.studentorder.QueryStudentOrderForm
;
import
com.zrqx.core.model.member.school.School
;
import
com.zrqx.core.model.member.supplier.FgSupplier
;
...
...
@@ -79,5 +81,13 @@ public class StudentOrderController {
public
CallBack
<
List
<
ViewOrderVo
>>
get
(
String
resourceId
){
return
CallBack
.
success
(
studentOrderService
.
get
(
resourceId
));
}
@ApiOperation
(
value
=
"确认支付"
,
notes
=
"确认支付"
)
@PostMapping
(
value
=
SchoolRequestPath
.
CONFIRM
+
SchoolRequestPath
.
PAY
)
public
CallBack
<
Boolean
>
confirm
(
PayForm
form
){
return
CallBack
.
success
(
studentOrderService
.
confirm
(
form
));
}
}
com.zrqx.school.sysuser/src/main/java/com/zrqx/school/sysuser/controller/studentorder/StudentOrderInfoController.java
浏览文件 @
1abd20c1
...
...
@@ -3,10 +3,12 @@ package com.zrqx.school.sysuser.controller.studentorder;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.zrqx.core.constant.school.sysuser.SchoolRequestPath
;
import
com.zrqx.core.form.school.sysuser.fg.order.QueryOrderInfoForm
;
import
com.zrqx.core.form.school.sysuser.fg.studentorder.PayForm
;
import
com.zrqx.core.util.page.PageInfo
;
import
com.zrqx.core.util.page.PageParam
;
import
com.zrqx.core.util.response.CallBack
;
...
...
@@ -36,5 +38,8 @@ public class StudentOrderInfoController {
public
CallBack
<
PageInfo
<
StudentOrderInfoVo
>>
getByOid
(
PageParam
pageParam
,
Integer
orderId
){
return
CallBack
.
success
(
studentOrderInfoService
.
getByOid
(
pageParam
,
orderId
));
}
}
com.zrqx.school.sysuser/src/main/java/com/zrqx/school/sysuser/service/studentorder/StudentOrderInfoService.java
浏览文件 @
1abd20c1
package
com
.
zrqx
.
school
.
sysuser
.
service
.
studentorder
;
import
com.zrqx.core.form.school.sysuser.fg.studentorder.PayForm
;
import
com.zrqx.core.model.school.studentorder.StudentOrderInfo
;
import
com.zrqx.core.service.BaseService
;
import
com.zrqx.core.util.page.PageInfo
;
...
...
@@ -26,5 +27,7 @@ public interface StudentOrderInfoService extends BaseService<StudentOrderInfo,In
* @data 2019年9月5日 上午9:14:50
*/
PageInfo
<
StudentOrderInfoVo
>
getByOid
(
PageParam
pageParam
,
Integer
orderId
);
}
com.zrqx.school.sysuser/src/main/java/com/zrqx/school/sysuser/service/studentorder/StudentOrderInfoServiceImpl.java
浏览文件 @
1abd20c1
...
...
@@ -7,6 +7,7 @@ import org.apache.commons.lang3.StringUtils;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.zrqx.core.commons.redis.FgRedisManage
;
import
com.zrqx.core.form.school.sysuser.fg.studentorder.PayForm
;
import
com.zrqx.core.mapper.BaseMapper
;
import
com.zrqx.core.model.member.classmanagement.ClassManagement
;
import
com.zrqx.core.model.member.major.Major
;
...
...
@@ -94,6 +95,8 @@ public class StudentOrderInfoServiceImpl extends BaseModelServiceImpl<StudentOrd
return
null
;
}
...
...
com.zrqx.school.sysuser/src/main/java/com/zrqx/school/sysuser/service/studentorder/StudentOrderService.java
浏览文件 @
1abd20c1
...
...
@@ -2,6 +2,7 @@ package com.zrqx.school.sysuser.service.studentorder;
import
java.util.List
;
import
com.zrqx.core.form.school.sysuser.fg.studentorder.PayForm
;
import
com.zrqx.core.form.school.sysuser.fg.studentorder.QueryStudentOrderForm
;
import
com.zrqx.core.model.member.school.School
;
import
com.zrqx.core.model.member.supplier.FgSupplier
;
...
...
@@ -76,5 +77,14 @@ public interface StudentOrderService extends BaseService<StudentOrder,Integer>{
* @data 2019年9月4日 下午3:23:45
*/
List
<
ViewOrderVo
>
get
(
String
resourceId
);
/**
* 确认支付
* @param form
* @return
* @auther zzg
* @data 2019年9月6日 上午10:19:39
*/
boolean
confirm
(
PayForm
form
);
}
com.zrqx.school.sysuser/src/main/java/com/zrqx/school/sysuser/service/studentorder/StudentOrderServiceImpl.java
浏览文件 @
1abd20c1
...
...
@@ -6,6 +6,8 @@ import org.apache.commons.lang3.StringUtils;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.zrqx.core.enums.school.sysuser.StudentOrderStatusEnum
;
import
com.zrqx.core.form.school.sysuser.fg.studentorder.PayForm
;
import
com.zrqx.core.form.school.sysuser.fg.studentorder.QueryStudentOrderForm
;
import
com.zrqx.core.mapper.BaseMapper
;
import
com.zrqx.core.model.member.school.School
;
...
...
@@ -121,6 +123,18 @@ public class StudentOrderServiceImpl extends BaseModelServiceImpl<StudentOrder,I
});
return
list
;
}
@Override
public
boolean
confirm
(
PayForm
form
)
{
StudentOrder
order
=
super
.
notNull
(
form
.
getId
());
order
.
setPayType
(
form
.
getPayType
());
order
.
setPayStatus
(
StudentOrderStatusEnum
.
HAVE_PAID
.
getCode
());
order
.
setPayment
(
form
.
getPayment
());
super
.
updateByPrimaryKey
(
order
);
return
true
;
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论