|
|
|
@@ -178,7 +178,10 @@ public class ShardingSpherePlugin implements MyBatisPlus { |
|
|
|
|
|
|
|
private Object getValue(String column,Object parameterObject,Map<String,Object> parentChainMap) { |
|
|
|
if (null != parentChainMap && parentChainMap.containsKey(column)) { |
|
|
|
return parentChainMap.get(column); |
|
|
|
Object o = parentChainMap.get(column); |
|
|
|
if (null != o) { |
|
|
|
return o; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (parameterObject instanceof Map) { |
|
|
|
@@ -216,6 +219,9 @@ public class ShardingSpherePlugin implements MyBatisPlus { |
|
|
|
} |
|
|
|
|
|
|
|
private String getField(String column) { |
|
|
|
if (null == column) { |
|
|
|
throw new RuntimeException("table sharinding error column is null"); |
|
|
|
} |
|
|
|
String[] field = column.split("_"); |
|
|
|
String fieldName = ""; |
|
|
|
if (null != field && field.length > 0) { |
|
|
|
|