| | |
| | | <mapper namespace="org.springblade.modules.modules.mapper.ModulesMapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="modulesResultMap" type="org.springblade.modules.modules.entity.ModulesEntity"> |
| | | <resultMap id="modulesResultMap" type="org.springblade.modules.modules.vo.ModulesVO"> |
| | | <result column="id" property="id"/> |
| | | <result column="name" property="name"/> |
| | | <result column="height" property="height"/> |
| | | <result column="width" property="width"/> |
| | | <result column="background" property="background"/> |
| | | <result column="background" property="background" typeHandler="com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler"/> |
| | | <result column="tenant_id" property="tenantId"/> |
| | | <result column="create_user" property="createUser"/> |
| | | <result column="create_dept" property="createDept"/> |
| | |
| | | select * from sys_modules where is_deleted = 0 |
| | | </select> |
| | | |
| | | <select id="getAll" resultMap="modulesResultMap"> |
| | | select * from sys_modules where is_deleted = 0 |
| | | <if test="modules.name !=null and modules.name !=''"> |
| | | AND name = #{modules.name} |
| | | </if> |
| | | </select> |
| | | |
| | | |
| | | </mapper> |