nnnjjj123
2021-01-07 c50e7293cb05a212d9c67828e42cbc82f28d087d
src/main/java/org/springblade/modules/catalog/mapper/catalogMapper.xml
@@ -6,13 +6,17 @@
    <resultMap id="catalogResultMap" type="org.springblade.modules.catalog.entitly.catalog">
        <id column="id" property="id"/>
        <result column="name" property="name"/>
        <result column="pid" property="pid"/>
        <result column="pId" property="pId"/>
        <result column="eqid" property="eqid"/>
    </resultMap>
    <select id="selectCatalogList" resultMap="catalogResultMap">
        SELECT id,name,pid FROM `sys_catalog`
    <select id="selectCatalogList" resultType="java.util.HashMap">
        SELECT id,name,pId FROM `sys_catalog`
    </select>
    <select id="selectCatalogEqNUmber" resultType="java.lang.String">
        SELECT GROUP_CONCAT(eqid) FROM sys_catalog WHERE pId=#{pid} and eqid is NOT NULL;
    </select>