记得上下班打卡 | 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
98111f35
Commit
98111f35
authored
Aug 03, 2021
by
jiangxiulong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into test
parents
70f4b372
6897a6dd
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
96 additions
and
27 deletions
+96
-27
KylinOrderRefundsVo.java
...net/service/kylin/dto/vo/returns/KylinOrderRefundsVo.java
+4
-1
KylinOrderRefundAdminController.java
...oller/zhengzai/kylin/KylinOrderRefundAdminController.java
+26
-0
details.html
...in/resources/templates/zhengzai/kylin/refund/details.html
+3
-1
refund.html
...ain/resources/templates/zhengzai/kylin/refund/refund.html
+34
-2
KylinOrderRefundsServiceImpl.java
...gzai/kylin/service/impl/KylinOrderRefundsServiceImpl.java
+19
-14
OrderRefundDao.java
.../java/com/liquidnet/service/kylin/dao/OrderRefundDao.java
+1
-0
SweetAppletController.java
...idnet/service/sweet/controller/SweetAppletController.java
+9
-9
No files found.
liquidnet-bus-api/liquidnet-service-kylin-api/src/main/java/com/liquidnet/service/kylin/dto/vo/returns/KylinOrderRefundsVo.java
View file @
98111f35
...
@@ -53,9 +53,12 @@ public class KylinOrderRefundsVo implements Serializable,Cloneable {
...
@@ -53,9 +53,12 @@ public class KylinOrderRefundsVo implements Serializable,Cloneable {
@ApiModelProperty
(
value
=
"退款失败原因"
)
@ApiModelProperty
(
value
=
"退款失败原因"
)
private
String
refundError
;
private
String
refundError
;
@ApiModelProperty
(
value
=
"退款总金额"
)
@ApiModelProperty
(
value
=
"退款
票
总金额"
)
private
BigDecimal
price
;
private
BigDecimal
price
;
@ApiModelProperty
(
value
=
"退款快递总金额"
)
private
BigDecimal
priceExpress
;
@ApiModelProperty
(
value
=
"退款状态: 0请求退款 2取消退款 1审核通过 5驳回退款 7等待退款 3正在退款 4完成退款 6退款失败"
)
@ApiModelProperty
(
value
=
"退款状态: 0请求退款 2取消退款 1审核通过 5驳回退款 7等待退款 3正在退款 4完成退款 6退款失败"
)
private
Integer
status
;
private
Integer
status
;
...
...
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 @
98111f35
...
@@ -14,12 +14,17 @@ import com.liquidnet.service.kylin.dto.param.RefundApplyParam;
...
@@ -14,12 +14,17 @@ import com.liquidnet.service.kylin.dto.param.RefundApplyParam;
import
com.liquidnet.service.kylin.dto.param.RefundSearchParam
;
import
com.liquidnet.service.kylin.dto.param.RefundSearchParam
;
import
com.liquidnet.service.kylin.dto.vo.returns.KylinOrderRefundsVo
;
import
com.liquidnet.service.kylin.dto.vo.returns.KylinOrderRefundsVo
;
import
com.liquidnet.service.kylin.dto.vo.returns.RefundOrderDetailsVo
;
import
com.liquidnet.service.kylin.dto.vo.returns.RefundOrderDetailsVo
;
import
com.liquidnet.service.kylin.service.IKylinOrderRefundsService
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiOperation
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.ui.ModelMap
;
import
org.springframework.ui.ModelMap
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
javax.validation.constraints.NotNull
;
import
java.util.Map
;
import
java.util.Map
;
/**
/**
...
@@ -207,4 +212,25 @@ public class KylinOrderRefundAdminController extends BaseController {
...
@@ -207,4 +212,25 @@ public class KylinOrderRefundAdminController extends BaseController {
}
}
}
}
@Autowired
IKylinOrderRefundsService
kylinOrderRefundsService
;
// @RequiresPermissions("order:switch:search:code")
@ApiOperation
(
value
=
"根据截取订单号获取全量订单号"
)
@GetMapping
(
"/search/code"
)
@ResponseBody
@ApiImplicitParams
({
@ApiImplicitParam
(
type
=
"form"
,
required
=
true
,
dataType
=
"String"
,
name
=
"code"
,
value
=
"订单号"
,
example
=
""
),
@ApiImplicitParam
(
type
=
"form"
,
required
=
true
,
dataType
=
"int"
,
name
=
"type"
,
value
=
"1退款单号 2订单号"
,
example
=
""
),
})
public
AjaxResult
loginSmsSwitch
(
@NotNull
(
message
=
"订单号不能为空"
)
@RequestParam
String
code
,
@NotNull
(
message
=
"类型不能为空"
)
@RequestParam
int
type
)
{
String
codeNum
=
kylinOrderRefundsService
.
getOrderRefundCode
(
code
,
type
);
if
(
codeNum
==
null
){
return
success
(
"ERROR"
);
}
else
{
return
success
(
codeNum
);
}
}
}
}
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/kylin/refund/details.html
View file @
98111f35
...
@@ -21,8 +21,10 @@
...
@@ -21,8 +21,10 @@
<div
class=
"form-control-static"
th:text=
"${KylinOrderRefundsVo.RefundId}"
></div>
<div
class=
"form-control-static"
th:text=
"${KylinOrderRefundsVo.RefundId}"
></div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 control-label"
>
退款总金额:
</label>
<label
class=
"col-sm-2 control-label"
>
退款
票
总金额:
</label>
<div
class=
"form-control-static"
th:text=
"${KylinOrderRefundsVo.price}"
></div>
<div
class=
"form-control-static"
th:text=
"${KylinOrderRefundsVo.price}"
></div>
<label
class=
"col-sm-2 control-label"
>
退款快递费总金额:
</label>
<div
class=
"form-control-static"
th:text=
"${KylinOrderRefundsVo.priceExpress}"
></div>
<label
class=
"col-sm-2 control-label"
>
退款状态:
</label>
<label
class=
"col-sm-2 control-label"
>
退款状态:
</label>
<div
class=
"form-control-static"
th:text=
"${KylinOrderRefundsVo.statusName}"
></div>
<div
class=
"form-control-static"
th:text=
"${KylinOrderRefundsVo.statusName}"
></div>
<label
class=
"col-sm-2 control-label"
>
成功退款时间:
</label>
<label
class=
"col-sm-2 control-label"
>
成功退款时间:
</label>
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/kylin/refund/refund.html
View file @
98111f35
...
@@ -43,6 +43,26 @@
...
@@ -43,6 +43,26 @@
</div>
</div>
</form>
</form>
</div>
</div>
<div
class=
"col-sm-12 search-collapse"
>
<form
id=
"formId2"
>
<div
class=
"select-list"
>
<ul>
<li>
<label>
短订单号:
</label>
<input
type=
"text"
name=
"findCode"
/>
</li>
<li>
<a
class=
"btn btn-primary btn-rounded btn-sm"
onclick=
"findCode()"
><i
class=
"fa fa-search"
></i>
查询
</a>
</li>
<li>
<label>
长订单号:
</label>
<input
type=
"text"
name=
"allCode"
readonly
/>
</li>
</ul>
</div>
</form>
</div>
<div
class=
"btn-group-sm"
id=
"toolbar"
role=
"group"
>
<div
class=
"btn-group-sm"
id=
"toolbar"
role=
"group"
>
<a
class=
"btn btn-success"
onclick=
"$.operate.add()"
shiro:hasPermission=
"kylin:refund:apply"
>
<a
class=
"btn btn-success"
onclick=
"$.operate.add()"
shiro:hasPermission=
"kylin:refund:apply"
>
...
@@ -98,6 +118,14 @@
...
@@ -98,6 +118,14 @@
var
prefix
=
ctx
+
"kylin/refund"
;
var
prefix
=
ctx
+
"kylin/refund"
;
function
findCode
()
{
var
shortCode
=
document
.
getElementsByName
(
"findCode"
)[
0
].
value
;
var
allCode
=
document
.
getElementsByName
(
"allCode"
)[
0
];
$
.
operate
.
get
(
prefix
+
"/search/code?code="
+
shortCode
+
"&type=2"
,
function
(
res
)
{
allCode
.
value
=
res
.
msg
;
});
}
function
review
(
id
)
{
function
review
(
id
)
{
var
data
=
''
;
var
data
=
''
;
if
(
id
)
{
if
(
id
)
{
...
@@ -209,7 +237,11 @@
...
@@ -209,7 +237,11 @@
},
},
{
{
field
:
'price'
,
field
:
'price'
,
title
:
'退款总金额'
title
:
'退票金额'
},
{
field
:
'priceExpress'
,
title
:
'退快递费金额'
},
},
{
{
field
:
'statusName'
,
field
:
'statusName'
,
...
...
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 @
98111f35
...
@@ -406,6 +406,7 @@ public class KylinOrderRefundsServiceImpl extends ServiceImpl<KylinOrderRefundsM
...
@@ -406,6 +406,7 @@ public class KylinOrderRefundsServiceImpl extends ServiceImpl<KylinOrderRefundsM
KylinOrderTickets
kylinOrderTickets
=
kylinOrderTicketsMapper
.
selectOne
(
KylinOrderTickets
kylinOrderTickets
=
kylinOrderTicketsMapper
.
selectOne
(
new
QueryWrapper
<
KylinOrderTickets
>().
eq
(
"order_code"
,
orderCode
)
new
QueryWrapper
<
KylinOrderTickets
>().
eq
(
"order_code"
,
orderCode
)
);
);
BigDecimal
oldPriceExpress
=
kylinOrderTickets
.
getPriceExpress
();
// 传的快递费不能大于实际的快递费=(支付的快递费-已退的快递费)
// 传的快递费不能大于实际的快递费=(支付的快递费-已退的快递费)
BigDecimal
refundPriceExpressSum
=
kylinOrderRefundsMapper
.
RefundPriceExpressSum
(
// 已退快递费
BigDecimal
refundPriceExpressSum
=
kylinOrderRefundsMapper
.
RefundPriceExpressSum
(
// 已退快递费
kylinOrderTickets
.
getOrderTicketsId
(),
kylinOrderTickets
.
getOrderTicketsId
(),
...
@@ -437,7 +438,7 @@ public class KylinOrderRefundsServiceImpl extends ServiceImpl<KylinOrderRefundsM
...
@@ -437,7 +438,7 @@ public class KylinOrderRefundsServiceImpl extends ServiceImpl<KylinOrderRefundsM
.
eq
(
"order_id"
,
kylinOrderTickets
.
getOrderTicketsId
())
.
eq
(
"order_id"
,
kylinOrderTickets
.
getOrderTicketsId
())
.
ne
(
"is_payment"
,
KylinTableStatusConst
.
ENTITIES_IS_PAYMENT0
)
.
ne
(
"is_payment"
,
KylinTableStatusConst
.
ENTITIES_IS_PAYMENT0
)
);
);
BigDecimal
onePrice
=
(
priceActual
.
subtract
(
p
riceExpress
)).
divide
(
BigDecimal
.
valueOf
(
allEntitiesCount
));
//单价
BigDecimal
onePrice
=
(
priceActual
.
subtract
(
oldP
riceExpress
)).
divide
(
BigDecimal
.
valueOf
(
allEntitiesCount
));
//单价
for
(
KylinOrderTicketEntitiesDao
entities
:
entitiesListTemp
)
{
for
(
KylinOrderTicketEntitiesDao
entities
:
entitiesListTemp
)
{
BigDecimal
refundedPrice
=
kylinOrderTicketEntitiesMapper
.
getRefundEntitiesPrice
(
//已退 包含退款中
BigDecimal
refundedPrice
=
kylinOrderTicketEntitiesMapper
.
getRefundEntitiesPrice
(
//已退 包含退款中
kylinOrderTickets
.
getOrderTicketsId
(),
kylinOrderTickets
.
getOrderTicketsId
(),
...
@@ -474,6 +475,7 @@ public class KylinOrderRefundsServiceImpl extends ServiceImpl<KylinOrderRefundsM
...
@@ -474,6 +475,7 @@ public class KylinOrderRefundsServiceImpl extends ServiceImpl<KylinOrderRefundsM
@Override
@Override
public
String
getOrderRefundCode
(
String
code
,
int
type
)
{
public
String
getOrderRefundCode
(
String
code
,
int
type
)
{
String
orderCode
=
null
;
String
orderCode
=
null
;
try
{
if
(
type
==
1
)
{
if
(
type
==
1
)
{
KylinOrderRefunds
data
=
kylinOrderRefundsMapper
.
selectOne
(
new
UpdateWrapper
<
KylinOrderRefunds
>().
like
(
"order_refund_code"
,
code
));
KylinOrderRefunds
data
=
kylinOrderRefundsMapper
.
selectOne
(
new
UpdateWrapper
<
KylinOrderRefunds
>().
like
(
"order_refund_code"
,
code
));
if
(
data
==
null
)
{
if
(
data
==
null
)
{
...
@@ -489,6 +491,9 @@ public class KylinOrderRefundsServiceImpl extends ServiceImpl<KylinOrderRefundsM
...
@@ -489,6 +491,9 @@ public class KylinOrderRefundsServiceImpl extends ServiceImpl<KylinOrderRefundsM
orderCode
=
data
.
getOrderCode
();
orderCode
=
data
.
getOrderCode
();
}
}
}
}
}
catch
(
Exception
e
){
}
return
orderCode
;
return
orderCode
;
}
}
}
}
liquidnet-bus-do/liquidnet-service-kylin-do/src/main/java/com/liquidnet/service/kylin/dao/OrderRefundDao.java
View file @
98111f35
...
@@ -26,6 +26,7 @@ public class OrderRefundDao implements Serializable {
...
@@ -26,6 +26,7 @@ public class OrderRefundDao implements Serializable {
private
String
refundError
;
private
String
refundError
;
private
BigDecimal
price
;
private
BigDecimal
price
;
private
BigDecimal
priceExpress
;
private
Integer
status
;
private
Integer
status
;
...
...
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/controller/SweetAppletController.java
View file @
98111f35
...
@@ -73,19 +73,19 @@ public class SweetAppletController {
...
@@ -73,19 +73,19 @@ public class SweetAppletController {
@ApiOperation
(
"时间表"
)
@ApiOperation
(
"时间表"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"manualId"
,
value
=
"电子手册id"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"manualId"
,
value
=
"电子手册id"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"dateTime"
,
value
=
"时间 全部传 \"\""
,
required
=
tru
e
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"dateTime"
,
value
=
"时间 全部传 \"\""
,
required
=
fals
e
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"stage"
,
value
=
"舞台 全部传 \"\""
,
required
=
tru
e
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"stage"
,
value
=
"舞台 全部传 \"\""
,
required
=
fals
e
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"Integer"
,
name
=
"isSign"
,
value
=
"是否签名(1是0否)"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"Integer"
,
name
=
"isSign"
,
value
=
"是否签名(1是0否)"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"Integer"
,
name
=
"page"
,
value
=
"页数"
,
required
=
false
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"Integer"
,
name
=
"page"
,
value
=
"页数"
,
required
=
false
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"Integer"
,
name
=
"size"
,
value
=
"数量"
,
required
=
false
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"Integer"
,
name
=
"size"
,
value
=
"数量"
,
required
=
false
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"uid"
,
value
=
"用户id"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"uid"
,
value
=
"用户id"
,
required
=
true
),
})
})
public
ResponseDto
<
SweetManualArtistList2Dto
>
timeList
(
@RequestParam
String
manualId
,
public
ResponseDto
<
SweetManualArtistList2Dto
>
timeList
(
@RequestParam
String
manualId
,
@RequestParam
String
dateTime
,
@RequestParam
(
required
=
false
)
String
dateTime
,
@RequestParam
String
stage
,
@RequestParam
(
required
=
false
)
String
stage
,
@RequestParam
Integer
isSign
,
@RequestParam
Integer
isSign
,
@RequestParam
Integer
page
,
@RequestParam
(
required
=
false
)
Integer
page
,
@RequestParam
Integer
size
,
@RequestParam
(
required
=
false
)
Integer
size
,
@RequestParam
String
uid
)
{
@RequestParam
String
uid
)
{
List
<
SweetManualArtistListDto
>
allReturnArtist
=
new
ArrayList
();
List
<
SweetManualArtistListDto
>
allReturnArtist
=
new
ArrayList
();
...
@@ -103,7 +103,7 @@ public class SweetAppletController {
...
@@ -103,7 +103,7 @@ public class SweetAppletController {
endPosition
=
(
page
)
*
size
;
endPosition
=
(
page
)
*
size
;
}
}
if
(
page
!=
null
&&
dateTime
.
equals
(
""
)
)
{
if
(
page
!=
null
&&
dateTime
==
null
)
{
try
{
try
{
dateTime
=
data
.
getDate
().
get
(
0
);
dateTime
=
data
.
getDate
().
get
(
0
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
@@ -120,14 +120,14 @@ public class SweetAppletController {
...
@@ -120,14 +120,14 @@ public class SweetAppletController {
}
}
}
}
if
(
!
dateTime
.
isEmpty
()
)
{
if
(
dateTime
!=
null
)
{
if
(
item
.
getPerformanceStart
().
contains
(
dateTime
))
{
if
(
item
.
getPerformanceStart
().
contains
(
dateTime
))
{
//保留
//保留
isSave
=
true
;
isSave
=
true
;
}
}
}
}
if
(
!
stage
.
isEmpty
()
)
{
if
(
stage
!=
null
)
{
if
(
item
.
getTitle
().
equalsIgnoreCase
(
stage
))
{
if
(
item
.
getTitle
().
equalsIgnoreCase
(
stage
))
{
//保留
//保留
isSave
=
true
;
isSave
=
true
;
...
...
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