| | |
| | | } |
| | | String value = tableField.value(); |
| | | if(net.logstash.logback.encoder.org.apache.commons.lang3.StringUtils.isNotBlank(value)){ |
| | | fieldMap.put(declaredField.getName(), value); |
| | | fieldMap.put(declaredField.getName(), value.trim()); |
| | | } |
| | | } |
| | | } |
| | |
| | | ((!"".equals(existField) && !existField.contains(propertyName.toLowerCase()+","))||"data".equals(propertyName))) { |
| | | Method readMethod = descriptor.getReadMethod(); |
| | | Object result = readMethod.invoke(bean, new Object[0]); |
| | | if(result instanceof String){ |
| | | result=((String) result).trim(); |
| | | } |
| | | |
| | | if (result != null) { |
| | | if ("data".equals(propertyName)){ |
| | |
| | | && Func.isBlank(String.valueOf(mapData.get(o)))){ |
| | | continue; |
| | | } |
| | | returnMap.put(String.valueOf(o).toLowerCase(),mapData.get(o)); |
| | | Object result=mapData.get(o); |
| | | if(result instanceof String){ |
| | | result=((String) result).trim(); |
| | | } |
| | | returnMap.put(String.valueOf(o).toLowerCase(),result); |
| | | } |
| | | } |
| | | return returnMap; |