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

Commit f2734628 authored by GaoHu's avatar GaoHu

exit

parent 4a6b27d3
......@@ -210,7 +210,9 @@ public class GoblinGoodsAnticipateServiceImpl implements IGoblinGoodsAnticipateS
state
});
sendRedis("goblin_goods_anticipate_user", sqlValue);
} else {
goblinRedisUtils.setSkuIdPeople(skuId, state);
}
if (state.equals(GoblinGoodAnticipateUserVo.STATE_INVALID)&&userVo != null) {
//mysql删除用户记录
sqlValue.add(new Object[]{
uid,
......@@ -219,9 +221,8 @@ public class GoblinGoodsAnticipateServiceImpl implements IGoblinGoodsAnticipateS
sendRedis("goblin_goods_anticipate_user_update", sqlValue);
//删除缓存 redis和mongodb
goblinRedisUtils.delUserAboutSku(skuId, uid);
}
goblinRedisUtils.setSkuIdPeople(skuId, state);
}
return ResponseDto.success();
}
......
......@@ -64,7 +64,7 @@ public class GoblinMongoUtils {
Pageable pageable = PageRequest.of(goblinGoodsAnticipateValueParam.getPageNum() - 1, goblinGoodsAnticipateValueParam.getPageSize(), Sort.by(Sort.Direction.DESC,"createdDate"));
Criteria criteria = Criteria.where("delTag").is(0);
if (StringUtils.isNotBlank(goblinGoodsAnticipateValueParam.getName())) {
criteria = criteria.and("name").is(goblinGoodsAnticipateValueParam.getName());
criteria = criteria.and("skuName").is(goblinGoodsAnticipateValueParam.getName());
}
if (StringUtils.isNotBlank(goblinGoodsAnticipateValueParam.getCreatedDate())) {
LocalDateTime createDt = DateUtil.Formatter.yyyy_MM_dd.parse(goblinGoodsAnticipateValueParam.getCreatedDate());
......
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