|
@@ -1881,7 +1881,7 @@ public class InformationWriteQueryController extends BladeController {
|
|
if (parent == null) {
|
|
if (parent == null) {
|
|
parent = this.wbsTreeContractClient.getContractWbsTreeByContractIdAndId(wtc.getParentId(), Long.parseLong(wtc.getContractId()));
|
|
parent = this.wbsTreeContractClient.getContractWbsTreeByContractIdAndId(wtc.getParentId(), Long.parseLong(wtc.getContractId()));
|
|
}
|
|
}
|
|
- /*节点公式*/
|
|
|
|
|
|
+ /*凡是关联了节点参数公式的元素都不复制数据*/
|
|
List<Map<String, Object>> paramKey = this.jdbcTemplate.queryForList("select DISTINCT b.e_key ek from m_table_info a join m_wbs_form_element b on a.id=b.f_id join m_element_formula_mapping c on b.id = c.element_id where a.tab_en_name='" + tableName + "' and b.is_deleted=0 and c.scope=35 ");
|
|
List<Map<String, Object>> paramKey = this.jdbcTemplate.queryForList("select DISTINCT b.e_key ek from m_table_info a join m_wbs_form_element b on a.id=b.f_id join m_element_formula_mapping c on b.id = c.element_id where a.tab_en_name='" + tableName + "' and b.is_deleted=0 and c.scope=35 ");
|
|
if (paramKey.size() > 0) {
|
|
if (paramKey.size() > 0) {
|
|
map.putAll(paramKey.stream().map(m -> m.get("ek").toString()).collect(Collectors.toMap(s -> s, s -> StringPool.NULL)));
|
|
map.putAll(paramKey.stream().map(m -> m.get("ek").toString()).collect(Collectors.toMap(s -> s, s -> StringPool.NULL)));
|
|
@@ -1937,13 +1937,6 @@ public class InformationWriteQueryController extends BladeController {
|
|
List<String[]> la = Arrays.stream(value.toString().split("☆")).map(s -> s.split("_\\^_")).collect(Collectors.toList());
|
|
List<String[]> la = Arrays.stream(value.toString().split("☆")).map(s -> s.split("_\\^_")).collect(Collectors.toList());
|
|
/*全部为一个数的时候不用修改*/
|
|
/*全部为一个数的时候不用修改*/
|
|
if (la.stream().map(a -> a[0]).collect(Collectors.toSet()).size() > 1 || la.size() == 1) {
|
|
if (la.stream().map(a -> a[0]).collect(Collectors.toSet()).size() > 1 || la.size() == 1) {
|
|
-/* return la.stream().map(a -> {
|
|
|
|
- String v = a[0];
|
|
|
|
- RangeJson best = rjs.stream().min(Comparator.comparingDouble(j -> Double.parseDouble(v) - Double.parseDouble(j.getDesign()))).orElse(rjs.get(0));
|
|
|
|
- int scale = Math.max(new StringBuilder(v).reverse().indexOf("."), 0);
|
|
|
|
- String sv = BaseUtils.rangeList(1, best.getDesign(), best.getDev(), 1, scale, 1).get(0).toString();
|
|
|
|
- return sv + "_^_" + a[1];
|
|
|
|
- }).collect(Collectors.joining());*/
|
|
|
|
List<String> result = new ArrayList<>();
|
|
List<String> result = new ArrayList<>();
|
|
for (String[] a : la) {
|
|
for (String[] a : la) {
|
|
String v = a[0];
|
|
String v = a[0];
|