|
|
|
@ -15,12 +15,21 @@ import com.dky.tool.ModelTool; |
|
|
|
|
import com.dky.utils.entity.SysDeviceHeatScene; |
|
|
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
|
import java.util.HashMap; |
|
|
|
|
import java.util.List; |
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
public class TestMain { |
|
|
|
|
|
|
|
|
|
public static void main(String[] args) { |
|
|
|
|
|
|
|
|
|
//模拟数据库查询,构造出加密解密方式
|
|
|
|
|
List<Map> mafwefaefwaefawfapList = new ArrayList<>(); |
|
|
|
|
HashMap<String, Object> fawdfweawerwgggawfg = new HashMap<>(); |
|
|
|
|
fawdfweawerwgggawfg.put("CREATE_TIME","2024-02-20 14:46:34"); |
|
|
|
|
mafwefaefwaefawfapList.add(fawdfweawerwgggawfg); |
|
|
|
|
mafwefaefwaefawfapList.add(fawdfweawerwgggawfg); |
|
|
|
|
|
|
|
|
|
JSONObject param = new JSONObject(); |
|
|
|
|
param.put("type", "0104"); |
|
|
|
|
/*param.put("lastYearFee", 500000.2); |
|
|
|
@ -53,7 +62,7 @@ public class TestMain { |
|
|
|
|
// 将这个JSONObject对象list作为入参调用ModelTool的create方法实现产品库初始化。
|
|
|
|
|
ModelTool modelTool = ModelTool.create(list); |
|
|
|
|
// 调用ModelTool的唯一入口函数exeModel2Report,将场景参数param和密钥key作为入参传进去,得到输出结果电能替代报告。
|
|
|
|
|
System.out.println(modelTool.exeModel2Report(param, key)); |
|
|
|
|
System.out.println(modelTool.exeModel2Report(param, key,mafwefaefwaefawfapList)); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|