|
|
|
@ -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}());
|
|
|
|
|