|
@@ -63,7 +63,7 @@ public class ExecutorMeter extends FormulaExecutor {
|
|
String prefix=itf.getFormNumber();
|
|
String prefix=itf.getFormNumber();
|
|
fn= fn.split("-")[0];
|
|
fn= fn.split("-")[0];
|
|
if(BaseUtils.isNumber(fn)){
|
|
if(BaseUtils.isNumber(fn)){
|
|
- fn=String.valueOf(100*Integer.parseInt(fn)/100);
|
|
|
|
|
|
+ fn=String.valueOf(100*(Integer.parseInt(fn)/100));
|
|
}
|
|
}
|
|
if(fn.equals(prefix)){
|
|
if(fn.equals(prefix)){
|
|
return prefix;
|
|
return prefix;
|
|
@@ -78,8 +78,8 @@ public class ExecutorMeter extends FormulaExecutor {
|
|
|
|
|
|
/*获取动态行最大行数,codeFind为相关元素码集合 */
|
|
/*获取动态行最大行数,codeFind为相关元素码集合 */
|
|
public Integer getLineSize(List<String> codeFind){
|
|
public Integer getLineSize(List<String> codeFind){
|
|
- int line=10;
|
|
|
|
- Optional<FormData> formDataOp= tec.getFormDataList().stream().filter(e-> BaseUtils.inChain(codeFind,e.getCode())).findAny();
|
|
|
|
|
|
+ int line=19;
|
|
|
|
+ Optional<FormData> formDataOp= tec.getFormDataMap().values().stream().filter(e->e.executable()&& BaseUtils.inChain(codeFind,e.getFormula().getRely())).findAny();
|
|
if(formDataOp.isPresent()){
|
|
if(formDataOp.isPresent()){
|
|
FormData target = formDataOp.get();
|
|
FormData target = formDataOp.get();
|
|
line= target.getCoordsList().size();
|
|
line= target.getCoordsList().size();
|
|
@@ -500,16 +500,13 @@ public class ExecutorMeter extends FormulaExecutor {
|
|
List<List<SubprojectInterimPaymentSummary>> ds = BaseUtils.splitList(v,capacity-1);
|
|
List<List<SubprojectInterimPaymentSummary>> ds = BaseUtils.splitList(v,capacity-1);
|
|
List<SubprojectInterimPaymentSummary> tmp = new ArrayList<>();
|
|
List<SubprojectInterimPaymentSummary> tmp = new ArrayList<>();
|
|
for(int n=0;n<pageSize;n++){
|
|
for(int n=0;n<pageSize;n++){
|
|
- List<SubprojectInterimPaymentSummary> currentPageData =null;
|
|
|
|
- if(ds.size()>n){
|
|
|
|
- currentPageData=ds.get(n);
|
|
|
|
- tmp.addAll(currentPageData);
|
|
|
|
- }
|
|
|
|
|
|
+ List<SubprojectInterimPaymentSummary> currentPageData =ds.get(n);
|
|
|
|
+ tmp.addAll(currentPageData);
|
|
int m=1;
|
|
int m=1;
|
|
if(pageSize-n==1){
|
|
if(pageSize-n==1){
|
|
m+=extra;
|
|
m+=extra;
|
|
}
|
|
}
|
|
- int placeholderSize = capacity-m;
|
|
|
|
|
|
+ int placeholderSize = capacity-m-currentPageData.size();
|
|
if(placeholderSize>0){
|
|
if(placeholderSize>0){
|
|
tmp.addAll(Collections.nCopies(placeholderSize,new SubprojectInterimPaymentSummary()));
|
|
tmp.addAll(Collections.nCopies(placeholderSize,new SubprojectInterimPaymentSummary()));
|
|
}
|
|
}
|
|
@@ -793,7 +790,7 @@ public class ExecutorMeter extends FormulaExecutor {
|
|
public void builderFormDatas(Class<T> clazz){
|
|
public void builderFormDatas(Class<T> clazz){
|
|
fdm = FormulaUtils.toFormDataMap(clazz);
|
|
fdm = FormulaUtils.toFormDataMap(clazz);
|
|
fieldDataFcMap =FormulaUtils.fieldDataFcMap(clazz);
|
|
fieldDataFcMap =FormulaUtils.fieldDataFcMap(clazz);
|
|
- capacity=getLineSize(new ArrayList<>(fdm.keySet()));
|
|
|
|
|
|
+ capacity=getLineSize(new ArrayList<>(fdm.keySet()).stream().filter(e->fieldDataFcMap.containsKey(e)).collect(Collectors.toList()));
|
|
tec.getFormDataMap().putAll(fdm);
|
|
tec.getFormDataMap().putAll(fdm);
|
|
dataList=new ArrayList<>();
|
|
dataList=new ArrayList<>();
|
|
}
|
|
}
|