|
@@ -43,4 +43,33 @@
|
|
|
from program_type_dict ptd
|
|
|
where ptd.del_flag = '0' and ptd.id = ${id}
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="getList" resultMap="Map">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List"></include>
|
|
|
+ from program_type_dict ptd
|
|
|
+ where ptd.del_flag = '0' and ptd.parent_id = '0'
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <resultMap id="Map" type="com.jeeplus.test.program.configuration.typeDict.service.dto.ProgramTypeDictDTO">
|
|
|
+ <id property="id" column="id" jdbcType="VARCHAR"/>
|
|
|
+ <result property="createBy.id" column="create_by" jdbcType="VARCHAR"/>
|
|
|
+ <result property="createDate" column="create_date" jdbcType="TIMESTAMP"/>
|
|
|
+ <result property="updateBy.id" column="update_by" jdbcType="VARCHAR"/>
|
|
|
+ <result property="updateDate" column="update_date" jdbcType="TIMESTAMP"/>
|
|
|
+ <result property="delFlag" column="del_flag" jdbcType="INTEGER"/>
|
|
|
+ <result property="remarks" column="remarks" jdbcType="VARCHAR"/>
|
|
|
+ <result property="type" column="type" jdbcType="VARCHAR"/>
|
|
|
+ <result property="parentId" column="parent_id" jdbcType="VARCHAR"/>
|
|
|
+ <result property="sort" column="sort" jdbcType="VARCHAR"/>
|
|
|
+ <collection property="childrenList" column="id" select="getChildList" ofType="com.jeeplus.test.program.configuration.typeDict.service.dto.ProgramTypeDictDTO"/>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <select id="getChildList" resultType="com.jeeplus.test.program.configuration.typeDict.service.dto.ProgramTypeDictDTO">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List"></include>
|
|
|
+ from program_type_dict ptd
|
|
|
+ where ptd.del_flag = '0' and ptd.parent_id = ${id}
|
|
|
+ </select>
|
|
|
+
|
|
|
</mapper>
|