瀏覽代碼

fix bug

release_toaliyun_real
xiaohanzi 5 年之前
父節點
當前提交
a212a4db0e
共有 1 個檔案被更改,包括 13 行新增9 行删除
  1. +13
    -9
      mybatis-multi-tenancy/src/main/java/com/iformall/plugin/shard/plugin/ShardingSpherePlugin.java

+ 13
- 9
mybatis-multi-tenancy/src/main/java/com/iformall/plugin/shard/plugin/ShardingSpherePlugin.java 查看文件

@@ -222,16 +222,20 @@ public class ShardingSpherePlugin implements MyBatisPlus {
if (null == column) {
throw new RuntimeException("table sharinding error column is null");
}
String[] field = column.split("_");
String fieldName = "";
if (null != field && field.length > 0) {
for (String f : field) {
fieldName = fieldName + f.substring(0,1).toUpperCase()+f.substring(1);
try {
String[] field = column.split("_");
String fieldName = "";
if (null != field && field.length > 0) {
for (String f : field) {
fieldName = fieldName + f.substring(0,1).toUpperCase()+f.substring(1);
}
}else {
fieldName = column.substring(0,1).toUpperCase()+column.substring(1);
}
}else {
fieldName = column.substring(0,1).toUpperCase()+column.substring(1);
}
return fieldName;
return fieldName;
}catch(Exception e) {
throw new RuntimeException(e);
}
}
private boolean isBasicTypeValue(Object parameterObject) {


Loading…
取消
儲存