|
@@ -49,11 +49,11 @@ public class MySpringBootTest implements DefaultFunction {
|
|
|
//.logic()
|
|
|
//.distinct()
|
|
|
.select(
|
|
|
- dept_id.as("aaa"),
|
|
|
- childTable.field(tenant_id).as("bbb"),
|
|
|
+ dept_id.as(TestEntity::getAaa),
|
|
|
+ childTable.field(tenant_id).as(TestEntity::getBbb),
|
|
|
childTable.field("status").as("ccc"),
|
|
|
- Sql.create().select(groupConcat(new QueryColumn("dept_id order by dept_id asc")).as("deptGroup")).from(sys_dept).as("ddd"),
|
|
|
- new QueryColumn("{0}", "ancestors").as("eee")
|
|
|
+ Sql.create().select(groupConcat(new QueryColumn("{0} order by {0} asc", dept_id, "dept_id"))).from(sys_dept).as("ddd"),
|
|
|
+ concat("ssss", 333).as("eee")
|
|
|
)
|
|
|
.from(childTable)
|
|
|
.leftJoin(sys_user).on(childTable.field(dept_id).eq(user_id))
|
|
@@ -65,7 +65,6 @@ public class MySpringBootTest implements DefaultFunction {
|
|
|
.list(TestEntity.class);
|
|
|
|
|
|
System.out.println(JSONObject.toJSONString(list));
|
|
|
-
|
|
|
}
|
|
|
|
|
|
@Data
|