소스 검색

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) {


불러오는 중...
취소
저장