feat: 新增查询生成配置信息接口

This commit is contained in:
2023-08-07 23:34:15 +08:00
parent f4c6d83ff5
commit abae964970
11 changed files with 182 additions and 44 deletions

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="top.charles7c.cnadmin.tool.mapper.GenConfigMapper">
<select id="selectRecommendAuthor" resultType="java.lang.String">
SELECT `author`
FROM `gen_config`
WHERE #{lessThanDate} > `create_time`
GROUP BY `author`
ORDER BY COUNT(*) DESC
LIMIT 1
</select>
</mapper>