|
@@ -5,6 +5,7 @@ import com.ruoyi.common.utils.StringUtils;
|
|
import com.ruoyi.common.utils.file.ExcelUtils;
|
|
import com.ruoyi.common.utils.file.ExcelUtils;
|
|
import com.ruoyi.framework.web.controller.BaseController;
|
|
import com.ruoyi.framework.web.controller.BaseController;
|
|
import com.ruoyi.framework.web.domain.AjaxResult;
|
|
import com.ruoyi.framework.web.domain.AjaxResult;
|
|
|
|
+import com.ruoyi.project.production.controller.vo.C2ReactorTableVO;
|
|
import com.ruoyi.project.production.controller.vo.C3ReactorAnalysisVO;
|
|
import com.ruoyi.project.production.controller.vo.C3ReactorAnalysisVO;
|
|
import com.ruoyi.project.production.controller.vo.C3ReactorTableVO;
|
|
import com.ruoyi.project.production.controller.vo.C3ReactorTableVO;
|
|
import com.ruoyi.project.production.controller.vo.MonthlyQualityReportQueryVO;
|
|
import com.ruoyi.project.production.controller.vo.MonthlyQualityReportQueryVO;
|
|
@@ -117,6 +118,277 @@ public class TMonthlyQualityReportController extends BaseController
|
|
@Autowired
|
|
@Autowired
|
|
private ITMonthlyQualityReportZ404Service tMonthlyQualityReportZ404Service;
|
|
private ITMonthlyQualityReportZ404Service tMonthlyQualityReportZ404Service;
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 碳二反应器性能指标表格
|
|
|
|
+ */
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('production:quality:list')")
|
|
|
|
+ @GetMapping("/c2ReactorTable")
|
|
|
|
+ public AjaxResult c2ReactorTable(MonthlyQualityReportQueryVO vo)
|
|
|
|
+ {
|
|
|
|
+ Date startDate = vo.getStartDate();
|
|
|
|
+ Date endDate = vo.getEndDate();
|
|
|
|
+ //1st inlet
|
|
|
|
+ TMonthlyQualityReportS3009 tMonthlyQualityReportS3009 = new TMonthlyQualityReportS3009();
|
|
|
|
+ tMonthlyQualityReportS3009.setStartDate(startDate);
|
|
|
|
+ tMonthlyQualityReportS3009.setEndDate(endDate);
|
|
|
|
+ List<TMonthlyQualityReportS3009> tMonthlyQualityReportS3009s = tMonthlyQualityReportS3009Service.selectTMonthlyQualityReportS3009List(tMonthlyQualityReportS3009);
|
|
|
|
+ //3rd outlet
|
|
|
|
+ TMonthlyQualityReportS3010 tMonthlyQualityReportS3010 = new TMonthlyQualityReportS3010();
|
|
|
|
+ tMonthlyQualityReportS3010.setStartDate(startDate);
|
|
|
|
+ tMonthlyQualityReportS3010.setEndDate(endDate);
|
|
|
|
+ List<TMonthlyQualityReportS3010> tMonthlyQualityReportS3010s = tMonthlyQualityReportS3010Service.selectTMonthlyQualityReportS3010List(tMonthlyQualityReportS3010);
|
|
|
|
+ //2nd inlet
|
|
|
|
+ TMonthlyQualityReportS3011 tMonthlyQualityReportS3011 = new TMonthlyQualityReportS3011();
|
|
|
|
+ tMonthlyQualityReportS3011.setStartDate(startDate);
|
|
|
|
+ tMonthlyQualityReportS3011.setEndDate(endDate);
|
|
|
|
+ List<TMonthlyQualityReportS3011> tMonthlyQualityReportS3011s = tMonthlyQualityReportS3011Service.selectTMonthlyQualityReportS3011List(tMonthlyQualityReportS3011);
|
|
|
|
+ //3rd inlet
|
|
|
|
+ TMonthlyQualityReportS3012 tMonthlyQualityReportS3012 = new TMonthlyQualityReportS3012();
|
|
|
|
+ tMonthlyQualityReportS3012.setStartDate(startDate);
|
|
|
|
+ tMonthlyQualityReportS3012.setEndDate(endDate);
|
|
|
|
+ List<TMonthlyQualityReportS3012> tMonthlyQualityReportS3012s = tMonthlyQualityReportS3012Service.selectTMonthlyQualityReportS3012List(tMonthlyQualityReportS3012);
|
|
|
|
+ //avg
|
|
|
|
+ BigDecimal ethane1InAvg = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal ethylene1InAvg = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal acetylene1InAvg = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal propane1InAvg = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal propylene1InAvg = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal pd1InAvg = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal ma1InAvg = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal ethane3OutAvg = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal ethylene3OutAvg = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal acetylene3OutAvg = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal propane3OutAvg = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal propylene3OutAvg = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal pd3OutAvg = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal ma3OutAvg = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal ethane2InAvg = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal ethylene2InAvg = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal acetylene2InAvg = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal propane2InAvg = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal propylene2InAvg = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal pd2InAvg = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal ma2InAvg = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal ethane3InAvg = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal ethylene3InAvg = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal acetylene3InAvg = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal propane3InAvg = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal propylene3InAvg = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal pd3InAvg = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal ma3InAvg = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ //sum
|
|
|
|
+ BigDecimal ethane1InSum = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal ethylene1InSum = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal acetylene1InSum = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal propane1InSum = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal propylene1InSum = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal pd1InSum = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal ma1InSum = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal ethane3OutSum = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal ethylene3OutSum = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal acetylene3OutSum = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal propane3OutSum = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal propylene3OutSum = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal pd3OutSum = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal ma3OutSum = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal ethane2InSum = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal ethylene2InSum = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal acetylene2InSum = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal propane2InSum = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal propylene2InSum = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal pd2InSum = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal ma2InSum = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal ethane3InSum = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal ethylene3InSum = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal acetylene3InSum = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal propane3InSum = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal propylene3InSum = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal pd3InSum = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ BigDecimal ma3InSum = new BigDecimal(BigInteger.ZERO);
|
|
|
|
+ //list
|
|
|
|
+ ArrayList<BigDecimal> ethane1InList = new ArrayList<BigDecimal>();
|
|
|
|
+ ArrayList<BigDecimal> ethylene1InList = new ArrayList<BigDecimal>();
|
|
|
|
+ ArrayList<BigDecimal> acetylene1InList = new ArrayList<BigDecimal>();
|
|
|
|
+ ArrayList<BigDecimal> propane1InList = new ArrayList<BigDecimal>();
|
|
|
|
+ ArrayList<BigDecimal> propylene1InList = new ArrayList<BigDecimal>();
|
|
|
|
+ ArrayList<BigDecimal> pd1InList = new ArrayList<BigDecimal>();
|
|
|
|
+ ArrayList<BigDecimal> ma1InList = new ArrayList<BigDecimal>();
|
|
|
|
+ ArrayList<BigDecimal> ethane3OutList = new ArrayList<BigDecimal>();
|
|
|
|
+ ArrayList<BigDecimal> ethylene3OutList = new ArrayList<BigDecimal>();
|
|
|
|
+ ArrayList<BigDecimal> acetylene3OutList = new ArrayList<BigDecimal>();
|
|
|
|
+ ArrayList<BigDecimal> propane3OutList = new ArrayList<BigDecimal>();
|
|
|
|
+ ArrayList<BigDecimal> propylene3OutList = new ArrayList<BigDecimal>();
|
|
|
|
+ ArrayList<BigDecimal> pd3OutList = new ArrayList<BigDecimal>();
|
|
|
|
+ ArrayList<BigDecimal> ma3OutList = new ArrayList<BigDecimal>();
|
|
|
|
+ ArrayList<BigDecimal> ethane2InList = new ArrayList<BigDecimal>();
|
|
|
|
+ ArrayList<BigDecimal> ethylene2InList = new ArrayList<BigDecimal>();
|
|
|
|
+ ArrayList<BigDecimal> acetylene2InList = new ArrayList<BigDecimal>();
|
|
|
|
+ ArrayList<BigDecimal> propane2InList = new ArrayList<BigDecimal>();
|
|
|
|
+ ArrayList<BigDecimal> propylene2InList = new ArrayList<BigDecimal>();
|
|
|
|
+ ArrayList<BigDecimal> pd2InList = new ArrayList<BigDecimal>();
|
|
|
|
+ ArrayList<BigDecimal> ma2InList = new ArrayList<BigDecimal>();
|
|
|
|
+ ArrayList<BigDecimal> ethane3InList = new ArrayList<BigDecimal>();
|
|
|
|
+ ArrayList<BigDecimal> ethylene3InList = new ArrayList<BigDecimal>();
|
|
|
|
+ ArrayList<BigDecimal> acetylene3InList = new ArrayList<BigDecimal>();
|
|
|
|
+ ArrayList<BigDecimal> propane3InList = new ArrayList<BigDecimal>();
|
|
|
|
+ ArrayList<BigDecimal> propylene3InList = new ArrayList<BigDecimal>();
|
|
|
|
+ ArrayList<BigDecimal> pd3InList = new ArrayList<BigDecimal>();
|
|
|
|
+ ArrayList<BigDecimal> ma3InList = new ArrayList<BigDecimal>();
|
|
|
|
+ //放入list
|
|
|
|
+ for (TMonthlyQualityReportS3009 monthlyQualityReportS3009 : tMonthlyQualityReportS3009s) {
|
|
|
|
+ String ethane = monthlyQualityReportS3009.getEthane();
|
|
|
|
+ String ethylene = monthlyQualityReportS3009.getEthylene();
|
|
|
|
+ String acetylene = monthlyQualityReportS3009.getAcetylene();
|
|
|
|
+ String propane = monthlyQualityReportS3009.getPropane();
|
|
|
|
+ String propylene = monthlyQualityReportS3009.getPropylene();
|
|
|
|
+ String pd = monthlyQualityReportS3009.getPropadiene();
|
|
|
|
+ String ma = monthlyQualityReportS3009.getMethylacetylene();
|
|
|
|
+ if (StringUtils.isNotEmpty(ethane)) { ethane1InList.add(new BigDecimal(ethane)); }
|
|
|
|
+ if (StringUtils.isNotEmpty(ethylene)) { ethylene1InList.add(new BigDecimal(ethylene)); }
|
|
|
|
+ if (StringUtils.isNotEmpty(acetylene)) { acetylene1InList.add(new BigDecimal(acetylene)); }
|
|
|
|
+ if (StringUtils.isNotEmpty(propane)) { propane1InList.add(new BigDecimal(propane)); }
|
|
|
|
+ if (StringUtils.isNotEmpty(propylene)) { propylene1InList.add(new BigDecimal(propylene)); }
|
|
|
|
+ if (StringUtils.isNotEmpty(pd)) { pd1InList.add(new BigDecimal(pd)); }
|
|
|
|
+ if (StringUtils.isNotEmpty(ma)) { ma1InList.add(new BigDecimal(ma)); }
|
|
|
|
+ }
|
|
|
|
+ for (TMonthlyQualityReportS3010 monthlyQualityReportS3010 : tMonthlyQualityReportS3010s) {
|
|
|
|
+ String ethane = monthlyQualityReportS3010.getEthane();
|
|
|
|
+ String ethylene = monthlyQualityReportS3010.getEthylene();
|
|
|
|
+ String acetylene = monthlyQualityReportS3010.getAcetylene();
|
|
|
|
+ String propane = monthlyQualityReportS3010.getPropane();
|
|
|
|
+ String propylene = monthlyQualityReportS3010.getPropylene();
|
|
|
|
+ String pd = monthlyQualityReportS3010.getPropadiene();
|
|
|
|
+ String ma = monthlyQualityReportS3010.getMethylacetylene();
|
|
|
|
+ if (StringUtils.isNotEmpty(ethane)) { ethane3OutList.add(new BigDecimal(ethane)); }
|
|
|
|
+ if (StringUtils.isNotEmpty(ethylene)) { ethylene3OutList.add(new BigDecimal(ethylene)); }
|
|
|
|
+ if (StringUtils.isNotEmpty(acetylene)) { acetylene3OutList.add(new BigDecimal(acetylene)); }
|
|
|
|
+ if (StringUtils.isNotEmpty(propane)) { propane3OutList.add(new BigDecimal(propane)); }
|
|
|
|
+ if (StringUtils.isNotEmpty(propylene)) { propylene3OutList.add(new BigDecimal(propylene)); }
|
|
|
|
+ if (StringUtils.isNotEmpty(pd)) { pd3OutList.add(new BigDecimal(pd)); }
|
|
|
|
+ if (StringUtils.isNotEmpty(ma)) { ma3OutList.add(new BigDecimal(ma)); }
|
|
|
|
+ }
|
|
|
|
+ for (TMonthlyQualityReportS3011 monthlyQualityReportS3011 : tMonthlyQualityReportS3011s) {
|
|
|
|
+ String ethane = monthlyQualityReportS3011.getEthane();
|
|
|
|
+ String ethylene = monthlyQualityReportS3011.getEthylene();
|
|
|
|
+ String acetylene = monthlyQualityReportS3011.getAcetylene();
|
|
|
|
+ String propane = monthlyQualityReportS3011.getPropane();
|
|
|
|
+ String propylene = monthlyQualityReportS3011.getPropylene();
|
|
|
|
+ String pd = monthlyQualityReportS3011.getPropadiene();
|
|
|
|
+ String ma = monthlyQualityReportS3011.getMethylacetylene();
|
|
|
|
+ if (StringUtils.isNotEmpty(ethane)) { ethane2InList.add(new BigDecimal(ethane)); }
|
|
|
|
+ if (StringUtils.isNotEmpty(ethylene)) { ethylene2InList.add(new BigDecimal(ethylene)); }
|
|
|
|
+ if (StringUtils.isNotEmpty(acetylene)) { acetylene2InList.add(new BigDecimal(acetylene)); }
|
|
|
|
+ if (StringUtils.isNotEmpty(propane)) { propane2InList.add(new BigDecimal(propane)); }
|
|
|
|
+ if (StringUtils.isNotEmpty(propylene)) { propylene2InList.add(new BigDecimal(propylene)); }
|
|
|
|
+ if (StringUtils.isNotEmpty(pd)) { pd2InList.add(new BigDecimal(pd)); }
|
|
|
|
+ if (StringUtils.isNotEmpty(ma)) { ma2InList.add(new BigDecimal(ma)); }
|
|
|
|
+ }
|
|
|
|
+ for (TMonthlyQualityReportS3012 monthlyQualityReportS3012 : tMonthlyQualityReportS3012s) {
|
|
|
|
+ String ethane = monthlyQualityReportS3012.getEthane();
|
|
|
|
+ String ethylene = monthlyQualityReportS3012.getEthylene();
|
|
|
|
+ String acetylene = monthlyQualityReportS3012.getAcetylene();
|
|
|
|
+ String propane = monthlyQualityReportS3012.getPropane();
|
|
|
|
+ String propylene = monthlyQualityReportS3012.getPropylene();
|
|
|
|
+ String pd = monthlyQualityReportS3012.getPropadiene();
|
|
|
|
+ String ma = monthlyQualityReportS3012.getMethylacetylene();
|
|
|
|
+ if (StringUtils.isNotEmpty(ethane)) { ethane3InList.add(new BigDecimal(ethane)); }
|
|
|
|
+ if (StringUtils.isNotEmpty(ethylene)) { ethylene3InList.add(new BigDecimal(ethylene)); }
|
|
|
|
+ if (StringUtils.isNotEmpty(acetylene)) { acetylene3InList.add(new BigDecimal(acetylene)); }
|
|
|
|
+ if (StringUtils.isNotEmpty(propane)) { propane3InList.add(new BigDecimal(propane)); }
|
|
|
|
+ if (StringUtils.isNotEmpty(propylene)) { propylene3InList.add(new BigDecimal(propylene)); }
|
|
|
|
+ if (StringUtils.isNotEmpty(pd)) { pd3InList.add(new BigDecimal(pd)); }
|
|
|
|
+ if (StringUtils.isNotEmpty(ma)) { ma3InList.add(new BigDecimal(ma)); }
|
|
|
|
+ }
|
|
|
|
+ //计算sum
|
|
|
|
+ for (BigDecimal value : ethane1InList) { ethane1InSum = ethane1InSum.add(value); }
|
|
|
|
+ for (BigDecimal value : ethylene1InList) { ethylene1InSum = ethylene1InSum.add(value); }
|
|
|
|
+ for (BigDecimal value : acetylene1InList) { acetylene1InSum = acetylene1InSum.add(value); }
|
|
|
|
+ for (BigDecimal value : propane1InList) { propane1InSum = propane1InSum.add(value); }
|
|
|
|
+ for (BigDecimal value : propylene1InList) { propylene1InSum = propylene1InSum.add(value); }
|
|
|
|
+ for (BigDecimal value : pd1InList) { pd1InSum = pd1InSum.add(value); }
|
|
|
|
+ for (BigDecimal value : ma1InList) { ma1InSum = ma1InSum.add(value); }
|
|
|
|
+ for (BigDecimal value : ethane3OutList) { ethane3OutSum = ethane3OutSum.add(value); }
|
|
|
|
+ for (BigDecimal value : ethylene3OutList) { ethylene3OutSum = ethylene3OutSum.add(value); }
|
|
|
|
+ for (BigDecimal value : acetylene3OutList) { acetylene3OutSum = acetylene3OutSum.add(value); }
|
|
|
|
+ for (BigDecimal value : propane3OutList) { propane3OutSum = propane3OutSum.add(value); }
|
|
|
|
+ for (BigDecimal value : propylene3OutList) { propylene3OutSum = propylene3OutSum.add(value); }
|
|
|
|
+ for (BigDecimal value : pd3OutList) { pd3OutSum = pd3OutSum.add(value); }
|
|
|
|
+ for (BigDecimal value : ma3OutList) { ma3OutSum = ma3OutSum.add(value); }
|
|
|
|
+ for (BigDecimal value : ethane2InList) { ethane2InSum = ethane2InSum.add(value); }
|
|
|
|
+ for (BigDecimal value : ethylene2InList) { ethylene2InSum = ethylene2InSum.add(value); }
|
|
|
|
+ for (BigDecimal value : acetylene2InList) { acetylene2InSum = acetylene2InSum.add(value); }
|
|
|
|
+ for (BigDecimal value : propane2InList) { propane2InSum = propane2InSum.add(value); }
|
|
|
|
+ for (BigDecimal value : propylene2InList) { propylene2InSum = propylene2InSum.add(value); }
|
|
|
|
+ for (BigDecimal value : pd2InList) { pd2InSum = pd2InSum.add(value); }
|
|
|
|
+ for (BigDecimal value : ma2InList) { ma2InSum = ma2InSum.add(value); }
|
|
|
|
+ for (BigDecimal value : ethane3InList) { ethane3InSum = ethane3InSum.add(value); }
|
|
|
|
+ for (BigDecimal value : ethylene3InList) { ethylene3InSum = ethylene3InSum.add(value); }
|
|
|
|
+ for (BigDecimal value : acetylene3InList) { acetylene3InSum = acetylene3InSum.add(value); }
|
|
|
|
+ for (BigDecimal value : propane3InList) { propane3InSum = propane3InSum.add(value); }
|
|
|
|
+ for (BigDecimal value : propylene3InList) { propylene3InSum = propylene3InSum.add(value); }
|
|
|
|
+ for (BigDecimal value : pd3InList) { pd3InSum = pd3InSum.add(value); }
|
|
|
|
+ for (BigDecimal value : ma3InList) { ma3InSum = ma3InSum.add(value); }
|
|
|
|
+ //计算avg
|
|
|
|
+ if (ethane1InList.size() != 0) { ethane1InAvg = ethane1InSum.divide(new BigDecimal(ethane1InList.size()), 2, RoundingMode.HALF_UP); }
|
|
|
|
+ if (ethylene1InList.size() != 0) { ethylene1InAvg = ethylene1InSum.divide(new BigDecimal(ethylene1InList.size()), 2, RoundingMode.HALF_UP); }
|
|
|
|
+ if (acetylene1InList.size() != 0) { acetylene1InAvg = acetylene1InSum.divide(new BigDecimal(acetylene1InList.size()), 2, RoundingMode.HALF_UP); }
|
|
|
|
+ if (propane1InList.size() != 0) { propane1InAvg = propane1InSum.divide(new BigDecimal(propane1InList.size()), 2, RoundingMode.HALF_UP); }
|
|
|
|
+ if (propylene1InList.size() != 0) { propylene1InAvg = propylene1InSum.divide(new BigDecimal(propylene1InList.size()), 2, RoundingMode.HALF_UP); }
|
|
|
|
+ if (pd1InList.size() != 0) { pd1InAvg = pd1InSum.divide(new BigDecimal(pd1InList.size()), 2, RoundingMode.HALF_UP); }
|
|
|
|
+ if (ma1InList.size() != 0) { ma1InAvg = ma1InSum.divide(new BigDecimal(ma1InList.size()), 2, RoundingMode.HALF_UP); }
|
|
|
|
+ if (ethane3OutList.size() != 0) { ethane3OutAvg = ethane3OutSum.divide(new BigDecimal(ethane3OutList.size()), 2, RoundingMode.HALF_UP); }
|
|
|
|
+ if (ethylene3OutList.size() != 0) { ethylene3OutAvg = ethylene3OutSum.divide(new BigDecimal(ethylene3OutList.size()), 2, RoundingMode.HALF_UP); }
|
|
|
|
+ if (acetylene3OutList.size() != 0) { acetylene3OutAvg = acetylene3OutSum.divide(new BigDecimal(acetylene3OutList.size()), 2, RoundingMode.HALF_UP); }
|
|
|
|
+ if (propane3OutList.size() != 0) { propane3OutAvg = propane3OutSum.divide(new BigDecimal(propane3OutList.size()), 2, RoundingMode.HALF_UP); }
|
|
|
|
+ if (propylene3OutList.size() != 0) { propylene3OutAvg = propylene3OutSum.divide(new BigDecimal(propylene3OutList.size()), 2, RoundingMode.HALF_UP); }
|
|
|
|
+ if (pd3OutList.size() != 0) { pd3OutAvg = pd3OutSum.divide(new BigDecimal(pd3OutList.size()), 2, RoundingMode.HALF_UP); }
|
|
|
|
+ if (ma3OutList.size() != 0) { ma3OutAvg = ma3OutSum.divide(new BigDecimal(ma3OutList.size()), 2, RoundingMode.HALF_UP); }
|
|
|
|
+ if (ethane2InList.size() != 0) { ethane2InAvg = ethane2InSum.divide(new BigDecimal(ethane2InList.size()), 2, RoundingMode.HALF_UP); }
|
|
|
|
+ if (ethylene2InList.size() != 0) { ethylene2InAvg = ethylene2InSum.divide(new BigDecimal(ethylene2InList.size()), 2, RoundingMode.HALF_UP); }
|
|
|
|
+ if (acetylene2InList.size() != 0) { acetylene2InAvg = acetylene2InSum.divide(new BigDecimal(acetylene2InList.size()), 2, RoundingMode.HALF_UP); }
|
|
|
|
+ if (propane2InList.size() != 0) { propane2InAvg = propane2InSum.divide(new BigDecimal(propane2InList.size()), 2, RoundingMode.HALF_UP); }
|
|
|
|
+ if (propylene2InList.size() != 0) { propylene2InAvg = propylene2InSum.divide(new BigDecimal(propylene2InList.size()), 2, RoundingMode.HALF_UP); }
|
|
|
|
+ if (pd2InList.size() != 0) { pd2InAvg = pd2InSum.divide(new BigDecimal(pd2InList.size()), 2, RoundingMode.HALF_UP); }
|
|
|
|
+ if (ma2InList.size() != 0) { ma2InAvg = ma2InSum.divide(new BigDecimal(ma2InList.size()), 2, RoundingMode.HALF_UP); }
|
|
|
|
+ if (ethane3InList.size() != 0) { ethane3InAvg = ethane3InSum.divide(new BigDecimal(ethane3InList.size()), 2, RoundingMode.HALF_UP); }
|
|
|
|
+ if (ethylene3InList.size() != 0) { ethylene3InAvg = ethylene3InSum.divide(new BigDecimal(ethylene3InList.size()), 2, RoundingMode.HALF_UP); }
|
|
|
|
+ if (acetylene3InList.size() != 0) { acetylene3InAvg = acetylene3InSum.divide(new BigDecimal(acetylene3InList.size()), 2, RoundingMode.HALF_UP); }
|
|
|
|
+ if (propane3InList.size() != 0) { propane3InAvg = propane3InSum.divide(new BigDecimal(propane3InList.size()), 2, RoundingMode.HALF_UP); }
|
|
|
|
+ if (propylene3InList.size() != 0) { propylene3InAvg = propylene3InSum.divide(new BigDecimal(propylene3InList.size()), 2, RoundingMode.HALF_UP); }
|
|
|
|
+ if (pd3InList.size() != 0) { pd3InAvg = pd3InSum.divide(new BigDecimal(pd3InList.size()), 2, RoundingMode.HALF_UP); }
|
|
|
|
+ if (ma3InList.size() != 0) { ma3InAvg = ma3InSum.divide(new BigDecimal(ma3InList.size()), 2, RoundingMode.HALF_UP); }
|
|
|
|
+ C2ReactorTableVO tableVO = new C2ReactorTableVO();
|
|
|
|
+ tableVO.setEthane1InAvg(ethane1InAvg);
|
|
|
|
+ tableVO.setEthylene1InAvg(ethylene1InAvg);
|
|
|
|
+ tableVO.setAcetylene1InAvg(acetylene1InAvg);
|
|
|
|
+ tableVO.setPropane1InAvg(propane1InAvg);
|
|
|
|
+ tableVO.setPropylene1InAvg(propylene1InAvg);
|
|
|
|
+ tableVO.setPd1InAvg(pd1InAvg);
|
|
|
|
+ tableVO.setMa1InAvg(ma1InAvg);
|
|
|
|
+ tableVO.setEthane3OutAvg(ethane3OutAvg);
|
|
|
|
+ tableVO.setEthylene3OutAvg(ethylene3OutAvg);
|
|
|
|
+ tableVO.setAcetylene3OutAvg(acetylene3OutAvg);
|
|
|
|
+ tableVO.setPropane3OutAvg(propane3OutAvg);
|
|
|
|
+ tableVO.setPropylene3OutAvg(propylene3OutAvg);
|
|
|
|
+ tableVO.setPd3OutAvg(pd3OutAvg);
|
|
|
|
+ tableVO.setMa3OutAvg(ma3OutAvg);
|
|
|
|
+ tableVO.setEthane2InAvg(ethane2InAvg);
|
|
|
|
+ tableVO.setEthylene2InAvg(ethylene2InAvg);
|
|
|
|
+ tableVO.setAcetylene2InAvg(acetylene2InAvg);
|
|
|
|
+ tableVO.setPropane2InAvg(propane2InAvg);
|
|
|
|
+ tableVO.setPropylene2InAvg(propylene2InAvg);
|
|
|
|
+ tableVO.setPd2InAvg(pd2InAvg);
|
|
|
|
+ tableVO.setMa2InAvg(ma2InAvg);
|
|
|
|
+ tableVO.setEthane3InAvg(ethane3InAvg);
|
|
|
|
+ tableVO.setEthylene3InAvg(ethylene3InAvg);
|
|
|
|
+ tableVO.setAcetylene3InAvg(acetylene3InAvg);
|
|
|
|
+ tableVO.setPropane3InAvg(propane3InAvg);
|
|
|
|
+ tableVO.setPropylene3InAvg(propylene3InAvg);
|
|
|
|
+ tableVO.setPd3InAvg(pd3InAvg);
|
|
|
|
+ tableVO.setMa3InAvg(ma3InAvg);
|
|
|
|
+ return AjaxResult.success(tableVO);
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 碳三反应器性能指标趋势图
|
|
* 碳三反应器性能指标趋势图
|
|
*/
|
|
*/
|
|
@@ -803,6 +1075,8 @@ public class TMonthlyQualityReportController extends BaseController
|
|
entity.setPropadiene(cellValue);
|
|
entity.setPropadiene(cellValue);
|
|
} else if (j == 12) {
|
|
} else if (j == 12) {
|
|
entity.setAcetylene(cellValue);
|
|
entity.setAcetylene(cellValue);
|
|
|
|
+ } else if (j == 15) {
|
|
|
|
+ entity.setMethylacetylene(cellValue);
|
|
} else if (j == 21) {
|
|
} else if (j == 21) {
|
|
entity.setHydrogen(cellValue);
|
|
entity.setHydrogen(cellValue);
|
|
}
|
|
}
|
|
@@ -851,6 +1125,8 @@ public class TMonthlyQualityReportController extends BaseController
|
|
entity.setPropylene(cellValue);
|
|
entity.setPropylene(cellValue);
|
|
} else if (j == 12) {
|
|
} else if (j == 12) {
|
|
entity.setPropadiene(cellValue);
|
|
entity.setPropadiene(cellValue);
|
|
|
|
+ } else if (j == 16) {
|
|
|
|
+ entity.setMethylacetylene(cellValue);
|
|
} else if (j == 22) {
|
|
} else if (j == 22) {
|
|
entity.setHydrogen(cellValue);
|
|
entity.setHydrogen(cellValue);
|
|
}
|
|
}
|
|
@@ -899,6 +1175,8 @@ public class TMonthlyQualityReportController extends BaseController
|
|
entity.setPropadiene(cellValue);
|
|
entity.setPropadiene(cellValue);
|
|
} else if (j == 12) {
|
|
} else if (j == 12) {
|
|
entity.setAcetylene(cellValue);
|
|
entity.setAcetylene(cellValue);
|
|
|
|
+ } else if (j == 15) {
|
|
|
|
+ entity.setMethylacetylene(cellValue);
|
|
} else if (j == 21) {
|
|
} else if (j == 21) {
|
|
entity.setHydrogen(cellValue);
|
|
entity.setHydrogen(cellValue);
|
|
}
|
|
}
|
|
@@ -947,6 +1225,8 @@ public class TMonthlyQualityReportController extends BaseController
|
|
entity.setPropylene(cellValue);
|
|
entity.setPropylene(cellValue);
|
|
} else if (j == 12) {
|
|
} else if (j == 12) {
|
|
entity.setPropadiene(cellValue);
|
|
entity.setPropadiene(cellValue);
|
|
|
|
+ } else if (j == 16) {
|
|
|
|
+ entity.setMethylacetylene(cellValue);
|
|
} else if (j == 22) {
|
|
} else if (j == 22) {
|
|
entity.setHydrogen(cellValue);
|
|
entity.setHydrogen(cellValue);
|
|
}
|
|
}
|