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