| | |
| | | package com.vci.rmip.code.client.codeapply.Apply410.utils; |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.google.common.collect.Lists; |
| | | import com.vci.ubcs.starter.web.util.VciBaseUtil; |
| | | import com.alibaba.nacos.shaded.com.google.common.collect.Lists; |
| | | |
| | | import org.apache.commons.beanutils.ConvertUtils; |
| | | import org.apache.commons.beanutils.PropertyUtils; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.apache.poi.ss.formula.functions.T; |
| | | import org.springframework.util.StringUtils; |
| | | import java.lang.reflect.Field; |
| | | import java.lang.reflect.Type; |
| | | import java.text.ParseException; |
| | |
| | | try{ |
| | | //取得值的类形 |
| | | Class type = PropertyUtils.getPropertyType(obj, fieldName); |
| | | if(!StringUtils.isEmpty(type)){ |
| | | if(type!=null){ |
| | | |
| | | PropertyUtils.setProperty(obj, fieldName,convert(value, type)); |
| | | } |
| | |
| | | try{ |
| | | //取得值的类形 |
| | | Class type = PropertyUtils.getPropertyType(obj, fieldName); |
| | | if(!StringUtils.isEmpty(type)){ |
| | | |
| | | if(type!=null){ |
| | | PropertyUtils.setProperty(obj, fieldName,convert(value, type)); |
| | | } |
| | | }catch(Exception ex){ |