|
|
@@ -5243,16 +5243,6 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
/*表id,项目id,节点Id*/
|
|
|
public List<KeyMapper> listForContract(List<Long> ids, String projectId, String nodeId, String testGroupId) {
|
|
|
List<Map<String, Object>> listMap = listMap(ids, ExecuteType.INSPECTION);
|
|
|
- //质检这个参数为0,表示过滤公式,为1,表示html渲染表格
|
|
|
- if (!"1".equals(testGroupId)) {
|
|
|
- //根据节点id查询 合同段扩展表
|
|
|
- WbsTreeContractExtend byId = wbsTreeContractExtendService.getById(nodeId);
|
|
|
- if (byId != null && StringUtils.isNotEmpty(byId.getFormulaConfig())) {
|
|
|
- List<String> list = Arrays.asList(byId.getFormulaConfig().split(","));
|
|
|
- listMap = listMap.stream().filter(m -> !list.contains(m.get("tableName").toString() + ":" + m.get("field").toString())).collect(Collectors.toList());
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
WbsTreePrivate wtp = wtpId(Long.parseLong(nodeId));
|
|
|
if (Func.isNotEmpty(listMap)) {
|
|
|
/*当前节点的某个元素存在多种作用域的公式,作用域范围越小优先级越高*/
|
|
|
@@ -5340,14 +5330,6 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
private List<KeyMapper> listForPrivate(List<Long> ids, String projectId, String nodeId, String testGroupId) {
|
|
|
/**/
|
|
|
List<Map<String, Object>> listMap = listMap(ids, ExecuteType.TESTING);
|
|
|
- if (StringUtil.isNotBlank(testGroupId)) {
|
|
|
- //根据节点id查询 合同段扩展表
|
|
|
- WbsTreeContractExtend byId = wbsTreeContractExtendService.getById(testGroupId);
|
|
|
- if (byId != null && StringUtils.isNotEmpty(byId.getFormulaConfig())) {
|
|
|
- List<String> list = Arrays.asList(byId.getFormulaConfig().split(","));
|
|
|
- listMap = listMap.stream().filter(m -> !list.contains(m.get("tableName").toString() + ":" + m.get("field").toString())).collect(Collectors.toList());
|
|
|
- }
|
|
|
- }
|
|
|
List<KeyMapper> list = listMap.stream().map(m -> BeanUtil.toBean(m, KeyMapper.class)).collect(Collectors.toList());
|
|
|
if (Func.isNotEmpty(listMap)) {
|
|
|
WbsTreePrivate wtp = this.wbsTreePrivateMapper.selectOne(Wrappers.<WbsTreePrivate>lambdaQuery().eq(WbsTreePrivate::getPKeyId, nodeId));
|