|
@@ -1182,7 +1182,7 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
}
|
|
|
for (FormData fd : tec.formDataList) {
|
|
|
if (fd.verify()) {
|
|
|
- if(fd.getCode().equals("m_20240313110033_1767747549965320192:key_34")){
|
|
|
+ if(fd.getCode().equals("m_20220928143955_1575012411126054912:key_2")){
|
|
|
System.out.println("111");
|
|
|
}
|
|
|
Formula formula = fd.getFormula();
|
|
@@ -1242,9 +1242,8 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
} catch (Exception ee) {
|
|
|
ee.printStackTrace();
|
|
|
}
|
|
|
-
|
|
|
- //临时处理这个公式,多出来的空数据会导致多出一张表格出来,所以当依赖元素超过表格的size,并且后面数据全为空,就截取掉后面的值
|
|
|
if(ele.size()>0&&!ele.get(0).getCode().isEmpty()){
|
|
|
+ //临时处理这个公式,多出来的空数据会导致多出一张表格出来,所以当依赖元素超过表格的size,并且后面数据全为空,就截取掉后面的值
|
|
|
//依赖的 C8.144钻(挖)孔灌注桩、地下连续墙钢筋安装检验记录表的设计和实测
|
|
|
if(ele.get(0).getCode().equals("m_20230308150036_1633362063201927168:key_28")||ele.get(0).getCode().equals("m_20230308150036_1633362063201927168:key_24")){
|
|
|
if(data!=null){
|
|
@@ -1260,6 +1259,17 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ //ZJ401平整度,空值也会被拿到,导致多表,依赖的JL709路基平整度检验表
|
|
|
+ if(ele.get(0).getCode().equals("m_20220928101924_1574946848735494144:key_4")){
|
|
|
+ if(data!=null){
|
|
|
+ List<Object> list = (List<Object>)data;
|
|
|
+ //过滤掉空值或空字符串
|
|
|
+ data = list.stream()
|
|
|
+ .filter(obj -> obj != null && !"".equals(obj))
|
|
|
+ .collect(Collectors.toList());
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
//专门用来做试验的处理 水泥报告单的检测依据
|
|
|
if(fd.getCode().equals("m_20240313110817_1767749493136031744:key_32")||fd.getCode().equals("m_20240313110033_1767747549965320192:key_34")){
|
|
@@ -5646,14 +5656,14 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
executionTime.info("公式计算");
|
|
|
CompletableFuture.runAsync(() -> {
|
|
|
/*支付项*/
|
|
|
- saveInterimPayCertificateItems(tec.meterInfo.getInterimPayCertificateItems());
|
|
|
+ saveInterimPayCertificateItems(tec.meterInfo.getInterimPayCertificateItems(),tec.getReportId());
|
|
|
});
|
|
|
return tec.getReportResults();
|
|
|
}
|
|
|
|
|
|
- public void saveInterimPayCertificateItems(List<InterimPayCertificateItem> items) {
|
|
|
+ public void saveInterimPayCertificateItems(List<InterimPayCertificateItem> items,Long reportId) {
|
|
|
if (items != null && items.size() > 0) {
|
|
|
- this.certificateItemClient.saveOrUpdate(items);
|
|
|
+ this.certificateItemClient.saveOrUpdate(items,reportId);
|
|
|
}
|
|
|
}
|
|
|
|