“linengliang”
2023-08-29 14b1e801322db00b6b0d8dd059b9720adeb21bd8
lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EquipmentCategoryMapper.xml
@@ -1,5 +1,15 @@
<?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="org.jeecg.modules.eam.mapper.EquipmentCategoryMapper">
</mapper>
    <select id="getTreeByParentId" resultType="org.jeecg.common.api.vo.CommonGenericTree">
        select
        t1.id as 'key',
        CONCAT(t1.num,'/',t1.name) title,
        t1.parent_id parentId,
        t1.name rField1,
        t1.num RField2
        from mom_eam_equipment_category t1
        where t1.del_flag = 0
        and t1.parent_id = #{parentId}
    </select>
</mapper>