|
@@ -13,7 +13,7 @@ import org.springframework.test.context.junit4.SpringRunner;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
-import static org.example.join.domain.QueryMethods.*;
|
|
|
+import static org.example.join.domain.QueryMethods.concat;
|
|
|
|
|
|
@RunWith(SpringRunner.class)
|
|
|
@SpringBootTest(classes = DromaraApplication.class)
|
|
@@ -41,36 +41,38 @@ public class MySpringBootTest {
|
|
|
List<SysDept> list = Sql.create(SysDept.class)
|
|
|
//.logicIgnore()
|
|
|
.select(
|
|
|
- dept_id.as(SysDept::getEmail),
|
|
|
- abs(parent_id).as(SysDept::getUpdateTime),
|
|
|
- replace(dept_id, "2", "3"),
|
|
|
- concat("@","1"),
|
|
|
- concat("dept_id","@","1"),
|
|
|
- concat(dept_id, parent_id),
|
|
|
- dateFormat(now(), "%Y%m"),
|
|
|
- ifNull("2","2")
|
|
|
+ //dept_id,
|
|
|
+ //abs(parent_id).as(SysDept::getUpdateTime),
|
|
|
+ //replace(dept_id, "2", "3"),
|
|
|
+ //concat("@", "1"),
|
|
|
+ concat(dept_id, 1, "',(select config_value from sys_config where config_id = 1749335361951907842),'").as(SysDept::getEmail)
|
|
|
+ //concat(dept_id, parent_id),
|
|
|
+ //concat(dept_id,"sdasdsa"),
|
|
|
+ //dateFormat(now(), "%Y%m"),
|
|
|
+ //ifNull("2", "2")
|
|
|
)
|
|
|
.from(sys_dept)
|
|
|
.leftJoin(sys_user).on(user_id.eq(dept_id))
|
|
|
.where(
|
|
|
- create_by.eq(98),
|
|
|
- create_by.ne(98),
|
|
|
- create_by.gt(98),
|
|
|
- create_by.lt(98),
|
|
|
- create_by.ge(98),
|
|
|
- create_by.le(98),
|
|
|
- create_by.between(1, 2),
|
|
|
- create_by.notBetween(1, 2),
|
|
|
- create_by.like(1),
|
|
|
- create_by.notLike(1),
|
|
|
- create_by.likeLeft(1),
|
|
|
- create_by.notLikeLeft(1),
|
|
|
- create_by.likeRight(1),
|
|
|
- create_by.notLikeRight(1),
|
|
|
- create_by.isNull(),
|
|
|
- create_by.isNotNull(),
|
|
|
- create_by.in(1, 2, 3, 4),
|
|
|
- create_by.notIn(1, 2, 3, 4)
|
|
|
+ //dept_id.add(parent_id).eq(parent_id)
|
|
|
+ //create_by.eq(concat("dept_id", "@", "',(select config_value from sys_config where config_id = 1749335361951907842),'").as(SysDept::getEmail))
|
|
|
+ //create_by.ne(98),
|
|
|
+ //create_by.gt(98),
|
|
|
+ //create_by.lt(98),
|
|
|
+ //create_by.ge(98),
|
|
|
+ //create_by.le(98),
|
|
|
+ //create_by.between(1, 2),
|
|
|
+ //create_by.notBetween(1, 2),
|
|
|
+ //create_by.like(1),
|
|
|
+ //create_by.notLike(1),
|
|
|
+ //create_by.likeLeft(1),
|
|
|
+ //create_by.notLikeLeft(1),
|
|
|
+ //create_by.likeRight(1),
|
|
|
+ //create_by.notLikeRight(1),
|
|
|
+ //create_by.isNull(),
|
|
|
+ //create_by.isNotNull(),
|
|
|
+ //create_by.in(1, 2, 3, 4),
|
|
|
+ //create_by.notIn(1, 2, 3, 4)
|
|
|
)
|
|
|
.list();
|
|
|
|