Browse Source

飞行数据入库代码优化

tags/v1.3.1
chengwang 1 year ago
parent
commit
6afd791b28
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/tzhl/service/fly/data/FlyDataService.java
  2. +1
    -1
      tuoheng-service/tuoheng-admin/src/test/java/com/tuoheng/admin/tzhl/TZHLFlyLogServiceTest.java

+ 1
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/tzhl/service/fly/data/FlyDataService.java View File

* @return * @return
*/ */
private void getCreateTime(Inspection inspection,JSONObject jsonObject) { private void getCreateTime(Inspection inspection,JSONObject jsonObject) {
String tenantId = CurrentUserUtil.getTenantId();
String tenantId = inspection.getTenantId();


List<FlightDataHl> flightDataHl = flightDataHlMapper.selectList(new LambdaQueryWrapper<FlightDataHl>() List<FlightDataHl> flightDataHl = flightDataHlMapper.selectList(new LambdaQueryWrapper<FlightDataHl>()
.eq(FlightDataHl::getMark, MarkEnum.VALID.getCode()) .eq(FlightDataHl::getMark, MarkEnum.VALID.getCode())

+ 1
- 1
tuoheng-service/tuoheng-admin/src/test/java/com/tuoheng/admin/tzhl/TZHLFlyLogServiceTest.java View File



@Test @Test
public void testFlyLog() { public void testFlyLog() {
String id = "da5da2c67dc152de5e43c7e7a104bfcf";
String id = "d51d654e4b8aae6533cbdd997af100d9";
Inspection inspection = inspectionMapper.selectById(id); Inspection inspection = inspectionMapper.selectById(id);
flyLogService.getFlyLog(inspection); flyLogService.getFlyLog(inspection);
} }

Loading…
Cancel
Save