|
@@ -931,12 +931,25 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
public Map<String, Object> getWpMap(Long wbsNodeId, Long wtpPkeyId, TableElementConverter tec) {
|
|
|
Map<String, Object> result = new HashMap<>(100);
|
|
|
List<WbsParam> total = this.getNodeWps(wbsNodeId, wtpPkeyId);
|
|
|
+ Set<Long> tablePkeyIds = tec.getTableAll().stream().map(NodeTable::getPKeyId).collect(Collectors.toSet());
|
|
|
+ // 目前表单 参数只有偏差范围 2025-08-15
|
|
|
+ List<WbsParam> tabWps = this.wpService.list(Wrappers.<WbsParam>lambdaQuery().in(WbsParam::getNodeId, tablePkeyIds).in(WbsParam::getK, "G10pcfw", "g8pcfw").eq(WbsParam::getType, 220));
|
|
|
Map<String, String> logMap = new HashMap<>();
|
|
|
+ Map<String, WbsParam> tatalMap = new HashMap<>();
|
|
|
if (CollectionUtil.isNotEmpty(total)) {
|
|
|
/*同名参数私有覆盖公用*/
|
|
|
for (WbsParam p : total) {
|
|
|
result.put(p.getK(), p.getV());
|
|
|
logMap.put(p.getK(), p.getName());
|
|
|
+ tatalMap.put(p.getK(), p);
|
|
|
+ }
|
|
|
+ if (CollectionUtil.isNotEmpty(tabWps)) {
|
|
|
+ for (WbsParam p : tabWps) {
|
|
|
+ result.put(p.getK(), p.getV());
|
|
|
+ logMap.put(p.getK(), p.getName());
|
|
|
+ tatalMap.put(p.getK(), p);
|
|
|
+ }
|
|
|
+ total = new ArrayList<>(tatalMap.values());
|
|
|
}
|
|
|
}
|
|
|
//tec.getLog().put(FormulaLog.PARAM,result.entrySet().stream().map(p->logMap.get(p.getKey())+":"+p.getValue()).collect(Collectors.joining(";")));
|