|
|
@@ -2510,7 +2510,7 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
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);
|
|
|
+ return listForContract(ids, projectId, nodeId, testGroupId);
|
|
|
} else if (executeType.equals(ExecuteType.TESTING) ) {
|
|
|
return listForPrivate(ids, projectId, nodeId, testGroupId);
|
|
|
} else if (executeType.equals(ExecuteType.LOGINFO) ) {
|
|
|
@@ -5218,13 +5218,16 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
}
|
|
|
|
|
|
/*表id,项目id,节点Id*/
|
|
|
- public List<KeyMapper> listForContract(List<Long> ids, String projectId, String nodeId) {
|
|
|
+ public List<KeyMapper> listForContract(List<Long> ids, String projectId, String nodeId, String testGroupId) {
|
|
|
List<Map<String, Object>> listMap = listMap(ids, ExecuteType.INSPECTION);
|
|
|
- //根据节点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());
|
|
|
+ //质检这个参数为null,表示过滤公式,不为null,表示html渲染表格
|
|
|
+ if(testGroupId == null){
|
|
|
+ //根据节点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));
|