package com.changhong.epc.form.tool;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
public class FormNameTool {
|
|
public static String getFormTableName(String tenantId, String formId){
|
return "formdata_"+tenantId+"_"+formId;
|
}
|
|
|
public static String getSubFormTableName(String tenantId, String formId, String subAlias){
|
String str = "";
|
if(StringUtils.isNoneBlank(subAlias)){
|
str = "_"+subAlias;
|
}
|
return "formdata_"+tenantId+"_"+formId + str ;
|
}
|
public static String getSubFormTableName(String tenantId, String formId){
|
return "formdata_"+tenantId+"_"+formId;
|
}
|
}
|