记得上下班打卡 | git大法好,push需谨慎

Commit 491e56f4 authored by 胡佳晨's avatar 胡佳晨

Merge branch 'dev' into test

parents d7d81ed6 5c2aa54c
...@@ -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">
......
...@@ -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">
......
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
$('#remoteSearch').remoteSearchPerformance({ $('#remoteSearch').remoteSearchPerformance({
ajax:{ ajax:{
url: prefix + "/performance/status?status=(3,6,7,9,10)&", url: prefix + "/performance/status?status=(3,6,7,9,10)",
type: "get" type: "get"
}, },
chose: function(text,val){ chose: function(text,val){
......
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
// } // }
$('#remoteSearch').remoteSearchPerformance({ $('#remoteSearch').remoteSearchPerformance({
ajax:{ ajax:{
url: prefix + "/performance/status?status=(3,6,7,9,10)&", url: prefix + "/performance/status?status=(3,6,7,9,10)",
type: "get" type: "get"
}, },
chose: function(text,val){ chose: function(text,val){
......
...@@ -1021,7 +1021,7 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM ...@@ -1021,7 +1021,7 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM
@Override @Override
public boolean checkOrderTime(String userId) { public boolean checkOrderTime(String userId) {
String lock = "orders_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);
...@@ -1106,8 +1106,6 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM ...@@ -1106,8 +1106,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,13 +1123,11 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM ...@@ -1125,13 +1123,11 @@ 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);
} }
redisLockUtil.unlock(lock);
} else { } else {
log.debug("WARNING LOCKING"); log.debug("WARNING LOCKING");
} }
......
...@@ -555,7 +555,7 @@ public class DataUtils { ...@@ -555,7 +555,7 @@ public class DataUtils {
HashMap toDayTime = DateUtil.oneDayStartEnd(); HashMap toDayTime = DateUtil.oneDayStartEnd();
String nowTimeTStr = (String) toDayTime.get("startStr"); String nowTimeTStr = (String) toDayTime.get("startStr");
String toDayEndTimeStr = (String) toDayTime.get("endStr"); String toDayEndTimeStr = (String) toDayTime.get("endStr");
query.addCriteria(Criteria.where("timeStart").gte(nowTimeTStr).lt(toDayEndTimeStr)); query.addCriteria(Criteria.where("sellTime").gte(nowTimeTStr).lt(toDayEndTimeStr));
query.fields().exclude("details"); query.fields().exclude("details");
query.fields().exclude("noticeImage"); query.fields().exclude("noticeImage");
query.fields().exclude("ticketTimeList"); query.fields().exclude("ticketTimeList");
...@@ -572,7 +572,7 @@ public class DataUtils { ...@@ -572,7 +572,7 @@ public class DataUtils {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String threeDaysLaterStr = sdf.format(beforeDayEnd); String threeDaysLaterStr = sdf.format(beforeDayEnd);
queryT.addCriteria(Criteria.where("timeStart").gte(toDayEndTimeStr).lt(threeDaysLaterStr)); queryT.addCriteria(Criteria.where("sellTime").gte(toDayEndTimeStr).lt(threeDaysLaterStr));
queryT.fields().exclude("details"); queryT.fields().exclude("details");
queryT.fields().exclude("noticeImage"); queryT.fields().exclude("noticeImage");
queryT.fields().exclude("ticketTimeList"); queryT.fields().exclude("ticketTimeList");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment