|
|
@@ -221,6 +221,17 @@ public class BlockedMissCheckStatisticsServiceImpl implements IBlockedMissCheckS
|
|
221
|
221
|
@Override
|
|
222
|
222
|
@Transactional
|
|
223
|
223
|
public int insertOrUpdate(BlockedMissCheckStatistics blockedMissCheckStatistics) {
|
|
|
224
|
+ // 航站楼+区域+通道 - 通过通道ID查询
|
|
|
225
|
+ if (ObjUtil.isNotNull(blockedMissCheckStatistics.getChannelId())) {
|
|
|
226
|
+ BasePosition channel = basePositionService.selectBasePositionById(blockedMissCheckStatistics.getChannelId());
|
|
|
227
|
+ BasePosition area = basePositionService.selectBasePositionById(channel.getParentId());
|
|
|
228
|
+ BasePosition terminal = basePositionService.selectBasePositionById(area.getParentId());
|
|
|
229
|
+ blockedMissCheckStatistics.setChannelName(channel.getName());
|
|
|
230
|
+ blockedMissCheckStatistics.setAreaId(area.getId());
|
|
|
231
|
+ blockedMissCheckStatistics.setAreaName(area.getName());
|
|
|
232
|
+ blockedMissCheckStatistics.setTerminalId(terminal.getId());
|
|
|
233
|
+ blockedMissCheckStatistics.setTerminalName(terminal.getName());
|
|
|
234
|
+ }
|
|
224
|
235
|
// 检查是否重复
|
|
225
|
236
|
BlockedMissCheckStatistics existing = checkDuplicate(blockedMissCheckStatistics);
|
|
226
|
237
|
|
|
|
@@ -287,6 +298,18 @@ public class BlockedMissCheckStatisticsServiceImpl implements IBlockedMissCheckS
|
|
287
|
298
|
}
|
|
288
|
299
|
}
|
|
289
|
300
|
|
|
|
301
|
+ // 航站楼+区域+通道 - 通过通道ID查询
|
|
|
302
|
+ if (ObjUtil.isNotNull(data.getChannelId())) {
|
|
|
303
|
+ BasePosition channel = basePositionService.selectBasePositionById(data.getChannelId());
|
|
|
304
|
+ BasePosition area = basePositionService.selectBasePositionById(channel.getParentId());
|
|
|
305
|
+ BasePosition terminal = basePositionService.selectBasePositionById(area.getParentId());
|
|
|
306
|
+ data.setChannelName(channel.getName());
|
|
|
307
|
+ data.setAreaId(area.getId());
|
|
|
308
|
+ data.setAreaName(area.getName());
|
|
|
309
|
+ data.setTerminalId(terminal.getId());
|
|
|
310
|
+ data.setTerminalName(terminal.getName());
|
|
|
311
|
+ }
|
|
|
312
|
+
|
|
290
|
313
|
// 5. 被回查人ID - 通过用户昵称查询
|
|
291
|
314
|
if (ObjUtil.isNull(data.getReviewedUserId()) && StrUtil.isNotBlank(data.getReviewedUserName())) {
|
|
292
|
315
|
SysUser userQuery = new SysUser();
|