|
|
@@ -2507,12 +2507,12 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public List<KeyMapper> getKeyMapperList(List<Long> ids, String projectId, String nodeId, ExecuteType executeType) {
|
|
|
+ public List<KeyMapper> getKeyMapperList(List<Long> ids, String projectId, String nodeId, ExecuteType executeType, String testGroupId) {
|
|
|
/*ids 表流水号 projectId项目 nodeId工序节点的pkeyId ExecuteType执行模式 质检或者试验 首件*/
|
|
|
if (executeType.equals(ExecuteType.INSPECTION)) {
|
|
|
return listForContract(ids, projectId, nodeId);
|
|
|
} else if (executeType.equals(ExecuteType.TESTING) ) {
|
|
|
- return listForPrivate(ids, projectId, nodeId);
|
|
|
+ return listForPrivate(ids, projectId, nodeId, testGroupId);
|
|
|
} else if (executeType.equals(ExecuteType.LOGINFO) ) {
|
|
|
return listForPrivateByLog(ids, projectId, nodeId);
|
|
|
}
|
|
|
@@ -5311,9 +5311,17 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
|
|
|
}
|
|
|
|
|
|
- private List<KeyMapper> listForPrivate(List<Long> ids, String projectId, String nodeId) {
|
|
|
+ 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));
|