|
@@ -6,6 +6,7 @@ import cn.hutool.core.date.LocalDateTimeUtil;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.gyee.gaia.meter.adapter.Adapter;
|
|
|
import com.gyee.gaia.meter.entity.*;
|
|
|
+import com.gyee.gaia.meter.mapper.TDLineFDL15MinMapper;
|
|
|
import com.gyee.gaia.meter.service.impl.MeterPointServiceImpl;
|
|
|
import com.gyee.gaia.meter.service.impl.PowerStationServiceImpl;
|
|
|
import com.gyee.gaia.meter.service.impl.ProMeterLineFDL15MinServiceImpl;
|
|
@@ -13,10 +14,12 @@ import com.gyee.gaia.meter.service.impl.TDLineFDL15MinServiceImpl;
|
|
|
import org.junit.jupiter.api.Test;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.boot.test.context.SpringBootTest;
|
|
|
+import sun.util.calendar.BaseCalendar;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import java.math.BigDecimal;
|
|
|
import java.math.RoundingMode;
|
|
|
+import java.sql.SQLOutput;
|
|
|
import java.time.LocalDateTime;
|
|
|
import java.time.temporal.ChronoUnit;
|
|
|
import java.util.ArrayList;
|
|
@@ -31,38 +34,40 @@ import java.util.List;
|
|
|
class TDSaveLineFDL15MinTest {
|
|
|
@Resource
|
|
|
TDLineFDL15MinServiceImpl tdLineFDL15MinService;
|
|
|
+ @Resource
|
|
|
+ TDLineFDL15MinMapper tdLineFDL15MinMapper;
|
|
|
|
|
|
|
|
|
- @Resource
|
|
|
- Adapter adapter;
|
|
|
- @Resource
|
|
|
- PowerStationServiceImpl powerStationService;
|
|
|
- @Resource
|
|
|
- MeterPointServiceImpl meterPointService;
|
|
|
- @Resource
|
|
|
- ProMeterLineFDL15MinServiceImpl proMeterLineFDL15MinService;
|
|
|
+
|
|
|
+ @Test
|
|
|
+ void TDSaveSaveLineFDL15Min() {
|
|
|
+
|
|
|
+ //Service层拼接字符串
|
|
|
+// tdLineFDL15MinService.saveBatch();
|
|
|
+
|
|
|
+ //mapper@insert
|
|
|
+// tdLineFDL15MinMapper.insertLineFDL15Min("MHSDJL_NX_GD_MHSF_DD_P1_L1_001_ZXYG044","场站","期次","名称",new Date().getTime(),444);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ List<TDLineFDL15Min> list1 = tdLineFDL15MinMapper.selectLineFDL15Min1();
|
|
|
+ System.out.println("查询结果:"+list1 );
|
|
|
+
|
|
|
+
|
|
|
+// List<TDLineFDL15Min> list = tdLineFDL15MinService.list(new QueryWrapper<TDLineFDL15Min>()
|
|
|
+// .select("*")
|
|
|
+// );
|
|
|
+// System.out.println(list);
|
|
|
+
|
|
|
|
|
|
|
|
|
- @Value("${start.time}")
|
|
|
- private String startTimeString;
|
|
|
- @Value("${end.time}")
|
|
|
- private String endTimeString;
|
|
|
|
|
|
|
|
|
|
|
|
- @Test
|
|
|
- void TDSaveSaveLineFDL15Min() {
|
|
|
|
|
|
|
|
|
- TDLineFDL15Min tdLineFDL15Min = new TDLineFDL15Min();
|
|
|
-// tdLineFDL15Min.setTName("MHSDJL.NX_GD_MHSF_DD_P1_L1_001_ZXYG045");
|
|
|
- tdLineFDL15Min.setTs(new Date().getTime());
|
|
|
- tdLineFDL15Min.setStartValue(100);
|
|
|
- tdLineFDL15Min.setWindpowerstationId("NX_GDDL_MHS_FDC_STA");
|
|
|
- tdLineFDL15Min.setProjectId("NX_GDDL_MHSF02_EG");
|
|
|
|
|
|
|
|
|
- tdLineFDL15MinService.saveBatch();
|
|
|
|
|
|
|
|
|
|