记得上下班打卡 | 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
532351f8
Commit
532351f8
authored
Jun 20, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into test
parents
cb56619c
cc781f97
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
19 deletions
+42
-19
AdamMemberMapper.xml
...es/com/liquidnet/service/adam/mapper/AdamMemberMapper.xml
+26
-2
KylinOrderTicketsServiceImpl.java
...vice/kylin/service/impl/KylinOrderTicketsServiceImpl.java
+16
-17
No files found.
liquidnet-bus-do/liquidnet-service-adam-do/src/main/resources/com/liquidnet/service/adam/mapper/AdamMemberMapper.xml
View file @
532351f8
...
...
@@ -69,13 +69,37 @@
amo.payment_at,
amo.created_at,
au.mobile,
amo.source
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=
"userId != null and userId != ''"
>
and kot.user_id = #{userId}
</if>
<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>
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/service/impl/KylinOrderTicketsServiceImpl.java
View file @
532351f8
...
...
@@ -1016,7 +1016,7 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM
@Override
public
boolean
checkOrderTime
(
String
userId
)
{
String
lock
=
"order_lock:checkOrderTime:"
+
userId
;
String
lock
=
"order
s
_lock:checkOrderTime:"
+
userId
;
if
(
redisLockUtil
.
tryLock
(
lock
,
1
,
3600
))
{
try
{
List
<
OrderScriptDto
>
dtoData
=
orderTicketsMapper
.
orderScriptDto
(
userId
);
...
...
@@ -1111,22 +1111,21 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM
redisLockUtil
.
unlock
(
lock
);
Thread
thread
=
new
Thread
(
new
Runnable
(){
public
void
run
(){
//redis 列表
orderIdList
.
forEach
(
t
->
{
String
orderTicketId
=
t
.
split
(
","
)[
0
];
String
uid
=
t
.
split
(
","
)[
1
];
KylinOrderTicketVo
vo
=
dataUtils
.
getOrderTicketVo
(
orderTicketId
);
redisUtil
.
set
(
KylinRedisConst
.
ORDER
+
orderTicketId
,
vo
);
mongoVoUtils
.
resetOrderListVo
(
uid
,
2
,
orderTicketId
,
vo
);
// redis 限购
for
(
int
i
=
0
;
i
<
vo
.
getEntitiesVoList
().
size
();
i
++)
{
KylinOrderTicketEntitiesVo
items
=
vo
.
getEntitiesVoList
().
get
(
i
);
dataUtils
.
changeBuyInfo
(
items
.
getUserId
(),
items
.
getEnterIdCode
(),
items
.
getPerformanceId
(),
items
.
getTicketId
(),
-
1
);
}
});
}});
Thread
thread
=
new
Thread
(()
->
{
//redis 列表
orderIdList
.
forEach
(
t
->
{
String
orderTicketId
=
t
.
split
(
","
)[
0
];
String
uid
=
t
.
split
(
","
)[
1
];
KylinOrderTicketVo
vo
=
dataUtils
.
getOrderTicketVo
(
orderTicketId
);
redisUtil
.
set
(
KylinRedisConst
.
ORDER
+
orderTicketId
,
vo
);
mongoVoUtils
.
resetOrderListVo
(
uid
,
2
,
orderTicketId
,
vo
);
// redis 限购
for
(
int
i
=
0
;
i
<
vo
.
getEntitiesVoList
().
size
();
i
++)
{
KylinOrderTicketEntitiesVo
items
=
vo
.
getEntitiesVoList
().
get
(
i
);
dataUtils
.
changeBuyInfo
(
items
.
getUserId
(),
items
.
getEnterIdCode
(),
items
.
getPerformanceId
(),
items
.
getTicketId
(),
-
1
);
}
});
});
thread
.
start
();
}
...
...
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