feat:航点保存7000 8000
This commit is contained in:
parent
3b9d98e7d5
commit
19b7aea902
|
|
@ -143,13 +143,17 @@ public class AirlineAreaGroupServiceImpl implements IAirlineAreaGroupService {
|
|||
if (areaDTO.getCreateBy() != null && !areaDTO.getCreateBy().isEmpty()) {
|
||||
try {
|
||||
Long createByUserId = Long.parseLong(areaDTO.getCreateBy());
|
||||
log.info("转换createBy: userId={}, createBy={}", createByUserId, areaDTO.getCreateBy());
|
||||
com.ruoyi.common.core.domain.R<String> userNameResult =
|
||||
remoteUserService.getUserName(createByUserId, SecurityConstants.INNER);
|
||||
if (userNameResult != null && userNameResult.getCode() == 200) {
|
||||
log.info("获取用户名称结果: code={}, data={}", userNameResult.getCode(), userNameResult.getData());
|
||||
if (userNameResult != null && userNameResult.getCode() == 200 && userNameResult.getData() != null) {
|
||||
areaDTO.setCreateByName(userNameResult.getData());
|
||||
} else {
|
||||
log.warn("获取用户名称失败: code={}, msg={}", userNameResult.getCode(), userNameResult.getMsg());
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
log.warn("无法解析用户ID: {}", areaDTO.getCreateBy());
|
||||
} catch (Exception e) {
|
||||
log.error("转换createBy为用户名称异常: {}", e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
|
||||
<!-- 根据ID列表查询空域 -->
|
||||
<select id="selectAreaListByIds" parameterType="java.util.List" resultMap="AirlineAreaResult">
|
||||
select distinct aa.id, aa.name, aa.area_type, aa.status, aa.points, aa.shape, aa.area_area, aa.area_perimeter, aa.radius, aa.min_height, aa.max_height, aa.create_by, aa.create_time, aa.update_by, aa.update_time, aa.remark
|
||||
select distinct aa.id, aagi.group_id, aa.name, aa.area_type, aa.status, aa.points, aa.shape, aa.area_area, aa.area_perimeter, aa.radius, aa.min_height, aa.max_height, aa.create_by, aa.create_time, aa.update_by, aa.update_time, aa.remark
|
||||
from airline_area aa
|
||||
inner join airline_area_group_info aagi on aa.id = aagi.area_id
|
||||
where aagi.del_flag = 0
|
||||
|
|
|
|||
Loading…
Reference in New Issue