Commit 6a9cc1d0 authored by tangwei's avatar tangwei

修改户用功率曲线显示值

parent 870bdbd9
......@@ -17,10 +17,12 @@ import org.typroject.tyboot.core.rdbms.service.BaseService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
import springfox.bean.validators.plugins.schema.MinMaxAnnotationPlugin;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.*;
import java.util.stream.Collectors;
/**
* 第三方场站服务实现类
......@@ -96,6 +98,14 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
}
}
}
if(type.equals("month")||type.equals("year")){
listx= listx.stream().map(e-> String.valueOf(e).substring(String.valueOf(e).length()-2)).collect(Collectors.toList());
}
map.put("x",listx);
map.put("y",listy);
......@@ -110,13 +120,6 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
public static Map<String, List<Object>> getDayListOfMonth(String date) {
Map<String, List<Object>> map =new HashMap<>();
try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment