优化:1代码生成表倒序,2默认增加Repository注解消除mapper依赖报错

This commit is contained in:
LiYaoheng 2024-04-05 23:43:18 +08:00
parent 5dc14666cc
commit 0d60d91c55
2 changed files with 3 additions and 1 deletions

View File

@ -104,7 +104,7 @@ public class GenTableServiceImpl implements IGenTableService {
.like(StringUtils.isNotBlank(genTable.getTableComment()), "lower(table_comment)", StringUtils.lowerCase(genTable.getTableComment()))
.between(params.get("beginTime") != null && params.get("endTime") != null,
"create_time", params.get("beginTime"), params.get("endTime"));
return wrapper;
return wrapper.orderByDesc("table_id");
}
@DS("#genTable.dataName")

View File

@ -3,6 +3,7 @@ package ${packageName}.mapper;
import ${packageName}.domain.${ClassName};
import ${packageName}.domain.vo.${ClassName}Vo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
import org.springframework.stereotype.Repository;
/**
* ${functionName}Mapper接口
@ -10,6 +11,7 @@ import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
* @author ${author}
* @date ${datetime}
*/
@Repository
public interface ${ClassName}Mapper extends BaseMapperPlus<${ClassName}, ${ClassName}Vo> {
}