瀏覽代碼

修改创建航线代码

tags/v1.0.4^2
wanjing 10 月之前
父節點
當前提交
a14f21b511
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. +4
    -2
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/airportline/add/AddAirportLineService.java

+ 4
- 2
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/airportline/add/AddAirportLineService.java 查看文件

@@ -111,15 +111,17 @@ public class AddAirportLineService {
//Integer lineId = (Integer) data.get("id");
JSONObject dataObject = (JSONObject) JSONObject.toJSON(result.getData());
Integer lineId = null;
Integer airlineFileId = null;
if(Objects.nonNull(dataObject)){
lineId = dataObject.getInteger("id");
log.info("航线id为:lineId={}",lineId);
airlineFileId = dataObject.getInteger("airlineFileId");
log.info("航线id为:lineId={}, airlineFileId={}", lineId, airlineFileId);
}

//属性赋值
AirportLine airportLine = new AirportLine();
airportLine.setTenantId(tenantId);
airportLine.setInspectionLineId(lineId);
airportLine.setInspectionLineId(airlineFileId);
airportLine.setAirportLineName(airportLineName);
airportLine.setCreateTime(DateUtils.now());
airportLine.setCreateUser(user.getId());

Loading…
取消
儲存