|
@@ -17,6 +17,7 @@ import org.springblade.manager.entity.WbsTreeContract;
|
|
|
import org.springblade.manager.feign.ContractClient;
|
|
|
import org.springblade.manager.feign.WbsTreeContractClient;
|
|
|
import org.springblade.manager.vo.WbsTreeContractTreeVOS;
|
|
|
+import org.springblade.system.user.feign.IUserClient;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springblade.business.entity.TreeContractFirst;
|
|
@@ -46,6 +47,8 @@ public class TreeContractFirstController extends BladeController {
|
|
|
|
|
|
private final ContractClient contractClient;
|
|
|
|
|
|
+ private final IUserClient iUserClient;
|
|
|
+
|
|
|
/**
|
|
|
* 获取合同段划分树中被标记为首件的节点
|
|
|
*
|
|
@@ -174,7 +177,12 @@ public class TreeContractFirstController extends BladeController {
|
|
|
List<String> result = JSONArray.parseArray(JSONObject.toJSONString(parentIds.toString().split(",")), String.class);
|
|
|
//删掉为空的数据
|
|
|
result.removeIf(StringUtils::isEmpty);
|
|
|
+
|
|
|
+ /*清理缓存*/
|
|
|
+ iUserClient.clearContractLocalCacheAndRedisCache();
|
|
|
+
|
|
|
return R.data(result);
|
|
|
+
|
|
|
} else {
|
|
|
//删除自身
|
|
|
this.treeContractFirstService.update(Wrappers.<TreeContractFirst>lambdaUpdate().set(TreeContractFirst::getIsDeleted, 1).eq(TreeContractFirst::getWbsNodeId, primaryKeyId));
|
|
@@ -214,6 +222,9 @@ public class TreeContractFirstController extends BladeController {
|
|
|
//删掉为空的数据
|
|
|
result.removeIf(StringUtils::isEmpty);
|
|
|
|
|
|
+ /*清理缓存*/
|
|
|
+ iUserClient.clearContractLocalCacheAndRedisCache();
|
|
|
+
|
|
|
return R.data(result);
|
|
|
}
|
|
|
}
|