|
@@ -1,6 +1,7 @@
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import org.dromara.system.domain.SysDept;
|
|
import org.dromara.system.domain.SysDept;
|
|
import org.example.DromaraApplication;
|
|
import org.example.DromaraApplication;
|
|
|
|
+import org.example.join.model.IQueryColumn;
|
|
import org.example.join.model.QueryColumn;
|
|
import org.example.join.model.QueryColumn;
|
|
import org.example.join.model.Table;
|
|
import org.example.join.model.Table;
|
|
import org.example.join.model.TableSublist;
|
|
import org.example.join.model.TableSublist;
|
|
@@ -37,7 +38,8 @@ public class MySpringBootTest {
|
|
.select(
|
|
.select(
|
|
dept_id,
|
|
dept_id,
|
|
tenant_id,
|
|
tenant_id,
|
|
- status
|
|
+ status,
|
|
|
|
+ ancestors
|
|
)
|
|
)
|
|
.from(sys_dept)
|
|
.from(sys_dept)
|
|
.tableAs(sys_dept);
|
|
.tableAs(sys_dept);
|
|
@@ -49,6 +51,7 @@ public class MySpringBootTest {
|
|
dept_id,
|
|
dept_id,
|
|
childTable.field(tenant_id),
|
|
childTable.field(tenant_id),
|
|
childTable.field("status"),
|
|
childTable.field("status"),
|
|
|
|
+ IQueryColumn.create("sys_dept.ancestors", "ancestors"),
|
|
Sql.create().select(dept_id).from(sys_dept).limit(1).as("ccc")
|
|
Sql.create().select(dept_id).from(sys_dept).limit(1).as("ccc")
|
|
)
|
|
)
|
|
.from(childTable)
|
|
.from(childTable)
|