DO.java
@Data
public class SysOrgTreeModel {
private String sysOrgId;
private String tenantId;
private String pid;
private String dictOrgType;
private String name;
private Integer level;
private String description;
private String address;
private String email;
private String contactPersonName;
private String contactPersonPhone;
private String dictSysOrgStatus;
private Long createTime;
private Long updateTime;
private List childList;
}
Mapper.java
public interface SysOrgMapper {
List listChildOrgTree(@Param("tenantId") String tenantId, @Param("pid") String pid);
}
Mapper.xml
ofType="com.foo.model.SysOrgTreeModel" select="getNextSysOrgTree"/>
ofType="com.foo.model.SysOrgTreeModel" select="getNextSysOrgTree"/>
sys_org_id, tenant_id, pid, dict_org_type, name, level, description, address, email,
contact_person_name, contact_person_phone, dict_sys_org_status, create_time, update_time
SELECT
FROM sys_org
WHERE tenant_id = #{tenantId}
and pid = #{pid}
SELECT
FROM sys_org
WHERE tenant_id = #{tenantId}
and pid = #{pid}