| | |
| | | * @return |
| | | */ |
| | | public List<DirEntity> selectDirsForPrj(); |
| | | |
| | | /** |
| | | * 根据名称查询ID |
| | | * |
| | | * @param name 名称 |
| | | * @return ID |
| | | */ |
| | | public Integer selectIdByName(String name); |
| | | } |
| | |
| | | return dirMapper.selectDirsForPrj(); |
| | | } |
| | | |
| | | @Override |
| | | public Integer selectIdByName(String name) { |
| | | Integer id = dirMapper.selectIdByName(name); |
| | | return null == id ? 0 : id; |
| | | } |
| | | |
| | | /** |
| | | * 创建数据目录 |
| | | */ |
| | |
| | | select a.* from lf.sys_dir a where code not like '00%' order by code; |
| | | </select> |
| | | |
| | | <select id="selectIdByName" resultType="java.lang.Integer"> |
| | | select id from lf.sys_dir where name = #{name}; |
| | | </select> |
| | | |
| | | <!-- 插入一条 --> |
| | | <insert id="insert" parameterType="com.moon.server.entity.data.DirEntity"> |
| | | <selectKey resultType="java.lang.Integer" order="AFTER" keyProperty="id"> |