|
@@ -1,5 +1,6 @@
|
|
package com.sagacloud.util.compute_engine.fjd;
|
|
package com.sagacloud.util.compute_engine.fjd;
|
|
|
|
|
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSONArray;
|
|
import com.alibaba.fastjson.JSONArray;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.sagacloud.util.compute_engine.core.CoreInput;
|
|
import com.sagacloud.util.compute_engine.core.CoreInput;
|
|
@@ -7,11 +8,12 @@ import com.sagacloud.util.compute_engine.core.CoreInstance;
|
|
import com.sagacloud.util.compute_engine.core.CoreOutput;
|
|
import com.sagacloud.util.compute_engine.core.CoreOutput;
|
|
import com.sagacloud.util.compute_engine.entity.*;
|
|
import com.sagacloud.util.compute_engine.entity.*;
|
|
import com.sagacloud.util.compute_engine.util.QueryUtil;
|
|
import com.sagacloud.util.compute_engine.util.QueryUtil;
|
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
import org.zillion.util.json.FastJsonReaderUtil;
|
|
import org.zillion.util.json.FastJsonReaderUtil;
|
|
import org.zillion.util.json.FastJsonUtil;
|
|
import org.zillion.util.json.FastJsonUtil;
|
|
|
|
|
|
import java.util.*;
|
|
import java.util.*;
|
|
-
|
|
|
|
|
|
+@Slf4j
|
|
public class TenantUtil {
|
|
public class TenantUtil {
|
|
public static List<Long> get_funcid(String energy_type, String price_type, Map<String, Entity_point> pointMap,
|
|
public static List<Long> get_funcid(String energy_type, String price_type, Map<String, Entity_point> pointMap,
|
|
Entity_tenant_energy_meter detail) {
|
|
Entity_tenant_energy_meter detail) {
|
|
@@ -202,6 +204,10 @@ public class TenantUtil {
|
|
if (inputMap.containsKey(detail.getMeter_sign() + "_" + funcid)) {
|
|
if (inputMap.containsKey(detail.getMeter_sign() + "_" + funcid)) {
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
|
|
+ if(!pointMap.containsKey(detail.getMeter_sign() + "_" + funcid)){
|
|
|
|
+ log.error("[dy_pointlist]没有要计算的meter[{}] funcid[{}],Entity_tenant_energy_meter详情:[{}]",detail.getMeter_sign(),funcid, JSON.toJSONString(detail));
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
Entity_ci_instanceinput input = new Entity_ci_instanceinput();
|
|
Entity_ci_instanceinput input = new Entity_ci_instanceinput();
|
|
input.setObject_sign(object_sign);
|
|
input.setObject_sign(object_sign);
|
|
input.setInstance_name(instance_name);
|
|
input.setInstance_name(instance_name);
|