瀏覽代碼

飞行数据入库代码优化

tags/v1.3.1
chengwang 1 年之前
父節點
當前提交
6afd791b28
共有 2 個文件被更改,包括 2 次插入2 次删除
  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 查看文件

@@ -131,7 +131,7 @@ public class FlyDataService {
* @return
*/
private void getCreateTime(Inspection inspection,JSONObject jsonObject) {
String tenantId = CurrentUserUtil.getTenantId();
String tenantId = inspection.getTenantId();

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

+ 1
- 1
tuoheng-service/tuoheng-admin/src/test/java/com/tuoheng/admin/tzhl/TZHLFlyLogServiceTest.java 查看文件

@@ -25,7 +25,7 @@ public class TZHLFlyLogServiceTest {

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

Loading…
取消
儲存