| | |
| | | package com.iailab.sdk; |
| | | |
| | | import com.iailab.sdk.auth.client.IailabAuthClient; |
| | | import com.iailab.sdk.auth.client.common.pojo.CommonResult; |
| | | import com.iailab.sdk.auth.client.dto.ApiDataQueryDTO; |
| | | import org.junit.Test; |
| | | import org.junit.runner.RunWith; |
| | |
| | | } |
| | | |
| | | @Test |
| | | public void testQueryPlanChart() throws Exception { |
| | | ApiDataQueryDTO apiDataQueryDTO = new ApiDataQueryDTO(); |
| | | List<String> itemNos = new ArrayList<>(); |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | apiDataQueryDTO.setStart(sdf.parse("2024-06-11 07:24:00")); |
| | | apiDataQueryDTO.setEnd(sdf.parse("2024-06-13 00:00:00")); |
| | | itemNos.add("P0000100010"); |
| | | apiDataQueryDTO.setItemNos(itemNos); |
| | | Map<String, Object> stringObjectMap = IailabAuthClient.getInstance().queryPlanChart(apiDataQueryDTO); |
| | | System.out.println(stringObjectMap); |
| | | } |
| | | |
| | | @Test |
| | | public void testQueryPointsRealValue() throws Exception { |
| | | public void testQueryPointsRealValue() { |
| | | List<String> pointNos = new ArrayList<>(); |
| | | pointNos.add("111"); |
| | | Map<String, Object> stringObjectMap = IailabAuthClient.getInstance().queryPointsRealValue(pointNos); |
| | | CommonResult<Map<String, Object>> stringObjectMap = IailabAuthClient.getInstance().queryPointsRealValue(pointNos); |
| | | System.out.println(stringObjectMap); |
| | | } |
| | | |