mirror of https://gitee.com/y_project/RuoYi.git
优化代码
parent
80ff14f88f
commit
63f394b0e9
|
@ -1078,7 +1078,7 @@
|
|||
type: 1,
|
||||
closeBtn:false,
|
||||
shadeClose:true,
|
||||
area: ['600px', 'auto'],
|
||||
area: ['600px', '360px'],
|
||||
content: html
|
||||
});
|
||||
});
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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}());
|
||||
|
|
Loading…
Reference in New Issue