|
@@ -163,12 +163,12 @@ public class WmTaskSubmissionRuleController {
|
|
|
@GetMapping("/list-task-type-ids")
|
|
|
public R<?> listTaskTypeIds(@RequestParam(value = "deptId") Integer deptId) {
|
|
|
|
|
|
- String cacheKey = "task:type:" + deptId;
|
|
|
- Object o = redisTemplate.opsForValue().get(cacheKey);
|
|
|
-
|
|
|
- if (o != null){
|
|
|
- return R.ok((String[])o);
|
|
|
- }
|
|
|
+ // String cacheKey = "task:type:" + deptId;
|
|
|
+ // Object o = redisTemplate.opsForValue().get(cacheKey);
|
|
|
+ //
|
|
|
+ // if (o != null){
|
|
|
+ // return R.ok((String[])o);
|
|
|
+ // }
|
|
|
|
|
|
// 查询任务类型启用状态
|
|
|
List<WmTaskSubmissionPercentRule> rules = taskSubmissionPercentRuleService.list(Wrappers.<WmTaskSubmissionPercentRule>lambdaQuery()
|
|
@@ -177,7 +177,7 @@ public class WmTaskSubmissionRuleController {
|
|
|
String[] taskTypeIds;
|
|
|
if (CollUtil.isNotEmpty(rules)) {
|
|
|
taskTypeIds = rules.get(0).getRule().getTaskTypeIds();
|
|
|
- redisTemplate.opsForValue().set(cacheKey, taskTypeIds, 30, TimeUnit.DAYS);
|
|
|
+ // redisTemplate.opsForValue().set(cacheKey, taskTypeIds, 30, TimeUnit.DAYS);
|
|
|
} else {
|
|
|
taskTypeIds = new String[0];
|
|
|
}
|