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

Commit 7e15cb7c authored by wanglele's avatar wanglele

时间判断修改

parent 91df44b6
...@@ -201,7 +201,7 @@ public class GoblinNftExCodeTaskServiceImpl implements IGoblinNftExCodeTaskServi ...@@ -201,7 +201,7 @@ public class GoblinNftExCodeTaskServiceImpl implements IGoblinNftExCodeTaskServi
exStartTime = rdExStartTime; exStartTime = rdExStartTime;
} }
if (rdExStopTime.isAfter(exStopTime)) { if (exStopTime.isBefore(rdExStopTime)) {
exStopTime = rdExStopTime; exStopTime = rdExStopTime;
} }
} }
...@@ -223,7 +223,14 @@ public class GoblinNftExCodeTaskServiceImpl implements IGoblinNftExCodeTaskServi ...@@ -223,7 +223,14 @@ public class GoblinNftExCodeTaskServiceImpl implements IGoblinNftExCodeTaskServi
// 修改定时 // 修改定时
goblinNftExCodeTaskMapper.updateByTaskIds(updTaskIds.toString()); goblinNftExCodeTaskMapper.updateByTaskIds(updTaskIds.toString());
log.debug("MSQ耗时:ms", System.currentTimeMillis() - startm); log.debug("MSQ耗时:ms", System.currentTimeMillis() - startm);
}
public static void main(String[] args) {
LocalDateTime exStopTime = LocalDateTime.parse("2024-06-26 19:00:00", DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")); // "2019-06-26 19:00:00";
LocalDateTime rdExStopTime = LocalDateTime.parse("2066-06-26 19:00:00", DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")); // "2019-06-26 19:00:00";
if (exStopTime.isBefore(rdExStopTime)){
}
} }
} }
...@@ -66,7 +66,6 @@ public class GoblinNftExSkuServiceImpl implements IGoblinNftExSkuService { ...@@ -66,7 +66,6 @@ public class GoblinNftExSkuServiceImpl implements IGoblinNftExSkuService {
if (goblinNftExSkuParam.getUnbox().equals("1")) { if (goblinNftExSkuParam.getUnbox().equals("1")) {
bol = true; bol = true;
spuIds.append(goblinNftExSkuParam.getSpuId()).append(","); spuIds.append(goblinNftExSkuParam.getSpuId()).append(",");
break;
} }
stockNumber += goblinNftExSkuParam.getExStock(); stockNumber += goblinNftExSkuParam.getExStock();
skuIds.append(goblinNftExSkuParam.getSkuId()).append(","); skuIds.append(goblinNftExSkuParam.getSkuId()).append(",");
...@@ -95,10 +94,6 @@ public class GoblinNftExSkuServiceImpl implements IGoblinNftExSkuService { ...@@ -95,10 +94,6 @@ public class GoblinNftExSkuServiceImpl implements IGoblinNftExSkuService {
return ResponseDto.failure("当前选中的sku不处于可售卖状态!"); return ResponseDto.failure("当前选中的sku不处于可售卖状态!");
} }
if (goblinGoodsSkuListCheck == null || (goblinGoodsSkuListCheck.size() != (bol ? goblinNftExSkuParams.size() - 1 : goblinNftExSkuParams.size()))) {
return ResponseDto.failure("sku数据异常!");
}
Map<String, BigDecimal> map = new HashMap<>(); Map<String, BigDecimal> map = new HashMap<>();
if (bol) { if (bol) {
......
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