Commit 83998fb2 by 杨林龙

新E盾 1.30 版本开发 同步围栏数据到大数据

1 parent a6e56ce4
......@@ -135,12 +135,12 @@ public class ElectricFenceController {
return R.ok();
}
// @GetMapping(value = "/syncalldata")
// @ApiOperation(value = "同步全部围栏到数据侧")
// public R syncAllData() {
// electricFenceService.syncAddFences();
// return R.ok();
// }
@GetMapping(value = "/syncalldata")
@ApiOperation(value = "同步全部围栏到数据侧")
public R syncAllData() {
electricFenceService.syncAddFences();
return R.ok();
}
@PostMapping(value = "/syncAddData")
@ApiOperation(value = "同步新增围栏到数据侧")
......
package cn.com.glsx.admin.modules.service;
import cn.com.glsx.Application;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@Slf4j
@RunWith(SpringRunner.class)
@SpringBootTest(classes = Application.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class ElectricFenceServiceTest {
@Autowired
private ElectricFenceService electricFenceService;
@Test
public void syncAddFences() throws Exception {
electricFenceService.syncAddFences();
Thread.sleep(100000);
}
}
\ No newline at end of file
......@@ -49,6 +49,7 @@ public class TrialDriveReportServiceTest {
@Test
public void listEffectiveTestDriveReportPage() {
TrialDriveReportSearch trialDriveReportSearch = new TrialDriveReportSearch();
trialDriveReportSearch.setYear("2021");
trialDriveReportSearch.setMonth("08");
List<TrialDriveReportExport> searchList = trialDriveReportService.search(trialDriveReportSearch);
List<TrialDriveReportExport> reportExportList = trialDriveReportService.listEffectiveTestDriveReportPage(trialDriveReportSearch, searchList);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!