Commit 0bcdec2d authored by tangwei's avatar tangwei

修改bug

parent af5af936
......@@ -212,17 +212,17 @@ public void updateSeve(String peasantHouseholdId, Map<String, Object> kv ){
public <T> T mapToBean(Map<String, Object> map, Class<T> clazz) {
T bean =null;
try {
bean = clazz.newInstance();
BeanMap beanMap = BeanMap.create(bean);
beanMap.putAll(map);
}catch (Exception e){
throw new BaseException(" 数据转化异常!","400","数据转化异常!");
T bean =null;
try {
bean = clazz.newInstance();
BeanMap beanMap = BeanMap.create(bean);
beanMap.putAll(map);
}catch (Exception e){
throw new BaseException(" 数据转化异常!","400","数据转化异常!");
}
return bean;
}
return bean;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment