记得上下班打卡 | 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
4eb95d23
Commit
4eb95d23
authored
Jun 20, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into test
parents
503dc979
e98ca741
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
87 deletions
+26
-87
order.html
...ources/templates/zhengzai/adam/order/orderList/order.html
+7
-7
MemberOrderDto.java
...n/java/com/liquidnet/service/adam/dto/MemberOrderDto.java
+1
-0
AdamMemberMapper.xml
...es/com/liquidnet/service/adam/mapper/AdamMemberMapper.xml
+0
-55
AdamMemberOrderMapper.xml
...m/liquidnet/service/adam/mapper/AdamMemberOrderMapper.xml
+11
-10
KylinOrderTicketsServiceImpl.java
...vice/kylin/service/impl/KylinOrderTicketsServiceImpl.java
+7
-15
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/adam/order/orderList/order.html
View file @
4eb95d23
...
@@ -20,36 +20,36 @@
...
@@ -20,36 +20,36 @@
</li>
</li>
<li>
<li>
<label>
支付方式:
</label>
<label>
支付方式:
</label>
<select
name=
"pay
ment
Type"
th:with=
"type=${@dict.getType('zhengzai_pay_type')}"
>
<select
name=
"payType"
th:with=
"type=${@dict.getType('zhengzai_pay_type')}"
>
<option
value=
""
>
所有
</option>
<option
value=
""
>
所有
</option>
<option
th:each=
"dict : ${type}"
th:text=
"${dict.dictLabel}"
th:value=
"${dict.dictValue}"
></option>
<option
th:each=
"dict : ${type}"
th:text=
"${dict.dictLabel}"
th:value=
"${dict.dictValue}"
></option>
</select>
</select>
</li>
</li>
<li>
<li>
<label>
订单状态:
</label>
<label>
订单状态:
</label>
<select
name=
"
orderStatus
"
th:with=
"type=${@dict.getType('zhengzai_member_order_status')}"
>
<select
name=
"
state
"
th:with=
"type=${@dict.getType('zhengzai_member_order_status')}"
>
<option
value=
""
>
所有
</option>
<option
value=
""
>
所有
</option>
<option
th:each=
"dict : ${type}"
th:text=
"${dict.dictLabel}"
th:value=
"${dict.dictValue}"
></option>
<option
th:each=
"dict : ${type}"
th:text=
"${dict.dictLabel}"
th:value=
"${dict.dictValue}"
></option>
</select>
</select>
</li>
</li>
<li>
<li>
<label>
购买方式:
</label>
<label>
购买方式:
</label>
<select
name=
"
buyM
ode"
th:with=
"type=${@dict.getType('zhengzai_buy_mode')}"
>
<select
name=
"
m
ode"
th:with=
"type=${@dict.getType('zhengzai_buy_mode')}"
>
<option
th:each=
"dict : ${type}"
th:text=
"${dict.dictLabel}"
th:value=
"${dict.dictValue}"
></option>
<option
th:each=
"dict : ${type}"
th:text=
"${dict.dictLabel}"
th:value=
"${dict.dictValue}"
></option>
</select>
</select>
</li>
</li>
<li>
<li>
<label>
客户端:
</label>
<label>
客户端:
</label>
<select
name=
"
orderS
ource"
th:with=
"type=${@dict.getType('zhengzai_order_source')}"
>
<select
name=
"
s
ource"
th:with=
"type=${@dict.getType('zhengzai_order_source')}"
>
<option
value=
""
>
所有
</option>
<option
value=
""
>
所有
</option>
<option
th:each=
"dict : ${type}"
th:text=
"${dict.dictLabel}"
th:value=
"${dict.dictValue}"
></option>
<option
th:each=
"dict : ${type}"
th:text=
"${dict.dictLabel}"
th:value=
"${dict.dictValue}"
></option>
</select>
</select>
</li>
</li>
<li
class=
"select-time"
>
<li
class=
"select-time"
>
<label>
支付时间:
</label>
<label>
支付时间:
</label>
<input
type=
"text"
class=
"time-input"
id=
"time
PayStart"
placeholder=
"开始日期"
name=
"params[beginTime]
"
/>
<input
type=
"text"
class=
"time-input"
id=
"time
Start"
placeholder=
"开始日期"
name=
"paymentAtStart
"
/>
<span>
-
</span>
<span>
-
</span>
<input
type=
"text"
class=
"time-input"
id=
"time
PayEnd"
placeholder=
"结束日期"
name=
"params[endTime]
"
/>
<input
type=
"text"
class=
"time-input"
id=
"time
End"
placeholder=
"结束日期"
name=
"paymentAtEnd
"
/>
</li>
</li>
<li>
<li>
<a
class=
"btn btn-primary btn-rounded btn-sm"
onclick=
"$.table.search()"
><i
class=
"fa fa-search"
></i>
搜索
</a>
<a
class=
"btn btn-primary btn-rounded btn-sm"
onclick=
"$.table.search()"
><i
class=
"fa fa-search"
></i>
搜索
</a>
...
@@ -113,7 +113,7 @@
...
@@ -113,7 +113,7 @@
title
:
'支付方式'
title
:
'支付方式'
},
},
{
{
field
:
'price
Paid
'
,
field
:
'price'
,
title
:
'价格(元)'
title
:
'价格(元)'
},
},
{
{
...
...
liquidnet-bus-do/liquidnet-service-adam-do/src/main/java/com/liquidnet/service/adam/dto/MemberOrderDto.java
View file @
4eb95d23
...
@@ -25,4 +25,5 @@ public class MemberOrderDto {
...
@@ -25,4 +25,5 @@ public class MemberOrderDto {
private
String
createdAt
;
private
String
createdAt
;
private
String
mobile
;
private
String
mobile
;
private
String
source
;
private
String
source
;
private
String
mode
;
}
}
liquidnet-bus-do/liquidnet-service-adam-do/src/main/resources/com/liquidnet/service/adam/mapper/AdamMemberMapper.xml
View file @
4eb95d23
...
@@ -22,18 +22,6 @@
...
@@ -22,18 +22,6 @@
<result
column=
"created_at"
property=
"createdAt"
/>
<result
column=
"created_at"
property=
"createdAt"
/>
<result
column=
"updated_at"
property=
"updatedAt"
/>
<result
column=
"updated_at"
property=
"updatedAt"
/>
</resultMap>
</resultMap>
<resultMap
id=
"orderListResult"
type=
"com.liquidnet.service.adam.dto.MemberOrderDto"
>
<result
column=
"member_id"
property=
"uid"
/>
<result
column=
"name"
property=
"orderNo"
/>
<result
column=
"title"
property=
"state"
/>
<result
column=
"sub_title"
property=
"payType"
/>
<result
column=
"start_no"
property=
"price"
/>
<result
column=
"icon"
property=
"pricePaid"
/>
<result
column=
"avatar"
property=
"paymentAt"
/>
<result
column=
"type"
property=
"createdAt"
/>
<result
column=
"interests_detail"
property=
"mobile"
/>
<result
column=
"notes"
property=
"source"
/>
</resultMap>
<!-- sql -->
<!-- sql -->
<select
id=
"getFirstMember"
resultMap=
"MemberResult"
>
<select
id=
"getFirstMember"
resultMap=
"MemberResult"
>
SELECT
SELECT
...
@@ -59,47 +47,4 @@
...
@@ -59,47 +47,4 @@
FROM adam_member
FROM adam_member
limit 0,1
limit 0,1
</select>
</select>
<select
id=
"getMemberOrderList"
resultMap=
"orderListResult"
>
select amo.uid,
amo.order_no,
amo.state,
amo.pay_type,
amo.price,
amo.price_paid,
amo.payment_at,
amo.created_at,
au.mobile,
amo.source,
amo.mode
from adam_member_order amo
inner join adam_user_member aum
on amo.uid = aum.uid
inner join adam_user au on aum.uid = au.uid
<where>
<if
test=
"orderNo != null and orderNo != ''"
>
and amo.order_no = #{orderNo}
</if>
<if
test=
"mobile != null and mobile != ''"
>
and au.mobile = #{mobile}
</if>
<if
test=
"payType != null and payType != ''"
>
and amo.pay_type = #{payType}
</if>
<if
test=
"state != null and state != ''"
>
and amo.state = #{state}
</if>
<if
test=
"mode != null and mode != ''"
>
and amo.mode = #{mode}
</if>
<if
test=
"source != null and source != ''"
>
and amo.source = #{source}
</if>
<if
test=
"paymentAtStart != null and paymentAtStart != ''"
>
and amo.payment_at
>
#{paymentAtStart}
</if>
<if
test=
"paymentAtEnd != null and paymentAtEnd != ''"
>
and amo.payment_at
<
#{paymentAtEnd}
</if>
</where>
</select>
</mapper>
</mapper>
liquidnet-bus-do/liquidnet-service-adam-do/src/main/resources/com/liquidnet/service/adam/mapper/AdamMemberOrderMapper.xml
View file @
4eb95d23
...
@@ -2,16 +2,17 @@
...
@@ -2,16 +2,17 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.liquidnet.service.adam.mapper.AdamMemberOrderMapper"
>
<mapper
namespace=
"com.liquidnet.service.adam.mapper.AdamMemberOrderMapper"
>
<resultMap
id=
"orderListResult"
type=
"com.liquidnet.service.adam.dto.MemberOrderDto"
>
<resultMap
id=
"orderListResult"
type=
"com.liquidnet.service.adam.dto.MemberOrderDto"
>
<result
column=
"member_id"
property=
"uid"
/>
<result
column=
"uid"
property=
"uid"
/>
<result
column=
"name"
property=
"orderNo"
/>
<result
column=
"order_no"
property=
"orderNo"
/>
<result
column=
"title"
property=
"state"
/>
<result
column=
"state"
property=
"state"
/>
<result
column=
"sub_title"
property=
"payType"
/>
<result
column=
"pay_type"
property=
"payType"
/>
<result
column=
"start_no"
property=
"price"
/>
<result
column=
"price"
property=
"price"
/>
<result
column=
"icon"
property=
"pricePaid"
/>
<result
column=
"price_paid"
property=
"pricePaid"
/>
<result
column=
"avatar"
property=
"paymentAt"
/>
<result
column=
"payment_at"
property=
"paymentAt"
/>
<result
column=
"type"
property=
"createdAt"
/>
<result
column=
"created_at"
property=
"createdAt"
/>
<result
column=
"interests_detail"
property=
"mobile"
/>
<result
column=
"mobile"
property=
"mobile"
/>
<result
column=
"notes"
property=
"source"
/>
<result
column=
"source"
property=
"source"
/>
<result
column=
"mode"
property=
"mode"
/>
</resultMap>
</resultMap>
<select
id=
"getMemberOrderList"
resultMap=
"orderListResult"
>
<select
id=
"getMemberOrderList"
resultMap=
"orderListResult"
>
select amo.uid,
select amo.uid,
...
...
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/service/impl/KylinOrderTicketsServiceImpl.java
View file @
4eb95d23
...
@@ -1032,9 +1032,7 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM
...
@@ -1032,9 +1032,7 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM
// KylinOrderTicketVo vo = dataUtils.getOrderTicketVo(item.getOrderTicketsId());
// KylinOrderTicketVo vo = dataUtils.getOrderTicketVo(item.getOrderTicketsId());
// if (vo.getStatus() != 0) {
// if (vo.getStatus() != 0) {
// continue;
// continue;
// }
// }//mysql
//mysql
// KylinOrderTickets orderTickets = new KylinOrderTickets();
// KylinOrderTickets orderTickets = new KylinOrderTickets();
// orderTickets.setOrderTicketsId(item.getOrderTicketsId());
// orderTickets.setOrderTicketsId(item.getOrderTicketsId());
// orderTickets.setUpdatedAt(now);
// orderTickets.setUpdatedAt(now);
...
@@ -1043,7 +1041,6 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM
...
@@ -1043,7 +1041,6 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM
// orderTicketStatus.setOrderId(item.getOrderTicketsId());
// orderTicketStatus.setOrderId(item.getOrderTicketsId());
// orderTicketStatus.setStatus(KylinTableStatusConst.ORDER_STATUS2);
// orderTicketStatus.setStatus(KylinTableStatusConst.ORDER_STATUS2);
// orderTicketStatus.setUpdatedAt(now);
// orderTicketStatus.setUpdatedAt(now);
//vo
//vo
mapMongo
.
put
(
"status"
,
KylinTableStatusConst
.
ORDER_STATUS2
);
mapMongo
.
put
(
"status"
,
KylinTableStatusConst
.
ORDER_STATUS2
);
mapMongo
.
put
(
"updatedAt"
,
DateUtil
.
Formatter
.
yyyyMMddHHmmssSSS
.
format
(
now
));
mapMongo
.
put
(
"updatedAt"
,
DateUtil
.
Formatter
.
yyyyMMddHHmmssSSS
.
format
(
now
));
...
@@ -1053,16 +1050,12 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM
...
@@ -1053,16 +1050,12 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM
// Query.query(Criteria.where("orderTicketsId").is(orderTickets.getOrderTicketsId())).getQueryObject(),
// Query.query(Criteria.where("orderTicketsId").is(orderTickets.getOrderTicketsId())).getQueryObject(),
// new BasicDBObject("$set", mongoConverter.convertToMongoType(map))
// new BasicDBObject("$set", mongoConverter.convertToMongoType(map))
// );
// );
// vo.setChangeDate(now);
// vo.setChangeDate(now);
// vo.setStatus(KylinTableStatusConst.ORDER_STATUS2);
// vo.setStatus(KylinTableStatusConst.ORDER_STATUS2);
// vo.setUpdatedAt(DateUtil.Formatter.yyyyMMddHHmmssSSS.format(now));
// vo.setUpdatedAt(DateUtil.Formatter.yyyyMMddHHmmssSSS.format(now));
// redisUtil.set(KylinRedisConst.ORDER + orderTickets.getOrderTicketsId(), vo);
// redisUtil.set(KylinRedisConst.ORDER + orderTickets.getOrderTicketsId(), vo);
mapSurplusGeneral
.
put
(
item
.
getTicketId
(),
mapSurplusGeneral
.
get
(
item
.
getTicketId
())
==
null
?
item
.
getNumber
()
:
mapSurplusGeneral
.
get
(
item
.
getTicketId
())
+
item
.
getNumber
());
mapSurplusGeneral
.
put
(
item
.
getTicketId
(),
mapSurplusGeneral
.
get
(
item
.
getTicketId
())
==
null
?
item
.
getNumber
()
:
mapSurplusGeneral
.
get
(
item
.
getTicketId
())
+
item
.
getNumber
());
// mongoVoUtils.resetOrderListVo(item.getUserId(), 2, item.getOrderTicketsId(), vo);
// mongoVoUtils.resetOrderListVo(item.getUserId(), 2, item.getOrderTicketsId(), vo);
// List<KylinOrderTicketEntitiesVo> entities = vo.getEntitiesVoList();
// List<KylinOrderTicketEntitiesVo> entities = vo.getEntitiesVoList();
// for (int i = 0; i < entities.size(); i++) {
// for (int i = 0; i < entities.size(); i++) {
// KylinOrderTicketEntitiesVo items = entities.get(i);
// KylinOrderTicketEntitiesVo items = entities.get(i);
...
@@ -1085,16 +1078,15 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM
...
@@ -1085,16 +1078,15 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM
}
}
currentTime
=
System
.
currentTimeMillis
()
-
currentTime
;
currentTime
=
System
.
currentTimeMillis
()
-
currentTime
;
log
.
debug
(
"redis 库存 -> time:"
+
(
currentTime
)
+
"毫秒"
);
log
.
debug
(
"redis 库存 -> time:"
+
(
currentTime
)
+
"毫秒"
);
LinkedList
<
String
>
sqls
=
new
LinkedList
<>();
//mysql
//mysql
LinkedList
<
String
>
sqls
=
new
LinkedList
<>();
String
orderStr
=
""
;
String
orderStr
=
""
;
for
(
int
i
=
0
;
i
<
orderIdList
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
orderIdList
.
size
();
i
++)
{
String
orderTicketId
=
orderIdList
.
get
(
i
).
split
(
","
)[
0
];
String
orderTicketId
=
orderIdList
.
get
(
i
).
split
(
","
)[
0
];
orderStr
=
orderStr
+
"'"
+
orderTicketId
+
"',"
;
orderStr
=
orderStr
+
"'"
+
orderTicketId
+
"',"
;
}
}
orderStr
=
orderStr
.
substring
(
0
,
orderStr
.
length
()
-
1
);
orderStr
=
orderStr
.
substring
(
0
,
orderStr
.
length
()
-
1
);
sqls
.
add
(
"UPDATE kylin_order_tickets SET updated_at = '"
+
now
+
"'
WHERE
order_tickets_id in ("
+
orderStr
+
") "
);
sqls
.
add
(
"UPDATE kylin_order_tickets SET updated_at = '"
+
now
+
"'
WHERE
order_tickets_id in ("
+
orderStr
+
") "
);
sqls
.
add
(
"UPDATE kylin_order_ticket_status SET `status` = 2,updated_at = '"
+
now
+
"' WHERE order_id in ("
+
orderStr
+
") "
);
sqls
.
add
(
"UPDATE kylin_order_ticket_status SET `status` = 2,updated_at = '"
+
now
+
"' WHERE order_id in ("
+
orderStr
+
") "
);
sqls
.
add
(
"UPDATE kylin_order_ticket_relations SET updated_at = '"
+
now
+
"' WHERE order_id in ("
+
orderStr
+
")"
);
sqls
.
add
(
"UPDATE kylin_order_ticket_relations SET updated_at = '"
+
now
+
"' WHERE order_id in ("
+
orderStr
+
")"
);
rabbitTemplate
.
convertAndSend
(
MQConst
.
EXCHANGES_LIQUIDNET_SQL_ORDER_CLOSE
,
MQConst
.
ROUTING_KEY_SQL_ORDER_CLOSE
,
SqlMapping
.
gets
(
sqls
));
rabbitTemplate
.
convertAndSend
(
MQConst
.
EXCHANGES_LIQUIDNET_SQL_ORDER_CLOSE
,
MQConst
.
ROUTING_KEY_SQL_ORDER_CLOSE
,
SqlMapping
.
gets
(
sqls
));
...
@@ -1102,14 +1094,14 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM
...
@@ -1102,14 +1094,14 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM
log
.
debug
(
"mysql -> time:"
+
(
currentTime
)
+
"毫秒"
);
log
.
debug
(
"mysql -> time:"
+
(
currentTime
)
+
"毫秒"
);
//mongo
//mongo
mongoTemplate
.
getCollection
(
KylinOrderTicketVo
.
class
.
getSimpleName
()).
update
One
(
mongoTemplate
.
getCollection
(
KylinOrderTicketVo
.
class
.
getSimpleName
()).
update
Many
(
Query
.
query
(
Criteria
.
where
(
"orderTicketsId"
).
in
(
orderIdList
)).
getQueryObject
(),
Query
.
query
(
Criteria
.
where
(
"orderTicketsId"
).
in
(
orderIdList
)).
getQueryObject
(),
new
BasicDBObject
(
"$set"
,
mongoConverter
.
convertToMongoType
(
mapMongo
))
new
BasicDBObject
(
"$set"
,
mongoConverter
.
convertToMongoType
(
mapMongo
))
);
);
currentTime
=
System
.
currentTimeMillis
()
-
currentTime
;
currentTime
=
System
.
currentTimeMillis
()
-
currentTime
;
log
.
debug
(
"mongo -> time:"
+
(
currentTime
)
+
"毫秒"
);
log
.
debug
(
"mongo -> time:"
+
(
currentTime
)
+
"毫秒"
);
redisLockUtil
.
unlock
(
lock
);
//
redisLockUtil.unlock(lock);
Thread
thread
=
new
Thread
(()
->
{
Thread
thread
=
new
Thread
(()
->
{
//redis 列表
//redis 列表
...
@@ -1133,7 +1125,7 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM
...
@@ -1133,7 +1125,7 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
finally
{
}
finally
{
redisLockUtil
.
unlock
(
lock
);
//
redisLockUtil.unlock(lock);
}
}
}
else
{
}
else
{
log
.
debug
(
"WARNING LOCKING"
);
log
.
debug
(
"WARNING LOCKING"
);
...
...
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