mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	update 优化生成的业务名
This commit is contained in:
		@@ -164,9 +164,10 @@ public class GenUtils
 | 
			
		||||
     */
 | 
			
		||||
    public static String getBusinessName(String tableName)
 | 
			
		||||
    {
 | 
			
		||||
        int lastIndex = tableName.lastIndexOf("_");
 | 
			
		||||
        int firstIndex = tableName.indexOf("_");
 | 
			
		||||
        int nameLength = tableName.length();
 | 
			
		||||
        String businessName = StringUtils.substring(tableName, lastIndex + 1, nameLength);
 | 
			
		||||
        String businessName = StringUtils.substring(tableName, firstIndex + 1, nameLength);
 | 
			
		||||
		businessName = StringUtils.toCamelCase(businessName);
 | 
			
		||||
        return businessName;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user