|
@@ -220,7 +220,7 @@ public class IotOperationMeetingServiceImpl implements IotOperationMeetingServic
|
|
|
BigDecimal actualGasInjection = getActualValue(properties, "actualGasInjection");
|
|
BigDecimal actualGasInjection = getActualValue(properties, "actualGasInjection");
|
|
|
if (planGasInjection.compareTo(BigDecimal.ZERO) > 0) {
|
|
if (planGasInjection.compareTo(BigDecimal.ZERO) > 0) {
|
|
|
// 注气完成比 gasCompletionRatio = 实际注气量/计划注气量 23.85%
|
|
// 注气完成比 gasCompletionRatio = 实际注气量/计划注气量 23.85%
|
|
|
- BigDecimal gasCompletionRatio = actualGasInjection.divide(planGasInjection, 4, RoundingMode.HALF_UP);
|
|
|
|
|
|
|
+ BigDecimal gasCompletionRatio = actualGasInjection.divide(planGasInjection, 4, RoundingMode.HALF_UP).multiply(new BigDecimal("100"));
|
|
|
// 将 完成比 作为单独的1个元素添加到 extProperty
|
|
// 将 完成比 作为单独的1个元素添加到 extProperty
|
|
|
IotTaskAttrModelProperty completionRatioProperty = new IotTaskAttrModelProperty();
|
|
IotTaskAttrModelProperty completionRatioProperty = new IotTaskAttrModelProperty();
|
|
|
completionRatioProperty.setName("注气完成比");
|
|
completionRatioProperty.setName("注气完成比");
|
|
@@ -246,7 +246,7 @@ public class IotOperationMeetingServiceImpl implements IotOperationMeetingServic
|
|
|
BigDecimal actualFootage = getActualValue(properties, "actualFootage");
|
|
BigDecimal actualFootage = getActualValue(properties, "actualFootage");
|
|
|
if (planFootage.compareTo(BigDecimal.ZERO) > 0) {
|
|
if (planFootage.compareTo(BigDecimal.ZERO) > 0) {
|
|
|
// 进尺完成比 footageCompletionRatio = 实际进尺/计划进尺 23.85%
|
|
// 进尺完成比 footageCompletionRatio = 实际进尺/计划进尺 23.85%
|
|
|
- BigDecimal footageCompletionRatio = actualFootage.divide(planFootage, 4, RoundingMode.HALF_UP);
|
|
|
|
|
|
|
+ BigDecimal footageCompletionRatio = actualFootage.divide(planFootage, 4, RoundingMode.HALF_UP).multiply(new BigDecimal("100"));
|
|
|
// 将 完成比 作为单独的1个元素添加到 extProperty
|
|
// 将 完成比 作为单独的1个元素添加到 extProperty
|
|
|
IotTaskAttrModelProperty footageCompletionRatioProperty = new IotTaskAttrModelProperty();
|
|
IotTaskAttrModelProperty footageCompletionRatioProperty = new IotTaskAttrModelProperty();
|
|
|
footageCompletionRatioProperty.setName("进尺完成比");
|
|
footageCompletionRatioProperty.setName("进尺完成比");
|
|
@@ -272,7 +272,7 @@ public class IotOperationMeetingServiceImpl implements IotOperationMeetingServic
|
|
|
BigDecimal actualLayers = getActualValue(properties, "actualLayers");
|
|
BigDecimal actualLayers = getActualValue(properties, "actualLayers");
|
|
|
if (planLayers.compareTo(BigDecimal.ZERO) > 0) {
|
|
if (planLayers.compareTo(BigDecimal.ZERO) > 0) {
|
|
|
// 层数完成比 layersCompletionRatio = 实际层数/计划层数 23.85%
|
|
// 层数完成比 layersCompletionRatio = 实际层数/计划层数 23.85%
|
|
|
- BigDecimal layersCompletionRatio = actualLayers.divide(planLayers, 4, RoundingMode.HALF_UP);
|
|
|
|
|
|
|
+ BigDecimal layersCompletionRatio = actualLayers.divide(planLayers, 4, RoundingMode.HALF_UP).multiply(new BigDecimal("100"));
|
|
|
// 将 完成比 作为单独的1个元素添加到 extProperty
|
|
// 将 完成比 作为单独的1个元素添加到 extProperty
|
|
|
IotTaskAttrModelProperty layersCompletionRatioProperty = new IotTaskAttrModelProperty();
|
|
IotTaskAttrModelProperty layersCompletionRatioProperty = new IotTaskAttrModelProperty();
|
|
|
layersCompletionRatioProperty.setName("层数完成比");
|
|
layersCompletionRatioProperty.setName("层数完成比");
|
|
@@ -298,7 +298,7 @@ public class IotOperationMeetingServiceImpl implements IotOperationMeetingServic
|
|
|
BigDecimal actualWellTrips = getActualValue(properties, "actualWellTrips");
|
|
BigDecimal actualWellTrips = getActualValue(properties, "actualWellTrips");
|
|
|
if (planWellTrips.compareTo(BigDecimal.ZERO) > 0) {
|
|
if (planWellTrips.compareTo(BigDecimal.ZERO) > 0) {
|
|
|
// 井次完成比 wellTripsCompletionRatio = 实际井次/计划井次 23.85%
|
|
// 井次完成比 wellTripsCompletionRatio = 实际井次/计划井次 23.85%
|
|
|
- BigDecimal wellTripsCompletionRatio = actualWellTrips.divide(planWellTrips, 4, RoundingMode.HALF_UP);
|
|
|
|
|
|
|
+ BigDecimal wellTripsCompletionRatio = actualWellTrips.divide(planWellTrips, 4, RoundingMode.HALF_UP).multiply(new BigDecimal("100"));
|
|
|
// 将 完成比 作为单独的1个元素添加到 extProperty
|
|
// 将 完成比 作为单独的1个元素添加到 extProperty
|
|
|
IotTaskAttrModelProperty wellTripsCompletionRatioProperty = new IotTaskAttrModelProperty();
|
|
IotTaskAttrModelProperty wellTripsCompletionRatioProperty = new IotTaskAttrModelProperty();
|
|
|
wellTripsCompletionRatioProperty.setName("井次完成比");
|
|
wellTripsCompletionRatioProperty.setName("井次完成比");
|
|
@@ -329,7 +329,7 @@ public class IotOperationMeetingServiceImpl implements IotOperationMeetingServic
|
|
|
}
|
|
}
|
|
|
if (beforeUtilizationRate.compareTo(BigDecimal.ZERO) > 0) {
|
|
if (beforeUtilizationRate.compareTo(BigDecimal.ZERO) > 0) {
|
|
|
BigDecimal periodOnPeriod = utilizationRate.subtract(beforeUtilizationRate)
|
|
BigDecimal periodOnPeriod = utilizationRate.subtract(beforeUtilizationRate)
|
|
|
- .divide(beforeUtilizationRate, 4, RoundingMode.HALF_UP);
|
|
|
|
|
|
|
+ .divide(beforeUtilizationRate, 4, RoundingMode.HALF_UP).multiply(new BigDecimal("100"));
|
|
|
// 将 设备利用率 环比 作为单独的1个元素添加到 extProperty
|
|
// 将 设备利用率 环比 作为单独的1个元素添加到 extProperty
|
|
|
IotTaskAttrModelProperty periodOnPeriodProperty = new IotTaskAttrModelProperty();
|
|
IotTaskAttrModelProperty periodOnPeriodProperty = new IotTaskAttrModelProperty();
|
|
|
periodOnPeriodProperty.setName("环比");
|
|
periodOnPeriodProperty.setName("环比");
|
|
@@ -895,7 +895,7 @@ public class IotOperationMeetingServiceImpl implements IotOperationMeetingServic
|
|
|
BigDecimal actualGasInjection = companyActualGasInjectionPair.get(deptId);
|
|
BigDecimal actualGasInjection = companyActualGasInjectionPair.get(deptId);
|
|
|
BigDecimal planGasInjection = companyPlanGasInjectionPair.get(deptId);
|
|
BigDecimal planGasInjection = companyPlanGasInjectionPair.get(deptId);
|
|
|
if (planGasInjection.compareTo(BigDecimal.ZERO) > 0) {
|
|
if (planGasInjection.compareTo(BigDecimal.ZERO) > 0) {
|
|
|
- BigDecimal gasCompletionRatio = actualGasInjection.divide(planGasInjection, 4, RoundingMode.HALF_UP);
|
|
|
|
|
|
|
+ BigDecimal gasCompletionRatio = actualGasInjection.divide(planGasInjection, 4, RoundingMode.HALF_UP).multiply(new BigDecimal("100"));
|
|
|
IotTaskAttrModelProperty gasCompletionRatioProperty = new IotTaskAttrModelProperty();
|
|
IotTaskAttrModelProperty gasCompletionRatioProperty = new IotTaskAttrModelProperty();
|
|
|
gasCompletionRatioProperty.setName("注气完成比");
|
|
gasCompletionRatioProperty.setName("注气完成比");
|
|
|
gasCompletionRatioProperty.setAccessMode("r");
|
|
gasCompletionRatioProperty.setAccessMode("r");
|
|
@@ -963,7 +963,7 @@ public class IotOperationMeetingServiceImpl implements IotOperationMeetingServic
|
|
|
BigDecimal actualFootage = companyActualFootagePair.get(deptId);
|
|
BigDecimal actualFootage = companyActualFootagePair.get(deptId);
|
|
|
BigDecimal planFootage = companyPlanFootagePair.get(deptId);
|
|
BigDecimal planFootage = companyPlanFootagePair.get(deptId);
|
|
|
if (planFootage.compareTo(BigDecimal.ZERO) > 0) {
|
|
if (planFootage.compareTo(BigDecimal.ZERO) > 0) {
|
|
|
- BigDecimal footageCompletionRatio = actualFootage.divide(planFootage, 4, RoundingMode.HALF_UP);
|
|
|
|
|
|
|
+ BigDecimal footageCompletionRatio = actualFootage.divide(planFootage, 4, RoundingMode.HALF_UP).multiply(new BigDecimal("100"));
|
|
|
IotTaskAttrModelProperty footageCompletionRatioProperty = new IotTaskAttrModelProperty();
|
|
IotTaskAttrModelProperty footageCompletionRatioProperty = new IotTaskAttrModelProperty();
|
|
|
footageCompletionRatioProperty.setName("进尺完成比");
|
|
footageCompletionRatioProperty.setName("进尺完成比");
|
|
|
footageCompletionRatioProperty.setAccessMode("r");
|
|
footageCompletionRatioProperty.setAccessMode("r");
|
|
@@ -1030,7 +1030,7 @@ public class IotOperationMeetingServiceImpl implements IotOperationMeetingServic
|
|
|
BigDecimal actualWellTrips = companyActualWellTripsPair.get(deptId);
|
|
BigDecimal actualWellTrips = companyActualWellTripsPair.get(deptId);
|
|
|
BigDecimal planWellTrips = companyPlanWellTripsPair.get(deptId);
|
|
BigDecimal planWellTrips = companyPlanWellTripsPair.get(deptId);
|
|
|
if (planWellTrips.compareTo(BigDecimal.ZERO) > 0) {
|
|
if (planWellTrips.compareTo(BigDecimal.ZERO) > 0) {
|
|
|
- BigDecimal wellTripsCompletionRatio = actualWellTrips.divide(planWellTrips, 4, RoundingMode.HALF_UP);
|
|
|
|
|
|
|
+ BigDecimal wellTripsCompletionRatio = actualWellTrips.divide(planWellTrips, 4, RoundingMode.HALF_UP).multiply(new BigDecimal("100"));
|
|
|
IotTaskAttrModelProperty wellTripsCompletionRatioProperty = new IotTaskAttrModelProperty();
|
|
IotTaskAttrModelProperty wellTripsCompletionRatioProperty = new IotTaskAttrModelProperty();
|
|
|
wellTripsCompletionRatioProperty.setName("井次完成比");
|
|
wellTripsCompletionRatioProperty.setName("井次完成比");
|
|
|
wellTripsCompletionRatioProperty.setAccessMode("r");
|
|
wellTripsCompletionRatioProperty.setAccessMode("r");
|
|
@@ -1098,7 +1098,7 @@ public class IotOperationMeetingServiceImpl implements IotOperationMeetingServic
|
|
|
BigDecimal actualLayers = companyActualLayersPair.get(deptId);
|
|
BigDecimal actualLayers = companyActualLayersPair.get(deptId);
|
|
|
BigDecimal planLayers = companyPlanLayersPair.get(deptId);
|
|
BigDecimal planLayers = companyPlanLayersPair.get(deptId);
|
|
|
if (planLayers.compareTo(BigDecimal.ZERO) > 0) {
|
|
if (planLayers.compareTo(BigDecimal.ZERO) > 0) {
|
|
|
- BigDecimal layersCompletionRatio = actualLayers.divide(planLayers, 4, RoundingMode.HALF_UP);
|
|
|
|
|
|
|
+ BigDecimal layersCompletionRatio = actualLayers.divide(planLayers, 4, RoundingMode.HALF_UP).multiply(new BigDecimal("100"));
|
|
|
IotTaskAttrModelProperty layersCompletionRatioProperty = new IotTaskAttrModelProperty();
|
|
IotTaskAttrModelProperty layersCompletionRatioProperty = new IotTaskAttrModelProperty();
|
|
|
layersCompletionRatioProperty.setName("层数完成比");
|
|
layersCompletionRatioProperty.setName("层数完成比");
|
|
|
layersCompletionRatioProperty.setAccessMode("r");
|
|
layersCompletionRatioProperty.setAccessMode("r");
|
|
@@ -1151,7 +1151,7 @@ public class IotOperationMeetingServiceImpl implements IotOperationMeetingServic
|
|
|
BigDecimal inServiceDeviceNum = companyInServiceDeviceNumPair.get(deptId);
|
|
BigDecimal inServiceDeviceNum = companyInServiceDeviceNumPair.get(deptId);
|
|
|
BigDecimal constructionDeviceNum = companyConstructionDeviceNumPair.get(deptId);
|
|
BigDecimal constructionDeviceNum = companyConstructionDeviceNumPair.get(deptId);
|
|
|
if (inServiceDeviceNum.compareTo(BigDecimal.ZERO) > 0) {
|
|
if (inServiceDeviceNum.compareTo(BigDecimal.ZERO) > 0) {
|
|
|
- BigDecimal utilizationRate = constructionDeviceNum.divide(inServiceDeviceNum, 4, RoundingMode.HALF_UP);
|
|
|
|
|
|
|
+ BigDecimal utilizationRate = constructionDeviceNum.divide(inServiceDeviceNum, 4, RoundingMode.HALF_UP).multiply(new BigDecimal("100"));
|
|
|
IotTaskAttrModelProperty utilizationRateProperty = new IotTaskAttrModelProperty();
|
|
IotTaskAttrModelProperty utilizationRateProperty = new IotTaskAttrModelProperty();
|
|
|
utilizationRateProperty.setName("设备利用率");
|
|
utilizationRateProperty.setName("设备利用率");
|
|
|
utilizationRateProperty.setAccessMode("r");
|
|
utilizationRateProperty.setAccessMode("r");
|
|
@@ -1171,9 +1171,10 @@ public class IotOperationMeetingServiceImpl implements IotOperationMeetingServic
|
|
|
BigDecimal beforeInServiceDeviceNum = beforeCompanyInServiceDeviceNumPair.get(deptId);
|
|
BigDecimal beforeInServiceDeviceNum = beforeCompanyInServiceDeviceNumPair.get(deptId);
|
|
|
BigDecimal beforeConstructionDeviceNum = beforeCompanyConstructionDeviceNumPair.get(deptId);
|
|
BigDecimal beforeConstructionDeviceNum = beforeCompanyConstructionDeviceNumPair.get(deptId);
|
|
|
if (beforeInServiceDeviceNum.compareTo(BigDecimal.ZERO) > 0) {
|
|
if (beforeInServiceDeviceNum.compareTo(BigDecimal.ZERO) > 0) {
|
|
|
- BigDecimal beforeUtilizationRate = beforeConstructionDeviceNum.divide(beforeInServiceDeviceNum, 4, RoundingMode.HALF_UP);
|
|
|
|
|
|
|
+ BigDecimal beforeUtilizationRate = beforeConstructionDeviceNum.divide(beforeInServiceDeviceNum, 4, RoundingMode.HALF_UP).multiply(new BigDecimal("100"));
|
|
|
if (beforeUtilizationRate.compareTo(BigDecimal.ZERO) > 0) {
|
|
if (beforeUtilizationRate.compareTo(BigDecimal.ZERO) > 0) {
|
|
|
- BigDecimal periodOnPeriod = utilizationRate.subtract(beforeUtilizationRate).divide(beforeUtilizationRate, 4, RoundingMode.HALF_UP);
|
|
|
|
|
|
|
+ BigDecimal periodOnPeriod = utilizationRate.subtract(beforeUtilizationRate).
|
|
|
|
|
+ divide(beforeUtilizationRate, 4, RoundingMode.HALF_UP).multiply(new BigDecimal("100"));
|
|
|
IotTaskAttrModelProperty periodOnPeriodProperty = new IotTaskAttrModelProperty();
|
|
IotTaskAttrModelProperty periodOnPeriodProperty = new IotTaskAttrModelProperty();
|
|
|
periodOnPeriodProperty.setName("环比");
|
|
periodOnPeriodProperty.setName("环比");
|
|
|
periodOnPeriodProperty.setAccessMode("r");
|
|
periodOnPeriodProperty.setAccessMode("r");
|