https://mybatis.plus/guide/generator.html
DAO层 使用 MyBatis-Plus
/**
* 通过父菜单ID查询子菜单
* @param parentId
* @return
*/
public List<TreeModel> queryListByParentId(@Param("parentId") String parentId);
<resultMap id="TreeModel" type="org.jeecg.modules.system.model.TreeModel" >
<result column="id" property="key" jdbcType="VARCHAR"/>
<result column="name" property="title" jdbcType="VARCHAR"/>
<result column="icon" property="icon" jdbcType="VARCHAR"/>
<result column="parent_id" property="parentId" jdbcType="VARCHAR"/>
<result column="leaf_flag" property="isLeaf" jdbcType="INTEGER&#