mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-04 12:18:42 +08:00 
			
		
		
		
	修复代码生成导入表结构出现异常页面不提醒问题
This commit is contained in:
		@@ -144,9 +144,9 @@ public class GenTableServiceImpl implements IGenTableService
 | 
				
			|||||||
    public void importGenTable(List<GenTable> tableList)
 | 
					    public void importGenTable(List<GenTable> tableList)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        String operName = SecurityUtils.getUsername();
 | 
					        String operName = SecurityUtils.getUsername();
 | 
				
			||||||
        for (GenTable table : tableList)
 | 
					        try
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            try
 | 
					            for (GenTable table : tableList)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                String tableName = table.getTableName();
 | 
					                String tableName = table.getTableName();
 | 
				
			||||||
                GenUtils.initTable(table, operName);
 | 
					                GenUtils.initTable(table, operName);
 | 
				
			||||||
@@ -162,10 +162,10 @@ public class GenTableServiceImpl implements IGenTableService
 | 
				
			|||||||
                    }
 | 
					                    }
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            catch (Exception e)
 | 
					        }
 | 
				
			||||||
            {
 | 
					        catch (Exception e)
 | 
				
			||||||
                log.error("表名 " + table.getTableName() + " 导入失败:", e);
 | 
					        {
 | 
				
			||||||
            }
 | 
					            throw new CustomException("导入失败:" + e.getMessage());
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user