记得上下班打卡 | 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
360e4363
Commit
360e4363
authored
Jun 21, 2021
by
jiangxiulong
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
4e1d0f49
22cdb9b2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
13 deletions
+11
-13
index-topnav.html
...-admin-web/src/main/resources/templates/index-topnav.html
+1
-1
index.html
...-client-admin-web/src/main/resources/templates/index.html
+1
-1
KylinOrderTicketsServiceImpl.java
...vice/kylin/service/impl/KylinOrderTicketsServiceImpl.java
+9
-11
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/index-topnav.html
View file @
360e4363
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
</div>
</div>
<a
th:href=
"@{/index}"
>
<a
th:href=
"@{/index}"
>
<li
class=
"logo hidden-xs"
>
<li
class=
"logo hidden-xs"
>
<span
class=
"logo-lg"
>
RuoYi
</span>
<span
class=
"logo-lg"
>
Modernsky IMS
</span>
</li>
</li>
</a>
</a>
<div
class=
"sidebar-collapse tab-content"
id=
"side-menu"
>
<div
class=
"sidebar-collapse tab-content"
id=
"side-menu"
>
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/index.html
View file @
360e4363
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
</div>
</div>
<a
th:href=
"@{/index}"
>
<a
th:href=
"@{/index}"
>
<li
class=
"logo hidden-xs"
>
<li
class=
"logo hidden-xs"
>
<span
class=
"logo-lg"
>
RuoYi
</span>
<span
class=
"logo-lg"
>
Modernsky IMS
</span>
</li>
</li>
</a>
</a>
<div
class=
"sidebar-collapse"
>
<div
class=
"sidebar-collapse"
>
...
...
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/service/impl/KylinOrderTicketsServiceImpl.java
View file @
360e4363
...
@@ -1021,8 +1021,8 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM
...
@@ -1021,8 +1021,8 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM
@Override
@Override
public
boolean
checkOrderTime
(
String
userId
)
{
public
boolean
checkOrderTime
(
String
userId
)
{
String
lock
=
"order
s
_lock:checkOrderTime:"
+
userId
;
String
lock
=
"order_lock:checkOrderTime:"
+
userId
;
if
(
redisLockUtil
.
tryLock
(
lock
,
1
,
3600
))
{
//
if (redisLockUtil.tryLock(lock, 1, 3600)) {
try
{
try
{
List
<
OrderScriptDto
>
dtoData
=
orderTicketsMapper
.
orderScriptDto
(
userId
);
List
<
OrderScriptDto
>
dtoData
=
orderTicketsMapper
.
orderScriptDto
(
userId
);
LocalDateTime
now
=
LocalDateTime
.
now
();
LocalDateTime
now
=
LocalDateTime
.
now
();
...
@@ -1086,10 +1086,12 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM
...
@@ -1086,10 +1086,12 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM
//mysql
//mysql
LinkedList
<
String
>
sqls
=
new
LinkedList
<>();
LinkedList
<
String
>
sqls
=
new
LinkedList
<>();
String
orderStr
=
""
;
String
orderStr
=
""
;
log
.
debug
(
"orderIdList -> size() :"
+
orderIdList
.
size
());
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
+=
"'"
+
orderTicketId
+
"',"
;
}
}
log
.
debug
(
"orderStr -> STR :"
+
orderStr
.
toString
());
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
+
") "
);
...
@@ -1106,8 +1108,6 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM
...
@@ -1106,8 +1108,6 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM
currentTime
=
System
.
currentTimeMillis
()
-
currentTime
;
currentTime
=
System
.
currentTimeMillis
()
-
currentTime
;
log
.
debug
(
"mongo -> time:"
+
(
currentTime
)
+
"毫秒"
);
log
.
debug
(
"mongo -> time:"
+
(
currentTime
)
+
"毫秒"
);
// redisLockUtil.unlock(lock);
Thread
thread
=
new
Thread
(()
->
{
Thread
thread
=
new
Thread
(()
->
{
//redis 列表
//redis 列表
orderIdList
.
forEach
(
t
->
{
orderIdList
.
forEach
(
t
->
{
...
@@ -1125,16 +1125,14 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM
...
@@ -1125,16 +1125,14 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM
});
});
thread
.
start
();
thread
.
start
();
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
finally
{
}
finally
{
// redisLockUtil.unlock(lock);
}
}
}
else
{
// redisLockUtil.unlock(lock);
log
.
debug
(
"WARNING LOCKING"
);
// } else {
}
// log.debug("WARNING LOCKING");
// }
return
true
;
return
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