jinlin
2025-04-01 a80b4a7eb099390bb53c967126fa97b30568e1a3
src/main/java/com/example/client/service/DataImportManageService.java
@@ -9,6 +9,7 @@
import com.example.server.progressTrack.dao.ImportRecordDao;
import com.example.server.progressTrack.model.ExportRecord;
import com.example.server.progressTrack.model.ImportRecord;
import com.example.server.user.model.SysUser;
import com.example.server.utils.CacheUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
@@ -37,6 +38,11 @@
    private JTable table;
    public JPanel createTable(Integer width, Integer height, JFrame jFrame) {
        SysUser user = (SysUser) CacheUtils.get("user","user");
        if (user==null){
            JOptionPane.showMessageDialog(null, "用户失效请退出并重新登录", "提示", JOptionPane.WARNING_MESSAGE);
            return null;
        }
        JPanel panel = new JPanel(new BorderLayout());
        panel.setPreferredSize(new Dimension(width-10,height));