mirror of
https://gitee.com/best_handsome/mybatis-plus-join
synced 2025-07-25 00:00:12 +08:00
mapping
This commit is contained in:
parent
65514dff6a
commit
f86b3f0bc6
@ -36,7 +36,8 @@ public class UserDO {
|
|||||||
@EntityMapping(thisField = "id", joinField = "pid",
|
@EntityMapping(thisField = "id", joinField = "pid",
|
||||||
condition = {
|
condition = {
|
||||||
@MPJMappingCondition(column = "sex", value = "0"),//sex = '0' 默认条件是等于
|
@MPJMappingCondition(column = "sex", value = "0"),//sex = '0' 默认条件是等于
|
||||||
@MPJMappingCondition(column = "name", value = "张三", keyWord = SqlKeyword.LIKE)},//name like '%a%'
|
@MPJMappingCondition(column = "name", value = "张三", keyWord = SqlKeyword.LIKE)//name like '%a%'
|
||||||
|
},
|
||||||
apply = @MPJMappingApply(value = "id between 1 and 20"))//拼接sql 同 wrapper.apply()
|
apply = @MPJMappingApply(value = "id between 1 and 20"))//拼接sql 同 wrapper.apply()
|
||||||
private List<UserDO> childUserCondition;
|
private List<UserDO> childUserCondition;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user