Commit c723b262 by huangjinxin

修改参数

1 parent ec929c7c
...@@ -708,6 +708,13 @@ public class UserService { ...@@ -708,6 +708,13 @@ public class UserService {
* @return r * @return r
*/ */
public static <T> T mapConvertToObject(Map<String, Object> map, Class<T> beanClass) { public static <T> T mapConvertToObject(Map<String, Object> map, Class<T> beanClass) {
map.remove("password");
map.remove("CREATED_BY");
map.remove("LAST_LOGIN_TIME");
map.remove("wechat_mini_program");
map.remove("CREATED_TIME");
map.remove("UPDATED_BY");
map.remove("UPDATED_TIME");
ObjectMapper mapper = new ObjectMapper(); ObjectMapper mapper = new ObjectMapper();
return mapper.convertValue(map, beanClass); return mapper.convertValue(map, beanClass);
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!