|
@@ -4,7 +4,6 @@ import com.alibaba.fastjson.JSONObject;
|
|
|
import com.sky.ioc.entity.Indeicator;
|
|
|
import com.sky.ioc.entity.Label;
|
|
|
import com.sky.ioc.entity.Cake;
|
|
|
-import com.sky.ioc.entity.life.Parking;
|
|
|
import com.sky.ioc.entity.params.IocDateParam;
|
|
|
import com.sky.ioc.service.Parking.ParkingService;
|
|
|
import com.sky.ioc.tool.FalseData;
|
|
@@ -12,11 +11,7 @@ import com.sky.ioc.tool.GeneralMethod;
|
|
|
import com.sky.ioc.tool.ReturnMsg;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
-import java.text.DecimalFormat;
|
|
|
import java.util.*;
|
|
|
-import java.util.concurrent.ThreadLocalRandom;
|
|
|
-import java.util.stream.Collector;
|
|
|
-import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
|
* TODO 智慧停车
|
|
@@ -32,28 +27,6 @@ public class ParkingServiceImpl implements ParkingService {
|
|
|
public ReturnMsg getCoreIndicators(IocDateParam iocDateParam) {
|
|
|
Indeicator indeicator = new Indeicator();
|
|
|
List<JSONObject> objects = indeicator.getList();
|
|
|
- /*ThreadLocalRandom random = ThreadLocalRandom.current();
|
|
|
- int totalParking = random.nextInt(1000, 3000);
|
|
|
- int dayParking = random.nextInt(1000,3000);
|
|
|
- while (dayParking>totalParking){
|
|
|
- dayParking = random.nextInt(1000,3000);
|
|
|
- }
|
|
|
- int breakRuleParking = random.nextInt(10,50);
|
|
|
- int unParking = totalParking - dayParking;
|
|
|
- float compare = (float) Math.random();
|
|
|
- DecimalFormat decimalFormat = new DecimalFormat("#.0");
|
|
|
- compare = Float.parseFloat(decimalFormat.format(compare));
|
|
|
- objects.get(0).put("value",totalParking);
|
|
|
- objects.get(0).put("compare",compare);
|
|
|
-
|
|
|
- objects.get(1).put("value",dayParking);
|
|
|
- objects.get(1).put("compare",compare);
|
|
|
-
|
|
|
- objects.get(2).put("value",breakRuleParking);
|
|
|
- objects.get(2).put("compare",-compare);
|
|
|
-
|
|
|
- objects.get(3).put("value",unParking);
|
|
|
- objects.get(3).put("compare",compare);*/
|
|
|
objects.get(0).put("value",2000);
|
|
|
objects.get(0).put("compare",0.4);
|
|
|
|