|
@@ -1244,6 +1244,7 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
sta.flush();
|
|
|
/*把主表的表头表尾信息拷贝*/
|
|
|
headerFooterSub(subTableFds,tec);
|
|
|
+ /*如果识别到手填内容需要在附表写入数据后,更新评定关联数据*/
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
@@ -1454,7 +1455,7 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
ElementBlock eb = elementBlockMap.get(c.getCode());
|
|
|
ItemBlock targetItem = itemBlockMap.get(c.getCode() + ":" + tec.getCurrentNode().getPkId());
|
|
|
List<Object> list = c.getValues().stream().map(ElementData::getValue).filter(StringUtils::isNotEmpty).collect(Collectors.toList());
|
|
|
- /*1.无任何记录,当前页无数据,则不需要处理 2.存在记录当前无数据,则要消除 3.没有记录当前有数据,则需要增加 4.有记录有当前记录,则需更新*/
|
|
|
+ /*1.无任何记录,当前页无数据,则不需要处理 2.存在记录当前无数据,则要消除 3.没有记录当前有数据,则需要增加 4.有记录有当前数据,则需更新*/
|
|
|
if (Func.isNotEmpty(list) || targetItem != null) {
|
|
|
FormData designList = itemMatch(c, 0,tec);
|
|
|
FormData pass = itemMatch(c, 1,tec);
|
|
@@ -1483,7 +1484,7 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
int len = targetItem.getDesigns().size();
|
|
|
targetItem.setData(new ArrayList<>(list.stream().collect(Collectors.groupingBy(k -> index.getAndIncrement() / len, LinkedHashMap::new, Collectors.toList())).values()));
|
|
|
} else {
|
|
|
- /*targetItem.setData(Collections.singletonList(list.stream().map(StringUtils::obj2Double).collect(Collectors.toList())));*/
|
|
|
+ /*targetItem.setData(Collections.singletonList(list.stream().map(StringUtils::obj2Double).collect(Collectors.toList())));不一定是标准数字格式*/
|
|
|
targetItem.setData(Collections.singletonList(list));
|
|
|
}
|
|
|
if (pass != null && !pass.empty()) {
|