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

Commit 249188d7 authored by 胡佳晨's avatar 胡佳晨

Merge remote-tracking branch 'origin/pre' into pre

parents 4af7e692 3ba0d292
......@@ -324,7 +324,9 @@ public class GoblinGoodsAnticipateServiceImpl implements IGoblinGoodsAnticipateS
GoblinMixDetailsVo mixDetails = goblinRedisUtils.getMixDetails(mixId);
//组合购开启预约且当前时间大于预约购开始时间或者上架时间才可预约
if (mixDetails.getReserve() != 0 && DateUtil.compareStrDay(nowTime, mixDetails.getTimeStart()) <= 0) {
String mid = IDGenerator.nextTimeId2();
GoblinMixReserveVo goblinMixReserveVo = GoblinMixReserveVo.getNew();
goblinMixReserveVo.setMid(mid);
goblinMixReserveVo.setMixId(mixId);
DateTimeFormatter formatter = DateTimeFormatter.ofPattern(DateUtil.DATE_FULL_STR);
goblinMixReserveVo.setCreatedDate(LocalDateTime.parse(nowTime,formatter));
......@@ -334,7 +336,6 @@ public class GoblinGoodsAnticipateServiceImpl implements IGoblinGoodsAnticipateS
//redis保存用户预约组合购记录
goblinRedisUtils.setReserveMixByUid(goblinMixReserveVo);
//发送redis消息修改mysql记录用户预约
String mid = IDGenerator.nextTimeId2();
LinkedList<Object[]> sqlValue = CollectionUtil.linkedListObjectArr();
sqlValue.add(new Object[]{
mid,
......@@ -345,7 +346,7 @@ public class GoblinGoodsAnticipateServiceImpl implements IGoblinGoodsAnticipateS
sendRedis("goblin_goods_anticipate_mix", sqlValue);
}
}
return ResponseDto.success();
return ResponseDto.success(true);
}
@Override
......
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