Selaa lähdekoodia

资料填报节点颜色bug

liuyc 2 vuotta sitten
vanhempi
commit
b3213b4fb1

+ 3 - 1
blade-service/blade-business/src/main/java/org/springblade/business/controller/InformationWriteQueryController.java

@@ -2609,7 +2609,9 @@ public class InformationWriteQueryController extends BladeController {
         this.recycleBinClient.saveDelBusinessData(idArray, StringUtils.isNotEmpty(removeNode.getFullName()) ? removeNode.getFullName() : removeNode.getNodeName(), 2, parentNodeName.toString(), removeNode.getProjectId(), removeNode.getContractId());
         Boolean aBoolean = this.wbsTreeContractClient.removeContractTreeNode(idArray);
         //更新redis
-        this.informationQueryService.AsyncWbsTree(removeNode.getParentId() + "", removeNode.getParentId() + "", removeNode.getContractId(), "", "1");
+        //this.informationQueryService.AsyncWbsTree(removeNode.getParentId() + "", removeNode.getParentId() + "", removeNode.getContractId(), "", "1");
+        this.informationQueryService.delAsyncWbsTree(removeNode.getContractId());
+
         return R.data(aBoolean);
     }
 

+ 11 - 0
blade-service/blade-business/src/main/java/org/springblade/business/controller/TaskController.java

@@ -88,6 +88,8 @@ public class TaskController extends BladeController {
 
     private final ContractClient contractClient;
 
+    private final IInformationQueryService informationQueryService;
+
     /**
      * 记录短信验证码超时时间
      */
@@ -319,6 +321,15 @@ public class TaskController extends BladeController {
                 }
             }
 
+            //更新redis缓存
+            if (formDataId.length > 0) {
+                List<InformationQuery> dataList = informationQueryService.getBaseMapper().selectBatchIds(Arrays.asList(formDataId));
+                List<Long> contractIds = dataList.stream().map(InformationQuery::getContractId).distinct().collect(Collectors.toList());
+                for (Long contractId : contractIds) {
+                    informationQueryService.delAsyncWbsTree(contractId + "");
+                }
+            }
+
             return R.data(true);
         }
         return R.data(false);