| | |
| | | if(c.isArray()){ |
| | | return isBasicType(c.getComponentType()); |
| | | } |
| | | return ClassUtil.isPrimitive(c); |
| | | return ClassUtilForVCI.isPrimitive(c); |
| | | } |
| | | |
| | | /** |
| | |
| | | Map<String,Object> map = new HashMap<String,Object>(); |
| | | if(o!=null) { |
| | | String jsonString = JSONObject.toJSONStringWithDateFormat(o, VciDateUtil.DateTimeMillFormat, SerializerFeature.WriteDateUseDateFormat); |
| | | if(org.apache.commons.lang3.StringUtils.isNotBlank(jsonString)) { |
| | | if(StringUtils.isNotBlank(jsonString)) { |
| | | JSONObject jsonObject = JSONObject.parseObject(jsonString); |
| | | if(jsonObject!=null){ |
| | | for(String key : jsonObject.keySet()){ |
| | |
| | | Map<String,String> map = new HashMap<String,String>(); |
| | | if(o!=null) { |
| | | String jsonString = JSONObject.toJSONStringWithDateFormat(o, VciDateUtil.DateTimeMillFormat, SerializerFeature.WriteDateUseDateFormat); |
| | | if(org.apache.commons.lang3.StringUtils.isNotBlank(jsonString)) { |
| | | if(StringUtils.isNotBlank(jsonString)) { |
| | | JSONObject jsonObject = JSONObject.parseObject(jsonString); |
| | | if(jsonObject!=null){ |
| | | for(String key : jsonObject.keySet()){ |
| | |
| | | return name; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 根据业务类型获取表格名称 |
| | | * @param btmname 业务类型,并且不能是视图 |
| | | * @return 数据库表格名称 |
| | | */ |
| | | public static String getTableName(String btmname) { |
| | | return (VciQueryWrapperForDO.USER_TABLE_COMPATIBILITY?"platformbtm_":"vcibt_") + btmname.trim().toLowerCase(); |
| | | return (VciQueryWrapperForDO.USER_TABLE_COMPATIBILITY?"pbt_":"vcibt_") + btmname.trim().toLowerCase(); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @return 数据库表格名称 |
| | | */ |
| | | public static String getLinkTableName(String linkName){ |
| | | return (VciQueryWrapperForDO.USER_TABLE_COMPATIBILITY?"platformlt_":"vcilt_")+ linkName.trim().toLowerCase(); |
| | | return (VciQueryWrapperForDO.USER_TABLE_COMPATIBILITY?"plt_":"vcilt_")+ linkName.trim().toLowerCase(); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @param replaceMap 使用替换的数据源 |
| | | * @return 替换后的值 |
| | | */ |
| | | public static String replaceByFreeMarker(String freemarker,Map<String,String> replaceMap){ |
| | | public static String replaceByFreeMarker(String freemarker,Map<String,Object> replaceMap){ |
| | | if(StringUtils.isBlank(freemarker)){ |
| | | return ""; |
| | | } |