Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
Z
zion
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
zion
Commits
d0200cf8
提交
d0200cf8
authored
11月 21, 2019
作者:
luojie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复优惠券
上级
e60c245d
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
44 行增加
和
51 行删除
+44
-51
TbCfOrderController.java
...aoyun/zion/chinafrica/controller/TbCfOrderController.java
+6
-5
TbCfCouponEntity.java
.../com/diaoyun/zion/chinafrica/entity/TbCfCouponEntity.java
+5
-5
TbCfOrderService.java
...com/diaoyun/zion/chinafrica/service/TbCfOrderService.java
+2
-2
TbCfOrderServiceImpl.java
...un/zion/chinafrica/service/impl/TbCfOrderServiceImpl.java
+30
-38
TbCfOrderDao.xml
src/main/resources/mapper/TbCfOrderDao.xml
+1
-1
没有找到文件。
src/main/java/com/diaoyun/zion/chinafrica/controller/TbCfOrderController.java
浏览文件 @
d0200cf8
...
@@ -31,15 +31,16 @@ public class TbCfOrderController {
...
@@ -31,15 +31,16 @@ public class TbCfOrderController {
@ApiOperation
(
"用户结算,返回订单"
)
@ApiOperation
(
"用户结算,返回订单"
)
@GetMapping
(
"/settle"
)
@GetMapping
(
"/settle"
)
public
Result
<
TbCfOrderVo
>
settleAccount
(
@ApiParam
(
"发放ID"
)
@RequestParam
(
value
=
"
iss_coupon_id"
,
required
=
false
)
String
iss_coupon_i
d
)
throws
IOException
,
URISyntaxException
,
ExecutionException
,
InterruptedException
,
TimeoutException
{
public
Result
<
TbCfOrderVo
>
settleAccount
(
@ApiParam
(
"发放ID"
)
@RequestParam
(
value
=
"
toitableId"
,
required
=
false
)
String
toitableI
d
)
throws
IOException
,
URISyntaxException
,
ExecutionException
,
InterruptedException
,
TimeoutException
{
return
tbCfOrderService
.
settleAccount
(
iss_coupon_i
d
);
return
tbCfOrderService
.
settleAccount
(
toitableI
d
);
}
}
@ApiOperation
(
"用户确定下单"
)
@ApiOperation
(
"用户确定下单"
)
@PostMapping
(
"/place"
)
@PostMapping
(
"/place"
)
public
Result
placeOrder
(
@ApiParam
(
"订单详情"
)
@RequestBody
TbCfOrderVo
tbCfOrderVo
,
@ApiParam
(
"发放ID"
)
@RequestParam
(
value
=
"iss_coupon_id"
,
required
=
false
)
String
iss_coupon_id
)
throws
IOException
,
URISyntaxException
,
ExecutionException
,
InterruptedException
,
TimeoutException
{
public
Result
placeOrder
(
@ApiParam
(
"订单详情"
)
@RequestBody
TbCfOrderVo
tbCfOrderVo
,
@ApiParam
(
"发放ID"
)
@RequestParam
(
value
=
"toitableId"
,
required
=
false
)
String
toitableId
)
throws
IOException
,
URISyntaxException
,
ExecutionException
,
InterruptedException
,
TimeoutException
{
System
.
out
.
println
(
"发放Id"
+
iss_coupon_id
);
System
.
out
.
println
(
"发放Id"
+
toitableId
);
return
tbCfOrderService
.
placeOrder
(
tbCfOrderVo
,
iss_coupon_id
);
return
tbCfOrderService
.
placeOrder
(
tbCfOrderVo
,
toitableId
);
}
}
/**
/**
...
...
src/main/java/com/diaoyun/zion/chinafrica/entity/TbCfCouponEntity.java
浏览文件 @
d0200cf8
...
@@ -21,7 +21,7 @@ public class TbCfCouponEntity implements Serializable {
...
@@ -21,7 +21,7 @@ public class TbCfCouponEntity implements Serializable {
*优惠券发放表id
*优惠券发放表id
*/
*/
@ApiModelProperty
(
"优惠券发放表id"
)
@ApiModelProperty
(
"优惠券发放表id"
)
private
String
issCoupon
Id
;
private
String
toitable
Id
;
/**
/**
* 优惠券id
* 优惠券id
*/
*/
...
@@ -136,12 +136,12 @@ public class TbCfCouponEntity implements Serializable {
...
@@ -136,12 +136,12 @@ public class TbCfCouponEntity implements Serializable {
* 设置:设置是否是注册就是的优惠券,(0)默认状态,(1)是用户注册就送这张优惠券
* 设置:设置是否是注册就是的优惠券,(0)默认状态,(1)是用户注册就送这张优惠券
*/
*/
public
String
get
IssCoupon
Id
()
{
public
String
get
Toitable
Id
()
{
return
issCoupon
Id
;
return
toitable
Id
;
}
}
public
void
set
IssCouponId
(
String
issCoupon
Id
)
{
public
void
set
ToitableId
(
String
toitable
Id
)
{
this
.
issCouponId
=
issCoupon
Id
;
this
.
toitableId
=
toitable
Id
;
}
}
public
String
getCouponId
()
{
public
String
getCouponId
()
{
...
...
src/main/java/com/diaoyun/zion/chinafrica/service/TbCfOrderService.java
浏览文件 @
d0200cf8
...
@@ -80,7 +80,7 @@ public interface TbCfOrderService {
...
@@ -80,7 +80,7 @@ public interface TbCfOrderService {
*
*
* @return
* @return
*/
*/
Result
settleAccount
(
String
iss_coupon_i
d
)
throws
IOException
,
URISyntaxException
,
ExecutionException
,
InterruptedException
,
TimeoutException
;
Result
settleAccount
(
String
toitableI
d
)
throws
IOException
,
URISyntaxException
,
ExecutionException
,
InterruptedException
,
TimeoutException
;
/**
/**
* 用户下单
* 用户下单
...
@@ -88,7 +88,7 @@ public interface TbCfOrderService {
...
@@ -88,7 +88,7 @@ public interface TbCfOrderService {
* @param tbCfOrderVo
* @param tbCfOrderVo
* @return
* @return
*/
*/
Result
placeOrder
(
TbCfOrderVo
tbCfOrderVo
,
String
iss_coupon_i
d
)
throws
IOException
,
URISyntaxException
,
ExecutionException
,
InterruptedException
,
TimeoutException
;
Result
placeOrder
(
TbCfOrderVo
tbCfOrderVo
,
String
toitableI
d
)
throws
IOException
,
URISyntaxException
,
ExecutionException
,
InterruptedException
,
TimeoutException
;
/**
/**
* 获取用户订单列表
* 获取用户订单列表
...
...
src/main/java/com/diaoyun/zion/chinafrica/service/impl/TbCfOrderServiceImpl.java
浏览文件 @
d0200cf8
差异被折叠。
点击展开。
src/main/resources/mapper/TbCfOrderDao.xml
浏览文件 @
d0200cf8
...
@@ -137,7 +137,7 @@
...
@@ -137,7 +137,7 @@
</if>
</if>
</select>
</select>
<select
id=
"queryCouponPrice"
resultType=
"com.diaoyun.zion.chinafrica.entity.TbCfCouponEntity"
>
<select
id=
"queryCouponPrice"
resultType=
"com.diaoyun.zion.chinafrica.entity.TbCfCouponEntity"
>
select t2.* from tb_cf_
issue_coupon t1 left join tb_cf_coupon t2 on t2.coupon_id=t1.coupon_id where t1.coupon_issuetable_id=#{iss_coupon_i
d}
select t2.* from tb_cf_
toicoupon t1 left join tb_cf_coupon t2 on t2.coupon_id=t1.coupon_id where t1.toitable_id=#{toitableI
d}
</select>
</select>
<insert
id=
"save"
parameterType=
"com.diaoyun.zion.chinafrica.entity.TbCfOrderEntity"
>
<insert
id=
"save"
parameterType=
"com.diaoyun.zion.chinafrica.entity.TbCfOrderEntity"
>
insert into tb_cf_order(
insert into tb_cf_order(
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论