RuoYi 4 سال پیش
والد
کامیت
63f394b0e9

+ 1 - 1
ruoyi-admin/src/main/resources/templates/main.html

@@ -1078,7 +1078,7 @@
 	            type: 1,
 	            closeBtn:false,
 	            shadeClose:true,
-	            area: ['600px', 'auto'],
+	            area: ['600px', '360px'],
 	            content: html
 	        });
 	    });

+ 5 - 4
ruoyi-common/src/main/java/com/ruoyi/common/core/domain/AjaxResult.java

@@ -84,12 +84,13 @@ public class AjaxResult extends HashMap<String, Object>
     /**
      * 方便链式调用
      *
-     * @param key
-     * @param value
-     * @return
+     * @param key
+     * @param value
+     * @return 数据对象
      */
     @Override
-    public AjaxResult put(String key, Object value) {
+    public AjaxResult put(String key, Object value)
+    {
         super.put(key, value);
         return this;
     }

+ 4 - 5
ruoyi-common/src/main/java/com/ruoyi/common/utils/file/FileUploadUtils.java

@@ -131,13 +131,12 @@ public class FileUploadUtils
     {
         File desc = new File(uploadDir + File.separator + fileName);
 
-        if (!desc.getParentFile().exists())
-        {
-            desc.getParentFile().mkdirs();
-        }
         if (!desc.exists())
         {
-            desc.createNewFile();
+            if (!desc.getParentFile().exists())
+            {
+                desc.getParentFile().mkdirs();
+            }
         }
         return desc;
     }

+ 0 - 7
ruoyi-generator/src/main/resources/vm/java/serviceImpl.java.vm

@@ -23,7 +23,6 @@ import ${packageName}.mapper.${ClassName}Mapper;
 import ${packageName}.domain.${ClassName};
 import ${packageName}.service.I${ClassName}Service;
 import com.ruoyi.common.core.text.Convert;
-import com.ruoyi.framework.util.ShiroUtils;
 
 /**
  * ${functionName}Service业务层处理
@@ -77,9 +76,6 @@ public class ${ClassName}ServiceImpl implements I${ClassName}Service
 #if($column.javaField == 'createTime')
         ${className}.setCreateTime(DateUtils.getNowDate());
 #end
-#if($column.javaField == 'createBy')
-        ${className}.setCreateBy(ShiroUtils.getLoginName());
-#end
 #end
 #if($table.sub)
         int rows = ${className}Mapper.insert${ClassName}(${className});
@@ -106,9 +102,6 @@ public class ${ClassName}ServiceImpl implements I${ClassName}Service
 #if($column.javaField == 'updateTime')
         ${className}.setUpdateTime(DateUtils.getNowDate());
 #end
-#if($column.javaField == 'updateBy')
-        ${className}.setUpdateBy(ShiroUtils.getLoginName());
-#end
 #end
 #if($table.sub)
         ${className}Mapper.delete${subClassName}By${subTableFkClassName}(${className}.get${pkColumn.capJavaField}());