记得上下班打卡 | 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
b17f2709
Commit
b17f2709
authored
Jun 26, 2021
by
jiangxiulong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into test
parents
0650c726
1a5829e8
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
115 additions
and
104 deletions
+115
-104
RefundSearchParam.java
.../liquidnet/service/kylin/dto/param/RefundSearchParam.java
+2
-0
KylinOrderRefundEntitiesVo.java
...ervice/kylin/dto/vo/mongo/KylinOrderRefundEntitiesVo.java
+1
-1
KylinOrderRefundsVo.java
...idnet/service/kylin/dto/vo/mongo/KylinOrderRefundsVo.java
+25
-22
db_liquidnet_admin_data.sql
...quidnet-client-admin-web/docu/db_liquidnet_admin_data.sql
+7
-0
details.html
...ces/templates/zhengzai/kylin/order/orderList/details.html
+26
-49
refund.html
...ain/resources/templates/zhengzai/kylin/refund/refund.html
+7
-11
KylinOrderRefundsServiceImpl.java
...gzai/kylin/service/impl/KylinOrderRefundsServiceImpl.java
+1
-1
KylinOrderTicketsAdminServiceImpl.java
...kylin/service/impl/KylinOrderTicketsAdminServiceImpl.java
+16
-0
MongoVoUtils.java
...idnet/client/admin/zhengzai/kylin/utils/MongoVoUtils.java
+13
-10
OrderRefundDao.java
.../java/com/liquidnet/service/kylin/dao/OrderRefundDao.java
+2
-0
KylinOrderRefundsMapper.xml
...iquidnet.service.kylin.mapper/KylinOrderRefundsMapper.xml
+7
-6
KylinRefundsStatusServiceImpl.java
...ice/kylin/service/impl/KylinRefundsStatusServiceImpl.java
+4
-2
OrderRefundsCallbackServiceImpl.java
...e/kylin/service/impl/OrderRefundsCallbackServiceImpl.java
+4
-2
No files found.
liquidnet-bus-api/liquidnet-service-kylin-api/src/main/java/com/liquidnet/service/kylin/dto/param/RefundSearchParam.java
View file @
b17f2709
...
...
@@ -22,6 +22,8 @@ public class RefundSearchParam implements Serializable {
private
String
orderRefundCode
;
private
String
orderCode
;
private
Integer
status
;
@ApiModelProperty
(
value
=
"页数"
,
example
=
"0"
)
...
...
liquidnet-bus-api/liquidnet-service-kylin-api/src/main/java/com/liquidnet/service/kylin/dto/vo/mongo/KylinOrderRefundEntitiesVo.java
View file @
b17f2709
...
...
@@ -11,7 +11,7 @@ import java.time.LocalDateTime;
@Data
public
class
KylinOrderRefundEntitiesVo
{
private
Integer
mid
;
private
String
orderRefundsEntities
_i
d
;
private
String
orderRefundsEntities
I
d
;
private
String
orderRefundsId
;
private
String
orderTicketEntitiesId
;
private
BigDecimal
refundPrice
;
...
...
liquidnet-bus-api/liquidnet-service-kylin-api/src/main/java/com/liquidnet/service/kylin/dto/vo/mongo/KylinOrderRefundsVo.java
View file @
b17f2709
...
...
@@ -5,36 +5,39 @@ import lombok.Data;
import
java.math.BigDecimal
;
import
java.time.LocalDateTime
;
import
java.util.List
;
@Data
public
class
KylinOrderRefundsVo
{
private
Integer
mid
;
private
String
order
_refunds_i
d
;
private
String
order
_tickets_i
d
;
private
String
order
_refund_c
ode
;
private
String
order
_refund_batches_i
d
;
private
String
refund
_c
ode
;
private
LocalDateTime
refund
_a
t
;
private
String
refund
_i
d
;
private
String
refund
_e
rror
;
private
String
order
RefundsI
d
;
private
String
order
TicketsI
d
;
private
String
order
RefundC
ode
;
private
String
order
Refund_batchesI
d
;
private
String
refund
C
ode
;
private
LocalDateTime
refund
A
t
;
private
String
refund
I
d
;
private
String
refund
E
rror
;
private
BigDecimal
price
;
private
BigDecimal
price
_e
xpress
;
private
BigDecimal
price
E
xpress
;
private
Integer
status
;
private
Integer
type
;
private
String
applicant
_i
d
;
private
String
applicant
_n
ame
;
private
LocalDateTime
applicant
_a
t
;
private
String
applicant
I
d
;
private
String
applicant
N
ame
;
private
LocalDateTime
applicant
A
t
;
private
String
reason
;
private
String
auditor
_i
d
;
private
String
auditor
_n
ame
;
private
LocalDateTime
auditor
_a
t
;
private
String
auditor
I
d
;
private
String
auditor
N
ame
;
private
LocalDateTime
auditor
A
t
;
private
String
reject
;
private
String
executor
_i
d
;
private
String
executor
_n
ame
;
private
LocalDateTime
executor
_a
t
;
private
String
executor
I
d
;
private
String
executor
N
ame
;
private
LocalDateTime
executor
A
t
;
private
String
refuse
;
private
Integer
refund_type
;
private
String
refund_cate
;
private
LocalDateTime
created_at
;
private
LocalDateTime
updated_at
;
private
Integer
refundType
;
private
String
refundCate
;
private
LocalDateTime
createdAt
;
private
LocalDateTime
updatedAt
;
private
List
<
KylinOrderRefundEntitiesVo
>
orderRefundEntitiesVos
;
}
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/docu/db_liquidnet_admin_data.sql
View file @
b17f2709
...
...
@@ -73,6 +73,7 @@ INSERT INTO test_ln_scene.sys_dict_type (dict_id, dict_name, dict_type, status,
INSERT
INTO
test_ln_scene
.
sys_dict_type
(
dict_id
,
dict_name
,
dict_type
,
status
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
107
,
'支付状态'
,
'zhengzai_payment_type'
,
'0'
,
'admin'
,
'2021-06-11 16:01:37'
,
''
,
null
,
'票务状态'
);
INSERT
INTO
test_ln_scene
.
sys_dict_type
(
dict_id
,
dict_name
,
dict_type
,
status
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
108
,
'出票状态'
,
'zhengzai_ticket_status'
,
'0'
,
'admin'
,
'2021-06-11 16:03:36'
,
''
,
null
,
'订单出票状态'
);
INSERT
INTO
test_ln_scene
.
sys_dict_type
(
dict_id
,
dict_name
,
dict_type
,
status
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
109
,
'票种类型'
,
'zhengzai_ticket_type'
,
'0'
,
'admin'
,
'2021-06-18 11:12:28'
,
''
,
null
,
null
);
INSERT
INTO
test_ln_scene
.
sys_dict_type
(
dict_id
,
dict_name
,
dict_type
,
status
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
110
,
'会员订单状态'
,
'zhengzai_member_order_status'
,
'0'
,
'admin'
,
'2021-06-20 17:18:48'
,
''
,
null
,
'会员订单状态'
);
-- sys_dict_data
INSERT
INTO
test_ln_scene
.
sys_dict_data
(
dict_code
,
dict_sort
,
dict_label
,
dict_value
,
dict_type
,
css_class
,
list_class
,
is_default
,
status
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
100
,
2
,
'支付宝'
,
'alipay'
,
'zhengzai_pay_type'
,
null
,
null
,
'Y'
,
'0'
,
'admin'
,
'2021-06-07 10:39:11'
,
''
,
null
,
'支付宝'
);
...
...
@@ -110,3 +111,9 @@ INSERT INTO test_ln_scene.sys_dict_data (dict_code, dict_sort, dict_label, dict_
INSERT
INTO
test_ln_scene
.
sys_dict_data
(
dict_code
,
dict_sort
,
dict_label
,
dict_value
,
dict_type
,
css_class
,
list_class
,
is_default
,
status
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
133
,
2
,
'已出票'
,
'1'
,
'zhengzai_ticket_status'
,
null
,
null
,
'Y'
,
'0'
,
'admin'
,
'2021-06-11 16:07:41'
,
''
,
null
,
null
);
INSERT
INTO
test_ln_scene
.
sys_dict_data
(
dict_code
,
dict_sort
,
dict_label
,
dict_value
,
dict_type
,
css_class
,
list_class
,
is_default
,
status
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
134
,
1
,
'单日票'
,
'1'
,
'zhengzai_ticket_type'
,
null
,
null
,
'Y'
,
'0'
,
'admin'
,
'2021-06-18 11:13:08'
,
''
,
null
,
null
);
INSERT
INTO
test_ln_scene
.
sys_dict_data
(
dict_code
,
dict_sort
,
dict_label
,
dict_value
,
dict_type
,
css_class
,
list_class
,
is_default
,
status
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
135
,
2
,
'通票'
,
'2'
,
'zhengzai_ticket_type'
,
null
,
null
,
'Y'
,
'0'
,
'admin'
,
'2021-06-18 11:13:36'
,
''
,
null
,
null
);
INSERT
INTO
test_ln_scene
.
sys_dict_data
(
dict_code
,
dict_sort
,
dict_label
,
dict_value
,
dict_type
,
css_class
,
list_class
,
is_default
,
status
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
136
,
1
,
'未支付'
,
'0'
,
'zhengzai_member_order_status'
,
null
,
null
,
'Y'
,
'0'
,
'admin'
,
'2021-06-20 17:19:22'
,
''
,
null
,
null
);
INSERT
INTO
test_ln_scene
.
sys_dict_data
(
dict_code
,
dict_sort
,
dict_label
,
dict_value
,
dict_type
,
css_class
,
list_class
,
is_default
,
status
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
137
,
2
,
'已支付'
,
'1'
,
'zhengzai_member_order_status'
,
null
,
null
,
'Y'
,
'0'
,
'admin'
,
'2021-06-20 17:19:37'
,
''
,
null
,
null
);
INSERT
INTO
test_ln_scene
.
sys_dict_data
(
dict_code
,
dict_sort
,
dict_label
,
dict_value
,
dict_type
,
css_class
,
list_class
,
is_default
,
status
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
138
,
3
,
'已关闭'
,
'2'
,
'zhengzai_member_order_status'
,
null
,
null
,
'Y'
,
'0'
,
'admin'
,
'2021-06-20 17:21:41'
,
''
,
null
,
null
);
INSERT
INTO
test_ln_scene
.
sys_dict_data
(
dict_code
,
dict_sort
,
dict_label
,
dict_value
,
dict_type
,
css_class
,
list_class
,
is_default
,
status
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
139
,
3
,
'超时付'
,
'3'
,
'zhengzai_member_order_status'
,
null
,
null
,
'Y'
,
'0'
,
'admin'
,
'2021-06-20 17:22:04'
,
''
,
null
,
null
);
INSERT
INTO
test_ln_scene
.
sys_dict_data
(
dict_code
,
dict_sort
,
dict_label
,
dict_value
,
dict_type
,
css_class
,
list_class
,
is_default
,
status
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
140
,
5
,
'退款中'
,
'4'
,
'zhengzai_member_order_status'
,
null
,
null
,
'Y'
,
'0'
,
'admin'
,
'2021-06-20 17:22:28'
,
''
,
null
,
null
);
INSERT
INTO
test_ln_scene
.
sys_dict_data
(
dict_code
,
dict_sort
,
dict_label
,
dict_value
,
dict_type
,
css_class
,
list_class
,
is_default
,
status
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
141
,
6
,
'已退款'
,
'5'
,
'zhengzai_member_order_status'
,
null
,
null
,
'Y'
,
'0'
,
'admin'
,
'2021-06-20 17:22:45'
,
''
,
null
,
null
);
\ No newline at end of file
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/kylin/order/orderList/details.html
View file @
b17f2709
...
...
@@ -9,86 +9,64 @@
<form
class=
"form-horizontal m"
id=
"form-tickets-edit"
th:object=
"${orderDetailsVo}"
>
<!-- <input name="mid" th:field="*{mid}" type="hidden">-->
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label is-required"
>
演出名称:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"performanceTitle"
th:field=
"*{performanceVo.title}"
class=
"form-control"
type=
"text"
required
>
</div>
<label
class=
"col-sm-3 control-label is-required"
>
演出名称2:
</label>
<div
class=
"form-control-static"
th:text=
"*{performanceVo.title}"
/>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label is-required"
>
票名:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"performanceTitle"
th:field=
"*{ticketsVo.title}"
class=
"form-control"
type=
"text"
required
>
</div>
<div
class=
"form-control-static"
th:text=
"*{ticketsVo.title}"
/>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label is-required"
>
单价:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"price"
th:field=
"*{orderTicketVo.price}"
class=
"form-control"
type=
"text"
required
>
</div>
<div
class=
"form-control-static"
th:text=
"*{orderTicketVo.price}"
/>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label is-required"
>
数量:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"number"
th:field=
"*{orderTicketVo.number}"
class=
"form-control"
type=
"text"
required
>
</div>
<div
class=
"form-control-static"
th:text=
"*{orderTicketVo.number}"
/>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label is-required"
>
适用日期:
</label>
<div
class=
"
col-sm-8
"
>
<input
name=
"payCountdownMinute"
th:field=
"*{ticketsVo.useStart}"
class=
"form-control"
type=
"text"
re
quired
>
<div
class=
"
form-control-static"
th:text=
"*{ticketsVo.useStart}
"
>
<input
name=
"payCountdownMinute"
th:field=
"*{ticketsVo.useStart}"
class=
"form-control"
type=
"text"
re
adonly
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label is-required"
>
应付价格:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"priceTotal"
th:field=
"*{orderTicketVo.priceTotal}"
class=
"form-control"
type=
"text"
required
>
</div>
<div
class=
"form-control-static"
th:text=
"*{orderTicketVo.priceTotal}"
/>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label is-required"
>
优惠价格:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"priceVoucher"
th:field=
"*{orderTicketVo.priceVoucher}"
class=
"form-control"
type=
"text"
required
>
</div>
<div
class=
"form-control-static"
th:text=
"*{orderTicketVo.priceTotal}"
/>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label is-required"
>
实付价格:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"priceActual"
th:field=
"*{orderTicketVo.priceActual}"
class=
"form-control"
type=
"text"
required
>
</div>
<div
class=
"form-control-static"
th:text=
"*{orderTicketVo.priceActual}"
/>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label is-required"
>
快递价格:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"priceExpress"
th:field=
"*{orderTicketVo.priceExpress}"
class=
"form-control"
type=
"text"
required
>
</div>
<div
class=
"form-control-static"
th:text=
"*{orderTicketVo.priceExpress}"
/>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label is-required"
>
退款价格:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"priceRefund"
th:field=
"*{orderTicketVo.priceRefund}"
class=
"form-control"
type=
"text"
required
>
</div>
<div
class=
"form-control-static"
th:text=
"*{orderTicketVo.priceRefund}"
/>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label is-required"
>
订单状态:
</label>
<div
class=
"col-sm-8"
>
<!-- <input name="priceVoucher" th:field="*{orderTicketVo.}" class="form-control" type="text" required>-->
</div>
<div
class=
"form-control-static"
th:text=
"*{@dict.getLabel('zhengzai_order_status',orderTicketVo.status)}"
/>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label is-required"
>
转增状态:
</label>
<div
class=
"
col-sm-8
"
>
<div
class=
"
form-control-static
"
>
<!-- <input name="priceVoucher" th:field="*{priceVoucher}" class="form-control" type="text" required>-->
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label is-required"
>
订单号:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"orderCode"
th:field=
"*{orderTicketVo.orderCode}"
class=
"form-control"
type=
"text"
required
>
</div>
<div
class=
"form-control-static"
th:text=
"*{orderTicketVo.orderCode}"
/>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
生成时间:
</label>
<div
class=
"
col-sm-8
"
>
<div
class=
"
form-control-static
"
>
<div
class=
"input-group date"
>
<!-- <input name="createdAt" th:value="${#dates.format(orderTicketVo.createdAt, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">-->
<input
name=
"createdAt"
th:value=
"*{orderTicketVo.createdAt}"
class=
"form-control"
placeholder=
"yyyy-MM-dd"
type=
"text"
>
...
...
@@ -98,34 +76,33 @@
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
实际支付方式:
</label>
<div
class=
"col-sm-8"
>
<select
name=
"paymentType"
th:with=
"type=${@dict.getType('zhengzai_pay_type')}"
>
<option
th:each=
"dict : ${type}"
th:text=
"${dict.dictLabel}"
th:value=
"${dict.dictValue}"
th:field=
"*{orderTicketVo.paymentType}"
readonly
></option>
</select>
</div>
<div
class=
"form-control-static"
th:text=
"*{@dict.getLabel('zhengzai_pay_type',orderTicketVo.payType)}"
/>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label is-required"
>
微信订单号:
</label>
<div
class=
"
col-sm-8
"
>
<div
class=
"
form-control-static
"
>
<!-- <input name="orderCode" th:field="*{orderCode}" class="form-control" type="text" required>-->
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
支付时间:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"timePay"
th:field=
"*{orderTicketVo.timePay}"
class=
"form-control"
type=
"text"
>
</div>
<div
class=
"form-control-static"
th:text=
"*{orderTicketVo.timePay}"
/>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label is-required"
>
取票方式:
</label>
<div
class=
"
col-sm-8
"
th:text=
"${@dict.getLabel('zhengzai_get_ticket_type',orderDetailsVo.orderTicketVo.getTicketType)}"
>
<div
class=
"
form-control-static
"
th:text=
"${@dict.getLabel('zhengzai_get_ticket_type',orderDetailsVo.orderTicketVo.getTicketType)}"
>
</div>
</div>
<div
th:each=
"ticketEntity,ticketEntityStat : *{orderTicketEntitiesVo}"
class=
"select-list"
>
<div
th:each=
"ticketEntity,ticketEntityStat : *{orderTicketEntitiesVo}"
class=
"form-group select-list"
>
<div
class=
"hr-line-dashed"
></div>
<label
class=
"col-sm-3 control-label is-required"
>
取票人[[${ticketEntityStat.count}]]:
</label>
<div
class=
"col-sm-3"
>
<input
th:value=
"${ticketEntity.enterName}"
class=
"form-control"
type=
"text"
readonly
>
</div>
<label
class=
"col-sm-3 control-label"
>
证件类型:
</label>
<div
class=
"col-sm-3"
>
<input
th:value=
"${@dict.getLabel('zhengzai_certificate_type',ticketEntity.enterType)}"
class=
"form-control"
type=
"text"
readonly
>
</div>
<label
class=
"col-sm-3 control-label"
>
证件号:
</label>
<div
class=
"col-sm-3"
>
<input
th:value=
"${ticketEntity.enterIdCode}"
class=
"form-control"
type=
"text"
readonly
>
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/kylin/refund/refund.html
View file @
b17f2709
...
...
@@ -11,12 +11,12 @@
<div
class=
"select-list"
>
<ul>
<li>
<label>
票务
订单ID:
</label>
<label>
订单ID:
</label>
<input
type=
"text"
name=
"orderTicketsId"
/>
</li>
<li>
<label>
退款
编号:
</label>
<input
type=
"text"
name=
"order
Refund
Code"
/>
<label>
订单
编号:
</label>
<input
type=
"text"
name=
"orderCode"
/>
</li>
<li>
<label>
退款状态:
</label>
...
...
@@ -197,19 +197,15 @@
},
{
field
:
'orderRefundsId'
,
title
:
'退款
id
'
title
:
'退款
ID
'
},
{
field
:
'orderTicketsId'
,
title
:
'
票务订单id
'
title
:
'
订单ID
'
},
{
field
:
'orderRefundCode'
,
title
:
'退款编号'
},
{
field
:
'refundCode'
,
title
:
'退款中心退款编号'
field
:
'orderCode'
,
title
:
'订单编号'
},
{
field
:
'price'
,
...
...
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 @
b17f2709
...
...
@@ -354,7 +354,7 @@ public class KylinOrderRefundsServiceImpl extends ServiceImpl<KylinOrderRefundsM
}
pageInfoTmp
=
new
PageInfo
(
voList
);
}
catch
(
Exception
e
)
{
return
new
PageInfo
();
return
new
PageInfo
(
new
ArrayList
()
);
}
return
pageInfoTmp
;
}
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/kylin/service/impl/KylinOrderTicketsAdminServiceImpl.java
View file @
b17f2709
...
...
@@ -15,6 +15,7 @@ import com.liquidnet.service.kylin.dto.vo.mongo.KylinOrderTicketVo;
import
com.liquidnet.service.kylin.dto.vo.mongo.KylinPerformanceVo
;
import
com.liquidnet.service.kylin.entity.*
;
import
com.liquidnet.service.kylin.mapper.*
;
import
com.liquidnet.service.kylin.service.IKylinOrderTicketStatusService
;
import
com.liquidnet.service.kylin.service.admin.IKylinOrderTicketsAdminService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -46,6 +47,9 @@ public class KylinOrderTicketsAdminServiceImpl extends ServiceImpl<KylinOrderTic
@Autowired
private
KylinOrderTicketRelationsMapper
kylinOrderTicketRelationsMapper
;
@Autowired
private
KylinOrderTicketStatusMapper
kylinOrderTicketStatusMapper
;
@Autowired
private
KylinPerformancesMapper
kylinPerformancesMapper
;
...
...
@@ -91,6 +95,18 @@ public class KylinOrderTicketsAdminServiceImpl extends ServiceImpl<KylinOrderTic
BeanUtil
.
copy
(
kylinOrderTickets
,
orderTicketVo
);
orderTicketVo
.
setPerformanceId
(
kylinOrderTicketRelations
.
getPerformanceId
());
orderTicketVo
.
setTicketId
(
kylinOrderTicketRelations
.
getTicketId
());
//获取订单状态
LambdaQueryWrapper
<
KylinOrderTicketStatus
>
orderStatusWrapper
=
new
LambdaQueryWrapper
<>();
if
(
StringUtils
.
isNotNull
(
orderId
))
{
orderStatusWrapper
.
eq
(
KylinOrderTicketStatus:
:
getOrderId
,
orderId
);
}
KylinOrderTicketStatus
kylinOrderTicketStatus
=
kylinOrderTicketStatusMapper
.
selectOne
(
orderStatusWrapper
);
BeanUtil
.
copy
(
kylinOrderTickets
,
orderTicketVo
);
orderTicketVo
.
setPerformanceId
(
kylinOrderTicketRelations
.
getPerformanceId
());
orderTicketVo
.
setTicketId
(
kylinOrderTicketRelations
.
getTicketId
());
orderTicketVo
.
setStatus
(
kylinOrderTicketStatus
.
getStatus
());
orderTicketVo
.
setPayStatus
(
kylinOrderTicketStatus
.
getPayStatus
());
if
(
null
!=
orderTicketVo
)
{
// Expresses expresses = expressesMapper.selectOne(new UpdateWrapper<Expresses>().eq("order_id", orderId).eq("order_type", "order_ticket"));
//获取演出信息
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/kylin/utils/MongoVoUtils.java
View file @
b17f2709
...
...
@@ -161,24 +161,27 @@ public class MongoVoUtils {
* @param type 1新增 2修改
* @param orderId 订单id [需要新增或者修改的订单id]
*/
public
Boolean
resetOrderListVo
(
String
userId
,
Integer
type
,
String
orderId
,
KylinOrderTicketVo
dataSingle
)
{
public
Boolean
resetOrderListVo
(
String
userId
,
Integer
type
,
String
orderId
,
KylinOrderTicketVo
dataSingle
)
{
List
<
KylinOrderListVo
>
vo
=
new
ArrayList
<>();
List
<
KylinOrderListVo
>
redisVo
=
new
ArrayList
();
KylinOrderListVo
voItem
=
new
KylinOrderListVo
();
KylinOrderTicketVo
data
;
if
(
dataSingle
==
null
)
{
data
=
dataUtils
.
getOrderTicketVo
(
orderId
);
data
=
(
KylinOrderTicketVo
)
redisUtil
.
get
(
KylinRedisConst
.
ORDER
+
orderId
);
}
else
{
data
=
dataSingle
;
}
BeanUtils
.
copyProperties
(
data
,
voItem
);
redisVo
.
add
(
voItem
);
List
<
KylinOrderListVo
>
redisData
=
dataUtils
.
getOrderList
(
userId
);
if
(
redisData
.
size
()
>
0
)
{
if
(
redisData
.
get
(
0
).
getOrderTicketsId
().
equals
(
orderId
))
{
redisData
.
remove
(
0
);
List
<
KylinOrderListVo
>
redisData
=
(
List
<
KylinOrderListVo
>)
redisUtil
.
get
(
KylinRedisConst
.
ORDER_LIST
+
userId
);
if
(
type
==
1
)
{
redisVo
.
add
(
voItem
);
if
(
redisData
.
size
()
>
0
)
{
if
(
redisData
.
get
(
0
).
getOrderTicketsId
().
equals
(
orderId
))
{
redisData
.
remove
(
0
);
}
}
}
redisVo
.
addAll
(
redisData
);
switch
(
type
)
{
...
...
@@ -190,13 +193,13 @@ public class MongoVoUtils {
if
(
i
==
0
)
{
vo
.
add
(
voItem
);
}
else
{
vo
.
add
(
redisVo
.
get
(
i
-
1
));
vo
.
add
(
redisVo
.
get
(
i
));
}
}
if
(
redisVo
.
size
()
==
0
)
{
vo
.
add
(
voItem
);
}
dataUtils
.
setOrderList
(
userId
,
vo
);
redisUtil
.
set
(
KylinRedisConst
.
ORDER_LIST
+
userId
,
vo
);
return
true
;
case
2
:
for
(
int
i
=
0
;
i
<
redisVo
.
size
();
i
++)
{
...
...
@@ -209,7 +212,7 @@ public class MongoVoUtils {
vo
.
add
(
redisVo
.
get
(
i
));
}
}
dataUtils
.
setOrderList
(
userId
,
vo
);
redisUtil
.
set
(
KylinRedisConst
.
ORDER_LIST
+
userId
,
vo
);
return
true
;
default
:
return
false
;
...
...
liquidnet-bus-do/liquidnet-service-kylin-do/src/main/java/com/liquidnet/service/kylin/dao/OrderRefundDao.java
View file @
b17f2709
...
...
@@ -64,6 +64,8 @@ public class OrderRefundDao implements Serializable {
private
String
updatedAt
;
private
String
orderCode
;
public
void
setStatusName
(
Integer
status
){
this
.
status
=
status
;
switch
(
status
){
...
...
liquidnet-bus-do/liquidnet-service-kylin-do/src/main/resources/com.liquidnet.service.kylin.mapper/KylinOrderRefundsMapper.xml
View file @
b17f2709
...
...
@@ -34,17 +34,18 @@
<result
column=
"created_at"
property=
"createdAt"
/>
</resultMap>
<select
id=
"misRefundList"
resultType=
"com.liquidnet.service.kylin.dao.OrderRefundDao"
resultMap=
"misRefundListResult"
>
SELECT *
FROM kylin_order_refunds
SELECT a.*, b.order_code
FROM kylin_order_refunds AS a
JOIN kylin_order_tickets AS b ON a.order_tickets_id = b.order_tickets_id
<where>
<if
test=
"orderTicketsId!=''"
>
AND order_tickets_id = #{orderTicketsId}
AND
a.
order_tickets_id = #{orderTicketsId}
</if>
<if
test=
"order
Refund
Code!=''"
>
AND
order_refund_code = #{orderRefund
Code}
<if
test=
"orderCode!=''"
>
AND
b.order_code = #{order
Code}
</if>
<if
test=
"status!=''"
>
AND status = #{status}
AND
a.
status = #{status}
</if>
</where>
</select>
...
...
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/service/impl/KylinRefundsStatusServiceImpl.java
View file @
b17f2709
...
...
@@ -203,11 +203,13 @@ public class KylinRefundsStatusServiceImpl {
if
(
refundInfo
.
getType
()
==
KylinTableStatusConst
.
ORDER_REFUND_TYPE_APPLY
)
{
// 退还库存
for
(
String
entitiesId
:
orderTicketEntitiesIdsArr
)
{
dataUtils
.
changeSurplusGeneral
(
entitiesId
,
1
);
KylinOrderTicketEntities
entitiesInfo
=
kylinOrderTicketEntitiesMapper
.
selectOne
(
new
QueryWrapper
<
KylinOrderTicketEntities
>().
eq
(
"order_ticket_entities_id"
,
entitiesId
)
);
dataUtils
.
changeBuyInfo
(
orderInfo
.
getUserId
(),
""
,
orderRelations
.
getPerformanceId
(),
entitiesInfo
.
getTicketId
(),
-
1
);
if
(
entitiesInfo
.
getIsPayment
()
==
KylinTableStatusConst
.
ENTITIES_IS_PAYMENT3
)
{
dataUtils
.
changeSurplusGeneral
(
entitiesInfo
.
getTicketId
(),
1
);
dataUtils
.
changeBuyInfo
(
orderInfo
.
getUserId
(),
""
,
orderRelations
.
getPerformanceId
(),
entitiesInfo
.
getTicketId
(),
-
1
);
}
}
}
...
...
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/service/impl/OrderRefundsCallbackServiceImpl.java
View file @
b17f2709
...
...
@@ -164,11 +164,13 @@ public class OrderRefundsCallbackServiceImpl extends ServiceImpl<KylinOrderRefun
if
(
res
)
{
// 超时直接退还库存
for
(
String
entitiesId
:
ticketEntityIds
)
{
dataUtils
.
changeSurplusGeneral
(
entitiesId
,
1
);
KylinOrderTicketEntities
entitiesInfo
=
kylinOrderTicketEntitiesMapper
.
selectOne
(
new
QueryWrapper
<
KylinOrderTicketEntities
>().
eq
(
"order_ticket_entities_id"
,
entitiesId
)
);
dataUtils
.
changeBuyInfo
(
orderInfo
.
getUserId
(),
""
,
orderRelations
.
getPerformanceId
(),
entitiesInfo
.
getTicketId
(),
-
1
);
if
(
entitiesInfo
.
getIsPayment
()
==
KylinTableStatusConst
.
ENTITIES_IS_PAYMENT3
)
{
dataUtils
.
changeSurplusGeneral
(
entitiesInfo
.
getTicketId
(),
1
);
dataUtils
.
changeBuyInfo
(
orderInfo
.
getUserId
(),
""
,
orderRelations
.
getPerformanceId
(),
entitiesInfo
.
getTicketId
(),
-
1
);
}
}
return
true
;
}
else
{
...
...
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