|
|
@@ -1,8 +1,12 @@
|
|
|
package com.railway.business.bi.service.impl;
|
|
|
|
|
|
import com.railway.business.bi.domain.vo.ChartMsgVO;
|
|
|
+import com.railway.business.bi.mapper.ShowBpdjxjhMapper;
|
|
|
+import com.railway.business.bi.mapper.ShowGsdMapper;
|
|
|
+import com.railway.business.bi.mapper.ShowGsyMapper;
|
|
|
+import com.railway.business.bi.mapper.ShowYdtsMapper;
|
|
|
import com.railway.business.bi.service.IDetailService;
|
|
|
-import java.util.ArrayList;
|
|
|
+import java.util.Calendar;
|
|
|
import java.util.List;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
@@ -19,6 +23,19 @@ import org.springframework.stereotype.Service;
|
|
|
@Service
|
|
|
public class DetailServiceImpl implements IDetailService {
|
|
|
|
|
|
+ private final ShowYdtsMapper ydtsMapper;
|
|
|
+ private final ShowGsdMapper gsdMapper;
|
|
|
+ private final ShowGsyMapper gsyMapper;
|
|
|
+ private final ShowBpdjxjhMapper bpdjxjhMapper;
|
|
|
+
|
|
|
+ public DetailServiceImpl(ShowYdtsMapper ydtsMapper, ShowGsdMapper gsdMapper,
|
|
|
+ ShowGsyMapper gsyMapper, ShowBpdjxjhMapper bpdjxjhMapper) {
|
|
|
+ this.ydtsMapper = ydtsMapper;
|
|
|
+ this.gsdMapper = gsdMapper;
|
|
|
+ this.gsyMapper = gsyMapper;
|
|
|
+ this.bpdjxjhMapper = bpdjxjhMapper;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 获取检修本月兑现情况描述
|
|
|
*
|
|
|
@@ -26,16 +43,13 @@ public class DetailServiceImpl implements IDetailService {
|
|
|
*/
|
|
|
@Override
|
|
|
public ChartMsgVO getChartJxdxqkbyDetail() {
|
|
|
- //TODO
|
|
|
+ int month = Calendar.getInstance().get(Calendar.MONTH) + 1;
|
|
|
ChartMsgVO chartMsg = new ChartMsgVO();
|
|
|
- chartMsg.setByywc(4);
|
|
|
- chartMsg.setBywwc(3);
|
|
|
- chartMsg.setXyjhwc(0);
|
|
|
- chartMsg.setNdsys(0);
|
|
|
- List<String> wwcmx = new ArrayList<>();
|
|
|
- wwcmx.add("长春西牵引变电所");
|
|
|
- wwcmx.add("英安河AT所");
|
|
|
- wwcmx.add("珲春分区所");
|
|
|
+ chartMsg.setByywc(bpdjxjhMapper.countByywc(month));
|
|
|
+ chartMsg.setBywwc(bpdjxjhMapper.countBywwc(month));
|
|
|
+ chartMsg.setXyjhwc(bpdjxjhMapper.countXyjhwc(month + 1));
|
|
|
+ chartMsg.setNdsys(bpdjxjhMapper.countNdsys());
|
|
|
+ List<String> wwcmx = bpdjxjhMapper.listWwcmx(month);
|
|
|
chartMsg.setWwcmx(wwcmx);
|
|
|
return chartMsg;
|
|
|
}
|
|
|
@@ -47,21 +61,13 @@ public class DetailServiceImpl implements IDetailService {
|
|
|
*/
|
|
|
@Override
|
|
|
public ChartMsgVO getChartDlydtsbyDetail() {
|
|
|
- //TODO
|
|
|
+ int month = Calendar.getInstance().get(Calendar.MONTH) + 1;
|
|
|
ChartMsgVO chartMsg = new ChartMsgVO();
|
|
|
- chartMsg.setByywc(4);
|
|
|
- chartMsg.setBywwc(8);
|
|
|
- chartMsg.setXyjhwc(0);
|
|
|
- chartMsg.setNdsys(0);
|
|
|
- List<String> wwcmx = new ArrayList<>();
|
|
|
- wwcmx.add("吉蛟03号箱变(吉林隧道)");
|
|
|
- wwcmx.add("吉蛟13号箱变(吉林隧道)");
|
|
|
- wwcmx.add("吉蛟12号箱变(草木沟隧道)");
|
|
|
- wwcmx.add("吉蛟33号箱变(草木沟隧道)");
|
|
|
- wwcmx.add("吉蛟56号箱变(草木沟隧道)");
|
|
|
- wwcmx.add("吉蛟20号箱变(拉法山隧道)");
|
|
|
- wwcmx.add("吉蛟21号箱变(拉法山隧道)");
|
|
|
- wwcmx.add("吉蛟22号箱变(拉法山隧道)");
|
|
|
+ chartMsg.setByywc(ydtsMapper.countByywc(month));
|
|
|
+ chartMsg.setBywwc(ydtsMapper.countBywwc(month));
|
|
|
+ chartMsg.setXyjhwc(ydtsMapper.countXyjhwc(month + 1));
|
|
|
+ chartMsg.setNdsys(ydtsMapper.countNdsys());
|
|
|
+ List<String> wwcmx = ydtsMapper.listWwcmx(month);
|
|
|
chartMsg.setWwcmx(wwcmx);
|
|
|
return chartMsg;
|
|
|
}
|
|
|
@@ -73,20 +79,13 @@ public class DetailServiceImpl implements IDetailService {
|
|
|
*/
|
|
|
@Override
|
|
|
public ChartMsgVO getChartDlsdxlbyDetail() {
|
|
|
- //TODO
|
|
|
+ int month = Calendar.getInstance().get(Calendar.MONTH) + 1;
|
|
|
ChartMsgVO chartMsg = new ChartMsgVO();
|
|
|
- chartMsg.setByywc(0);
|
|
|
- chartMsg.setBywwc(7);
|
|
|
- chartMsg.setXyjhwc(12);
|
|
|
- chartMsg.setNdsys(12);
|
|
|
- List<String> wwcmx = new ArrayList<>();
|
|
|
- wwcmx.add("四平东10KV配电所(一面城线)");
|
|
|
- wwcmx.add("公主岭南10KV配电所(岭南线)");
|
|
|
- wwcmx.add("龙嘉10KV配电所(东湖)");
|
|
|
- wwcmx.add("安图西10KV配电所");
|
|
|
- wwcmx.add("长春10KV配电所");
|
|
|
- wwcmx.add("图门北10KV配电所");
|
|
|
- wwcmx.add("双击10KV配电所");
|
|
|
+ chartMsg.setByywc(gsdMapper.countByywc(month));
|
|
|
+ chartMsg.setBywwc(gsdMapper.countBywwc(month));
|
|
|
+ chartMsg.setXyjhwc(gsdMapper.countXyjhwc(month + 1));
|
|
|
+ chartMsg.setNdsys(gsdMapper.countNdsys());
|
|
|
+ List<String> wwcmx = gsdMapper.listWwcmx(month);
|
|
|
chartMsg.setWwcmx(wwcmx);
|
|
|
return chartMsg;
|
|
|
}
|
|
|
@@ -98,17 +97,13 @@ public class DetailServiceImpl implements IDetailService {
|
|
|
*/
|
|
|
@Override
|
|
|
public ChartMsgVO getChartDlbpdsbyDetail() {
|
|
|
- //TODO
|
|
|
+ int month = Calendar.getInstance().get(Calendar.MONTH) + 1;
|
|
|
ChartMsgVO chartMsg = new ChartMsgVO();
|
|
|
- chartMsg.setByywc(0);
|
|
|
- chartMsg.setBywwc(4);
|
|
|
- chartMsg.setXyjhwc(0);
|
|
|
- chartMsg.setNdsys(0);
|
|
|
- List<String> wwcmx = new ArrayList<>();
|
|
|
- wwcmx.add("长春西动车所1号10kV配电所");
|
|
|
- wwcmx.add("长春西动车所2号10kV配电所");
|
|
|
- wwcmx.add("长白山动车库配电所");
|
|
|
- wwcmx.add("扶余北10kV配电所");
|
|
|
+ chartMsg.setByywc(gsyMapper.countByywc(month));
|
|
|
+ chartMsg.setBywwc(gsyMapper.countBywwc(month));
|
|
|
+ chartMsg.setXyjhwc(gsyMapper.countXyjhwc(month + 1));
|
|
|
+ chartMsg.setNdsys(gsyMapper.countNdsys());
|
|
|
+ List<String> wwcmx = gsyMapper.listWwcmx(month);
|
|
|
chartMsg.setWwcmx(wwcmx);
|
|
|
return chartMsg;
|
|
|
}
|