|
@@ -0,0 +1,108 @@
|
|
|
+package com.gyee.jinneng_kpi.service.impl;
|
|
|
+
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
+import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
+import com.gyee.jinneng_kpi.domain.WfSynthesisEvaluate;
|
|
|
+import com.gyee.jinneng_kpi.domain.WfSynthesisEvaluateContent;
|
|
|
+import com.gyee.jinneng_kpi.mapper.WfSynthesisEvaluateMapper;
|
|
|
+import com.gyee.jinneng_kpi.service.IWfSynthesisEvaluateService;
|
|
|
+import org.springframework.stereotype.Service;
|
|
|
+
|
|
|
+import javax.annotation.Resource;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 风电场站综合评价 Service 实现类
|
|
|
+ *
|
|
|
+ * @author hlf
|
|
|
+ */
|
|
|
+@Service
|
|
|
+public class WfSynthesisEvaluateServiceImpl extends ServiceImpl<WfSynthesisEvaluateMapper, WfSynthesisEvaluate> implements IWfSynthesisEvaluateService {
|
|
|
+
|
|
|
+ @Resource
|
|
|
+ private WfSynthesisEvaluateMapper wfSynthesisEvaluateMapper;
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public IPage<WfSynthesisEvaluate> pageList(Page<WfSynthesisEvaluate> page, Integer years, Integer month) {
|
|
|
+ QueryWrapper<WfSynthesisEvaluate> qw = new QueryWrapper<>();
|
|
|
+ if (null != years) {
|
|
|
+ qw.lambda().eq(WfSynthesisEvaluate::getYears, years);
|
|
|
+ }
|
|
|
+ if (null != month) {
|
|
|
+ qw.lambda().eq(WfSynthesisEvaluate::getMonth, month);
|
|
|
+ }
|
|
|
+ return wfSynthesisEvaluateMapper.selectPage(page, qw);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void insertData(WfSynthesisEvaluate wfSynthesisEvaluate, WfSynthesisEvaluateContent wfSynthesisEvaluateContent) {
|
|
|
+ if ("人身、设备事故".equals(wfSynthesisEvaluateContent.getIndexName())) {
|
|
|
+ wfSynthesisEvaluate.setRssbsg_mark(wfSynthesisEvaluateContent.getFinalValue());
|
|
|
+ wfSynthesisEvaluate.setRssbsg_value(wfSynthesisEvaluateContent.getContent());
|
|
|
+ } else if ("设备一类障碍".equals(wfSynthesisEvaluateContent.getIndexName())) {
|
|
|
+ wfSynthesisEvaluate.setSbylza_mark(wfSynthesisEvaluateContent.getFinalValue());
|
|
|
+ wfSynthesisEvaluate.setSbylza_value(wfSynthesisEvaluateContent.getContent());
|
|
|
+ } else if ("风能利用率".equals(wfSynthesisEvaluateContent.getIndexName())) {
|
|
|
+ wfSynthesisEvaluate.setFnlyl_mark(wfSynthesisEvaluateContent.getFinalValue());
|
|
|
+ wfSynthesisEvaluate.setFnlyl_value(wfSynthesisEvaluateContent.getContent());
|
|
|
+ } else if ("计划检修损失率".equals(wfSynthesisEvaluateContent.getIndexName())) {
|
|
|
+ wfSynthesisEvaluate.setJhjxssl_mark(wfSynthesisEvaluateContent.getFinalValue());
|
|
|
+ wfSynthesisEvaluate.setJhjxssl_value(wfSynthesisEvaluateContent.getContent());
|
|
|
+ } else if ("非计划检修损失率".equals(wfSynthesisEvaluateContent.getIndexName())) {
|
|
|
+ wfSynthesisEvaluate.setFjhjxssl_mark(wfSynthesisEvaluateContent.getFinalValue());
|
|
|
+ wfSynthesisEvaluate.setFjhjxssl_value(wfSynthesisEvaluateContent.getContent());
|
|
|
+ } else if ("限电损失率".equals(wfSynthesisEvaluateContent.getIndexName())) {
|
|
|
+ wfSynthesisEvaluate.setXdssl_mark(wfSynthesisEvaluateContent.getFinalValue());
|
|
|
+ wfSynthesisEvaluate.setXdssl_value(wfSynthesisEvaluateContent.getContent());
|
|
|
+ } else if ("性能损失率".equals(wfSynthesisEvaluateContent.getIndexName())) {
|
|
|
+ wfSynthesisEvaluate.setXnssl_mark(wfSynthesisEvaluateContent.getFinalValue());
|
|
|
+ wfSynthesisEvaluate.setXnssl_value(wfSynthesisEvaluateContent.getContent());
|
|
|
+ } else if ("复位及时率".equals(wfSynthesisEvaluateContent.getIndexName())) {
|
|
|
+ wfSynthesisEvaluate.setFwjsl_mark(wfSynthesisEvaluateContent.getFinalValue());
|
|
|
+ wfSynthesisEvaluate.setFwjsl_value(wfSynthesisEvaluateContent.getContent());
|
|
|
+ } else if ("状态转换及时率".equals(wfSynthesisEvaluateContent.getIndexName())) {
|
|
|
+ wfSynthesisEvaluate.setZtzhjsl_mark(wfSynthesisEvaluateContent.getFinalValue());
|
|
|
+ wfSynthesisEvaluate.setZtzhjsl_value(wfSynthesisEvaluateContent.getContent());
|
|
|
+ } else if ("故障处理及时率".equals(wfSynthesisEvaluateContent.getIndexName())) {
|
|
|
+ wfSynthesisEvaluate.setGzcljsl_mark(wfSynthesisEvaluateContent.getFinalValue());
|
|
|
+ wfSynthesisEvaluate.setGzcljsl_value(wfSynthesisEvaluateContent.getContent());
|
|
|
+ } else if ("MTBF".equals(wfSynthesisEvaluateContent.getIndexName())) {
|
|
|
+ wfSynthesisEvaluate.setMtbf_mark(wfSynthesisEvaluateContent.getFinalValue());
|
|
|
+ wfSynthesisEvaluate.setMtbf_value(wfSynthesisEvaluateContent.getContent());
|
|
|
+ } else if ("MTTF".equals(wfSynthesisEvaluateContent.getIndexName())) {
|
|
|
+ wfSynthesisEvaluate.setMttf_mark(wfSynthesisEvaluateContent.getFinalValue());
|
|
|
+ wfSynthesisEvaluate.setMttf_value(wfSynthesisEvaluateContent.getContent());
|
|
|
+ } else if ("MTTR".equals(wfSynthesisEvaluateContent.getIndexName())) {
|
|
|
+ wfSynthesisEvaluate.setMttr_mark(wfSynthesisEvaluateContent.getFinalValue());
|
|
|
+ wfSynthesisEvaluate.setMttr_value(wfSynthesisEvaluateContent.getContent());
|
|
|
+ } else if ("设备利用小时".equals(wfSynthesisEvaluateContent.getIndexName())) {
|
|
|
+ wfSynthesisEvaluate.setSblyxs_mark(wfSynthesisEvaluateContent.getFinalValue());
|
|
|
+ wfSynthesisEvaluate.setSblyxs_value(wfSynthesisEvaluateContent.getContent());
|
|
|
+ } else if ("综合厂用电率".equals(wfSynthesisEvaluateContent.getIndexName())) {
|
|
|
+ wfSynthesisEvaluate.setZhcydl_mark(wfSynthesisEvaluateContent.getFinalValue());
|
|
|
+ wfSynthesisEvaluate.setZhcydl_value(wfSynthesisEvaluateContent.getContent());
|
|
|
+ } else if ("设备可利用率".equals(wfSynthesisEvaluateContent.getIndexName())) {
|
|
|
+ wfSynthesisEvaluate.setSbklyl_mark(wfSynthesisEvaluateContent.getFinalValue());
|
|
|
+ wfSynthesisEvaluate.setSbklyl_value(wfSynthesisEvaluateContent.getContent());
|
|
|
+ } else if ("等效可用系数".equals(wfSynthesisEvaluateContent.getIndexName())) {
|
|
|
+ wfSynthesisEvaluate.setDxkyxs_mark(wfSynthesisEvaluateContent.getFinalValue());
|
|
|
+ wfSynthesisEvaluate.setDxkyxs_value(wfSynthesisEvaluateContent.getContent());
|
|
|
+ } else if ("隐患发现准确率".equals(wfSynthesisEvaluateContent.getIndexName())) {
|
|
|
+ wfSynthesisEvaluate.setYhfxzql_mark(wfSynthesisEvaluateContent.getFinalValue());
|
|
|
+ wfSynthesisEvaluate.setYhfxzql_value(wfSynthesisEvaluateContent.getContent());
|
|
|
+ } else if ("风功率预测准确率".equals(wfSynthesisEvaluateContent.getIndexName())) {
|
|
|
+ wfSynthesisEvaluate.setFglyczql_mark(wfSynthesisEvaluateContent.getFinalValue());
|
|
|
+ wfSynthesisEvaluate.setFglyczql_value(wfSynthesisEvaluateContent.getContent());
|
|
|
+ } else if ("平均风速".equals(wfSynthesisEvaluateContent.getIndexName())) {
|
|
|
+ wfSynthesisEvaluate.setPjfs_mark(wfSynthesisEvaluateContent.getFinalValue());
|
|
|
+ wfSynthesisEvaluate.setPjfs_value(wfSynthesisEvaluateContent.getContent());
|
|
|
+ } else if ("静风频率".equals(wfSynthesisEvaluateContent.getIndexName())) {
|
|
|
+ wfSynthesisEvaluate.setJfpl_mark(wfSynthesisEvaluateContent.getFinalValue());
|
|
|
+ wfSynthesisEvaluate.setJfpl_value(wfSynthesisEvaluateContent.getContent());
|
|
|
+ } else if ("有效风时率".equals(wfSynthesisEvaluateContent.getIndexName())) {
|
|
|
+ wfSynthesisEvaluate.setYxfsl_mark(wfSynthesisEvaluateContent.getFinalValue());
|
|
|
+ wfSynthesisEvaluate.setYxfsl_value(wfSynthesisEvaluateContent.getContent());
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|