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

Commit eec88506 authored by 胡佳晨's avatar 胡佳晨

添加 接口

parent a0c0e466
......@@ -100,6 +100,7 @@ public class GoblinZhengzaiMarketServiceImpl implements IGoblinZhengzaiMarketSer
//mongo
GoblinSelfMarketingVo vo = GoblinSelfMarketingVo.getNew();
BeanUtils.copyProperties(selfMarketing, vo);
vo.setStatus(status);
GoblinSelfMarketingVo changeVo = goblinMongoUtils.updateSelfMarket(item, vo);
//redis
goblinRedisUtils.setSelfMarket(item, changeVo);
......
......@@ -124,7 +124,7 @@ public class GoblinRedisUtils {
for (int i = 0; i < list.size(); i++) {
GoblinSelfMarketingVo item = list.get(i);
if (item.getSelfMarketId().equals(vo.getSelfMarketId())) {
list.set(i, item);
list.set(i, vo);
break;
}
}
......
......@@ -38,7 +38,7 @@ public class GoblinAppZhengzaiServiceImpl implements IGoblinAppZhengzaiService {
List<GoblinSelfMarketingVo> voList = ObjectUtil.getGoblinSelfMarketingVoList();
LocalDateTime now = LocalDateTime.now();
for (GoblinSelfMarketingVo item : list) {
if (LocalDateTime.parse(item.getStartTime(), DTF_YMD_HMS).isBefore(now) && LocalDateTime.parse(item.getEndTime(), DTF_YMD_HMS).isAfter(now) && (item.getStatus() == 0 || item.getStatus() == 1)) {
if (LocalDateTime.parse(item.getStartTime(), DTF_YMD_HMS).isBefore(now) && LocalDateTime.parse(item.getEndTime(), DTF_YMD_HMS).isAfter(now) && (item.getStatus() == null || item.getStatus() != 7)) {
voList.add(item);
}
}
......
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