Browse Source

PDF转换

tags/24080901
PoffyZhang 1 year ago
parent
commit
ce3ebbbd9a
3 changed files with 13 additions and 6 deletions
  1. +5
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/dashboard/model/entity/CockpitStats.java
  2. +6
    -5
      pmapi/src/main/java/com/ningdatech/pmapi/gov/manage/GovProjectCollectionManage.java
  3. +2
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/CockpitStatsStatisticsTask.java

+ 5
- 0
pmapi/src/main/java/com/ningdatech/pmapi/dashboard/model/entity/CockpitStats.java View File

@@ -214,6 +214,8 @@ public class CockpitStats implements Serializable {
private Integer produceComponentNum = 0;
@ApiModelProperty("产出-大脑要素")
private Integer produceBrainElementsNum = 0;
@ApiModelProperty("产出-大脑要素 模型数")
private Integer produceBrainModelNum = 0;

@ApiModelProperty("绩效-项目总数量")
private Integer performanceTotal = 0;
@@ -254,4 +256,7 @@ public class CockpitStats implements Serializable {
@ApiModelProperty("绩效-top5名称")
private String performanceTop5Name;

@ApiModelProperty("数据质量")
private BigDecimal dataQuality;

}

+ 6
- 5
pmapi/src/main/java/com/ningdatech/pmapi/gov/manage/GovProjectCollectionManage.java View File

@@ -1707,15 +1707,16 @@ public class GovProjectCollectionManage {
log.error("转换PDF文件出错" + e);
}

if(Objects.isNull(oldFiled)){
return Boolean.FALSE;
if(StringUtils.isBlank(oldFiled)){
return Boolean.TRUE;
}

if(!oldFiled.equals(field)){
return Boolean.TRUE;
//如果一模一样 就不用上传了
if(oldFiled.equals(field)){
return Boolean.FALSE;
}

return Boolean.FALSE;
return Boolean.TRUE;
}

/**


+ 2
- 1
pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/CockpitStatsStatisticsTask.java View File

@@ -649,7 +649,8 @@ public class CockpitStatsStatisticsTask {
return transactionAmount.doubleValue();
}).sum();
Double approvalAmountContractGov = procures.stream().mapToDouble(p -> {
BigDecimal purchaseAmount = Objects.nonNull(p.getBaseProjPurchaseAmount()) ? p.getBaseProjPurchaseAmount() : BigDecimal.ZERO;
BigDecimal purchaseAmount = Objects.nonNull(p.getBaseProjPurchaseAmount()) ?
p.getBaseProjPurchaseAmount() : BigDecimal.ZERO;
return purchaseAmount.doubleValue();
}).sum();
BigDecimal approvalAmountContractTotal = BigDecimal.valueOf(approvalAmountContract).add(BigDecimal.valueOf(approvalAmountContractGov));


Loading…
Cancel
Save