Commit 4fd39c3855fbd42f4f8e87e9d078635567895b4f
1 parent
76f0da01
feature(*): 优化查询活动资格
- 优化查询活动资格
Showing
2 changed files
with
2 additions
and
2 deletions
fw-valhalla-rpc/src/main/java/cn/fw/valhalla/rpc/mkt/MktRpcService.java
@@ -34,7 +34,7 @@ public class MktRpcService { | @@ -34,7 +34,7 @@ public class MktRpcService { | ||
34 | * @param dto | 34 | * @param dto |
35 | * @return | 35 | * @return |
36 | */ | 36 | */ |
37 | - @Cacheable(cacheNames = RedisKey.MKT_QUA, key = "#dto.getArchiveId()+':'+#dto.getActivityNo()", unless = "null != #result") | 37 | + @Cacheable(cacheNames = RedisKey.MKT_QUA, key = "#dto.getArchiveId()+':'+#dto.getActivityNo()", condition = "null != #result") |
38 | public Boolean queryQualifications(final QualificationDTO dto) { | 38 | public Boolean queryQualifications(final QualificationDTO dto) { |
39 | if (dto == null) { | 39 | if (dto == null) { |
40 | return Boolean.FALSE; | 40 | return Boolean.FALSE; |
fw-valhalla-server/src/main/java/cn/fw/valhalla/controller/task/PubStandTask.java
@@ -71,7 +71,7 @@ public class PubStandTask { | @@ -71,7 +71,7 @@ public class PubStandTask { | ||
71 | /** | 71 | /** |
72 | * 执行分配 | 72 | * 执行分配 |
73 | */ | 73 | */ |
74 | - @Scheduled(cron = "0/8 * 8-20 * * *") | 74 | + @Scheduled(cron = "0/20 * 8-20 * * *") |
75 | public void distributeBatch() { | 75 | public void distributeBatch() { |
76 | List<GroupDTO> groups = oopService.allGroup(); | 76 | List<GroupDTO> groups = oopService.allGroup(); |
77 | for (GroupDTO group : groups) { | 77 | for (GroupDTO group : groups) { |