记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
91c29758
Commit
91c29758
authored
Sep 06, 2021
by
jiangxiulong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
转增 0and5可退款
parent
373e7970
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
85 additions
and
70 deletions
+85
-70
KylinOrderRefundAdminController.java
...oller/zhengzai/kylin/KylinOrderRefundAdminController.java
+2
-3
applyView.html
.../resources/templates/zhengzai/kylin/refund/applyView.html
+7
-7
KylinOrderRefundsServiceImpl.java
...gzai/kylin/service/impl/KylinOrderRefundsServiceImpl.java
+74
-60
KylinOrderTicketsMapper.xml
...iquidnet.service.kylin.mapper/KylinOrderTicketsMapper.xml
+2
-0
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/java/com/liquidnet/client/admin/web/controller/zhengzai/kylin/KylinOrderRefundAdminController.java
View file @
91c29758
...
@@ -81,9 +81,8 @@ public class KylinOrderRefundAdminController extends BaseController {
...
@@ -81,9 +81,8 @@ public class KylinOrderRefundAdminController extends BaseController {
@Log
(
title
=
"订单退款列表"
,
businessType
=
BusinessType
.
DETAIL
)
@Log
(
title
=
"订单退款列表"
,
businessType
=
BusinessType
.
DETAIL
)
@PostMapping
(
"applyOrder"
)
@PostMapping
(
"applyOrder"
)
@ResponseBody
@ResponseBody
public
RefundOrderDetailsVo
applyOrder
(
RefundApplyParam
refundApplyParam
)
{
public
AjaxResult
applyOrder
(
RefundApplyParam
refundApplyParam
)
{
RefundOrderDetailsVo
orderInfo
=
kylinOrderRefundsServiceImpl
.
orderDetails
(
refundApplyParam
.
getOrderCode
());
return
kylinOrderRefundsServiceImpl
.
orderDetails
(
refundApplyParam
.
getOrderCode
());
return
orderInfo
;
}
}
@Log
(
title
=
"订单退款列表"
,
businessType
=
BusinessType
.
INSERT
)
@Log
(
title
=
"订单退款列表"
,
businessType
=
BusinessType
.
INSERT
)
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/kylin/refund/applyView.html
View file @
91c29758
...
@@ -63,17 +63,17 @@
...
@@ -63,17 +63,17 @@
$
.
modal
.
loading
(
"正在查询订单,请稍后..."
);
$
.
modal
.
loading
(
"正在查询订单,请稍后..."
);
},
},
success
:
function
(
result
)
{
success
:
function
(
result
)
{
if
(
result
.
msg
)
{
if
(
result
.
status
>
0
)
{
$
.
modal
.
closeLoading
();
$
.
modal
.
closeLoading
();
layer
.
msg
(
"未找到该订单信息"
);
layer
.
msg
(
result
.
msg
);
return
false
;
return
false
;
}
else
{
}
else
{
$
(
"#orderTicketsId"
).
val
(
result
.
orderTicketVo
.
orderTicketsId
);
$
(
"#orderTicketsId"
).
val
(
result
.
data
.
orderTicketVo
.
orderTicketsId
);
$
(
'input[name="RefundPriceExpress"]'
).
val
(
result
.
orderTicketVo
.
priceExpress
);
$
(
'input[name="RefundPriceExpress"]'
).
val
(
result
.
data
.
orderTicketVo
.
priceExpress
);
$
(
'input[name="RefundPriceExpress"]'
).
attr
(
"max"
,
result
.
orderTicketVo
.
priceExpress
);
$
(
'input[name="RefundPriceExpress"]'
).
attr
(
"max"
,
result
.
data
.
orderTicketVo
.
priceExpress
);
$
(
"#performanceTitle"
).
text
(
result
.
kylinPerformanceVo
.
title
);
$
(
"#performanceTitle"
).
text
(
result
.
data
.
kylinPerformanceVo
.
title
);
var
options
=
{
var
options
=
{
data
:
result
.
kylinOrderTicketEntitiesDao
,
data
:
result
.
data
.
kylinOrderTicketEntitiesDao
,
pagination
:
false
,
pagination
:
false
,
columns
:
[{
columns
:
[{
checkbox
:
true
checkbox
:
true
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/kylin/service/impl/KylinOrderRefundsServiceImpl.java
View file @
91c29758
...
@@ -8,6 +8,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
...
@@ -8,6 +8,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import
com.fasterxml.jackson.core.type.TypeReference
;
import
com.fasterxml.jackson.core.type.TypeReference
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageInfo
;
import
com.github.pagehelper.PageInfo
;
import
com.liquidnet.client.admin.common.core.domain.AjaxResult
;
import
com.liquidnet.client.admin.common.utils.DateUtils
;
import
com.liquidnet.client.admin.common.utils.DateUtils
;
import
com.liquidnet.client.admin.common.utils.ShiroUtils
;
import
com.liquidnet.client.admin.common.utils.ShiroUtils
;
import
com.liquidnet.commons.lang.util.BeanUtil
;
import
com.liquidnet.commons.lang.util.BeanUtil
;
...
@@ -113,6 +114,9 @@ public class KylinOrderRefundsServiceImpl extends ServiceImpl<KylinOrderRefundsM
...
@@ -113,6 +114,9 @@ public class KylinOrderRefundsServiceImpl extends ServiceImpl<KylinOrderRefundsM
if
(
thisOrderStatus
!=
KylinTableStatusConst
.
ORDER_STATUS1
&&
thisOrderStatus
!=
KylinTableStatusConst
.
ORDER_STATUS3
&&
thisOrderStatus
!=
KylinTableStatusConst
.
ORDER_STATUS6
)
{
if
(
thisOrderStatus
!=
KylinTableStatusConst
.
ORDER_STATUS1
&&
thisOrderStatus
!=
KylinTableStatusConst
.
ORDER_STATUS3
&&
thisOrderStatus
!=
KylinTableStatusConst
.
ORDER_STATUS6
)
{
return
ResponseDto
.
failure
(
"当前订单状态不支持退款申请"
);
return
ResponseDto
.
failure
(
"当前订单状态不支持退款申请"
);
}
}
if
(
orderStatus
.
getTransferStatus
()
!=
0
||
orderStatus
.
getTransferStatus
()
!=
5
)
{
return
ResponseDto
.
failure
(
"当前转增状态不可退款"
);
}
// 订单支付状态需为已支付
// 订单支付状态需为已支付
if
(
thisPayStatus
!=
KylinTableStatusConst
.
ORDER_PAY_STATUS1
)
{
if
(
thisPayStatus
!=
KylinTableStatusConst
.
ORDER_PAY_STATUS1
)
{
return
ResponseDto
.
failure
(
"订单支付状态需为已支付"
);
return
ResponseDto
.
failure
(
"订单支付状态需为已支付"
);
...
@@ -409,11 +413,18 @@ public class KylinOrderRefundsServiceImpl extends ServiceImpl<KylinOrderRefundsM
...
@@ -409,11 +413,18 @@ public class KylinOrderRefundsServiceImpl extends ServiceImpl<KylinOrderRefundsM
return
pageInfoTmp
;
return
pageInfoTmp
;
}
}
public
RefundOrderDetailsVo
orderDetails
(
String
orderCode
)
{
public
AjaxResult
orderDetails
(
String
orderCode
)
{
try
{
// 订单
// 订单
KylinOrderTickets
kylinOrderTickets
=
kylinOrderTicketsMapper
.
selectOne
(
KylinOrderTickets
kylinOrderTickets
=
kylinOrderTicketsMapper
.
selectOne
(
new
QueryWrapper
<
KylinOrderTickets
>().
eq
(
"order_code"
,
orderCode
)
new
QueryWrapper
<
KylinOrderTickets
>().
eq
(
"order_code"
,
orderCode
)
);
);
KylinOrderTicketStatus
kylinOrderTicketStatus
=
kylinOrderTicketStatusMapper
.
selectOne
(
Wrappers
.
lambdaQuery
(
KylinOrderTicketStatus
.
class
).
eq
(
KylinOrderTicketStatus:
:
getOrderId
,
kylinOrderTickets
.
getOrderTicketsId
())
);
if
(
kylinOrderTicketStatus
.
getTransferStatus
()
!=
0
||
kylinOrderTicketStatus
.
getTransferStatus
()
!=
5
)
{
return
AjaxResult
.
error
(
"当前转增状态不可退款"
);
}
BigDecimal
oldPriceExpress
=
kylinOrderTickets
.
getPriceExpress
();
BigDecimal
oldPriceExpress
=
kylinOrderTickets
.
getPriceExpress
();
// 传的快递费不能大于实际的快递费=(支付的快递费-已退的快递费)
// 传的快递费不能大于实际的快递费=(支付的快递费-已退的快递费)
BigDecimal
refundPriceExpressSum
=
kylinOrderRefundsMapper
.
RefundPriceExpressSum
(
// 已退快递费
BigDecimal
refundPriceExpressSum
=
kylinOrderRefundsMapper
.
RefundPriceExpressSum
(
// 已退快递费
...
@@ -477,7 +488,10 @@ public class KylinOrderRefundsServiceImpl extends ServiceImpl<KylinOrderRefundsM
...
@@ -477,7 +488,10 @@ public class KylinOrderRefundsServiceImpl extends ServiceImpl<KylinOrderRefundsM
refundOrderDetailsVo
.
setKylinPerformanceVo
(
performanceVo
);
refundOrderDetailsVo
.
setKylinPerformanceVo
(
performanceVo
);
refundOrderDetailsVo
.
setKylinOrderTicketEntitiesDao
(
entitiesList
);
refundOrderDetailsVo
.
setKylinOrderTicketEntitiesDao
(
entitiesList
);
return
refundOrderDetailsVo
;
return
AjaxResult
.
success
(
refundOrderDetailsVo
);
}
catch
(
Exception
e
)
{
return
AjaxResult
.
error
(
"未找到该订单信息"
);
}
}
}
@Override
@Override
...
@@ -499,7 +513,7 @@ public class KylinOrderRefundsServiceImpl extends ServiceImpl<KylinOrderRefundsM
...
@@ -499,7 +513,7 @@ public class KylinOrderRefundsServiceImpl extends ServiceImpl<KylinOrderRefundsM
orderCode
=
data
.
getOrderCode
();
orderCode
=
data
.
getOrderCode
();
}
}
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
}
}
return
orderCode
;
return
orderCode
;
...
...
liquidnet-bus-do/liquidnet-service-kylin-do/src/main/resources/com.liquidnet.service.kylin.mapper/KylinOrderTicketsMapper.xml
View file @
91c29758
...
@@ -64,6 +64,7 @@
...
@@ -64,6 +64,7 @@
<where>
<where>
r.performance_id=#{targetId}
r.performance_id=#{targetId}
AND s.status IN (1, 3, 6)
AND s.status IN (1, 3, 6)
AND s.transfer_status IN (0, 5)
AND s.pay_status=1
AND s.pay_status=1
AND o.coupon_type='no'
AND o.coupon_type='no'
AND o.payment_type IN
AND o.payment_type IN
...
@@ -82,6 +83,7 @@
...
@@ -82,6 +83,7 @@
<where>
<where>
r.performance_id=${targetId}
r.performance_id=${targetId}
AND s.status IN (1, 3, 6)
AND s.status IN (1, 3, 6)
AND s.transfer_status IN (0, 5)
AND s.pay_status=1
AND s.pay_status=1
AND o.coupon_type='no'
AND o.coupon_type='no'
AND o.mid>${mid}
AND o.mid>${mid}
...
...
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