@@ -87,6 +87,11 @@ public class Office extends TreeEntity <Office> {
private String remarks;
/**
+ * 分管领导
+ */
+ private String administrator;
+
+ /**
* 构造函数
*/
public Office() {
@@ -110,4 +110,12 @@ public class OfficeDTO extends TreeDTO <OfficeDTO> {
private boolean typeFlag = false;
+ //分管领导名称
+ private String adminName;
}
@@ -66,9 +66,12 @@
a.del_flag,
a.useable AS useable,
a.tenant_id AS "tenantDTO.id",
+ a.administrator,
+ su.name as adminName,
p.name AS "parent.name"
FROM sys_office a
LEFT JOIN sys_office p ON p.id = a.parent_id
+ LEFT JOIN sys_user su ON su.id = a.administrator
${ew.customSqlSegment}
</select>