From a3fe79e605b07a5a908599aaa830a0860e9423d2 Mon Sep 17 00:00:00 2001 From: jinlin <jinlin> Date: 星期三, 14 五月 2025 17:34:27 +0800 Subject: [PATCH] 修改 --- src/main/java/com/example/client/service/SubunitService.java | 21 +++++++++++++-------- 1 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/example/client/service/SubunitService.java b/src/main/java/com/example/client/service/SubunitService.java index e6161b0..50476ba 100644 --- a/src/main/java/com/example/client/service/SubunitService.java +++ b/src/main/java/com/example/client/service/SubunitService.java @@ -66,7 +66,7 @@ JComboBoxItem[] teamList = sysTeamGroupClassService.getTeamList(null); JComboBoxItem[] cabinList = cabinService.getList(); String[] typeList = new String[]{ - "鏀硅", "鍔犺", "鎹㈣", "鏀硅繘鎬т慨鐞�","" + "","鏀规崲瑁�","淇悊","鏀硅繘鎬т慨鐞�","涓嶅瑁呰澶�" }; List<DjJdgzShip> shipList = djJdgzShipService.getList(); Map<String, Long> shipMap = new HashMap<>(); @@ -120,7 +120,12 @@ jLeft.add(top, BorderLayout.NORTH); List<ColumnDto> columnDto = new ArrayList<>(); - list = level3Service.getList(null, deptList[0].getId(), teamList[0].getId(), cabinList[0].getId(), typeList[0],null); + list = level3Service.getList(shipList.get(0).getId(), deptList[0].getId(), teamList[0].getId(), cabinList[0].getId(), typeList[0],null,null,null); + + if (list == null || list.size() == 0) { + JOptionPane.showMessageDialog(null, "杩樻湭褰曞叆涓夌骇缃戠粶鍥炬暟鎹�", "鎻愮ず", JOptionPane.WARNING_MESSAGE); + return null; + } columnDto.add(new ColumnDto("搴忓彿", "", 60, "autoCreate", false, null, null)); columnDto.add(new ColumnDto("璁惧鍚嶇О", "name", 152, null, false, null, null)); @@ -142,7 +147,7 @@ String type = comboBox4.getSelectedItem().toString(); Long shipId = shipMap.get(content); - list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type,null); + list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type,null,null,null); CommonTable.refreshTable(list, columnDto, subTable); subTable.setRowHeight(25); @@ -180,7 +185,7 @@ String type = comboBox4.getSelectedItem().toString(); Long shipId = shipMap.get(content); - list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type,null); + list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type,null,null,null); CommonTable.refreshTable(list, columnDto, subTable); subTable.setRowHeight(25); @@ -210,7 +215,7 @@ String type = comboBox4.getSelectedItem().toString(); Long shipId = shipMap.get(content); - list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type,null); + list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type,null,null,null); CommonTable.refreshTable(list, columnDto, subTable); subTable.setRowHeight(25); @@ -238,7 +243,7 @@ String type = comboBox4.getSelectedItem().toString(); Long shipId = shipMap.get(content); - list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type,null); + list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type,null,null,null); CommonTable.refreshTable(list, columnDto, subTable); subTable.setRowHeight(25); @@ -266,7 +271,7 @@ String type = comboBox4.getSelectedItem().toString(); Long shipId = shipMap.get(content); - list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type,null); + list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type,null,null,null); CommonTable.refreshTable(list, columnDto, subTable); subTable.setRowHeight(25); @@ -289,7 +294,7 @@ query.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { - list = level3Service.getList(null, null, null, null, null,sb.getText()); + list = level3Service.getList(null, null, null, null, null,null,null,sb.getText()); CommonTable.refreshTable(list, columnDto, subTable); subTable.setRowHeight(25); -- Gitblit v1.9.1