mirror of
https://gitee.com/best_handsome/mybatis-plus-join
synced 2025-07-11 00:02:22 +08:00
This commit is contained in:
parent
0356b4c201
commit
8e8eb6afdd
@ -33,7 +33,6 @@
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
QQ群:680016987 或者
|
||||
<a href="https://gitee.com/best_handsome/mybatis-plus-join/issues/I65N2M" target="_blank">添加作者微信,备注MPJ,加入微信群</a>
|
||||
<br/>
|
||||
<img width="200px" height="200px" src="https://foruda.gitee.com/images/1714756135330585984/bcc86eb0_2020985.png" alt="添加作者微信,备注MPJ,加入微信群"/>
|
||||
|
@ -33,7 +33,6 @@
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
QQ群:680016987 或者
|
||||
<a href="https://gitee.com/best_handsome/mybatis-plus-join/issues/I65N2M" target="_blank">添加作者微信,备注MPJ,加入微信群</a>
|
||||
<br/>
|
||||
<img width="200px" height="200px" src="https://github.com/yulichang/mybatis-plus-join/assets/33247410/6a2aedfa-c67d-4691-9441-204f28b6c73d" alt="添加作者微信,备注MPJ,加入微信群"/>
|
||||
|
@ -127,7 +127,8 @@ public interface MPJBaseMethod extends Constants {
|
||||
if (fieldStrategy == FieldStrategy.NEVER) {
|
||||
return null;
|
||||
}
|
||||
if (AdapterHelper.getAdapter().mpjIsPrimitive(tableFieldInfo) || fieldStrategy == FieldStrategy.ALWAYS
|
||||
if (AdapterHelper.getAdapter().mpjIsPrimitive(tableFieldInfo)
|
||||
|| fieldStrategy.name().equalsIgnoreCase("ALWAYS")
|
||||
|| fieldStrategy.name().equalsIgnoreCase("IGNORED")) {
|
||||
return sqlScript;
|
||||
}
|
||||
|
@ -65,8 +65,9 @@ public class UpdateJoin extends MPJAbstractMethod {
|
||||
if (fieldStrategy == FieldStrategy.NEVER) {
|
||||
return null;
|
||||
}
|
||||
if (AdapterHelper.getAdapter().mpjIsPrimitive(tableFieldInfo) || fieldStrategy == FieldStrategy.ALWAYS ||
|
||||
fieldStrategy.name().equalsIgnoreCase("IGNORED")) {
|
||||
if (AdapterHelper.getAdapter().mpjIsPrimitive(tableFieldInfo)
|
||||
|| fieldStrategy.name().equalsIgnoreCase("ALWAYS")
|
||||
|| fieldStrategy.name().equalsIgnoreCase("IGNORED")) {
|
||||
return sqlScript;
|
||||
}
|
||||
if (fieldStrategy == FieldStrategy.NOT_EMPTY && tableFieldInfo.isCharSequence()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user