|
@@ -9,6 +9,7 @@ import com.community.huiju.model.TaUser;
|
9
|
9
|
import com.community.huiju.model.TpTicket;
|
10
|
10
|
import com.community.huiju.service.ITaUserService;
|
11
|
11
|
import com.community.huiju.vo.TaUserVO;
|
|
12
|
+import com.google.common.collect.Maps;
|
12
|
13
|
import io.swagger.annotations.Api;
|
13
|
14
|
import io.swagger.annotations.ApiImplicitParam;
|
14
|
15
|
import io.swagger.annotations.ApiImplicitParams;
|
|
@@ -25,6 +26,7 @@ import org.springframework.web.multipart.MultipartFile;
|
25
|
26
|
import javax.servlet.http.HttpSession;
|
26
|
27
|
import javax.xml.crypto.dsig.keyinfo.PGPData;
|
27
|
28
|
import java.util.List;
|
|
29
|
+import java.util.Map;
|
28
|
30
|
|
29
|
31
|
/**
|
30
|
32
|
* 用户控制器
|
|
@@ -120,7 +122,12 @@ public class UserController extends BaseController {
|
120
|
122
|
HttpSession session){
|
121
|
123
|
ResponseBean response = new ResponseBean();
|
122
|
124
|
UserElement userElement = getUserElement(session);
|
123
|
|
- response = iTaUserService.modifyUser(userElement, parameter);
|
|
125
|
+ JSONObject jsonObject = JSONObject.parseObject(parameter);
|
|
126
|
+ Map<String, Object> map = Maps.newHashMap();
|
|
127
|
+ map.put("userName", jsonObject.getString("userName"));
|
|
128
|
+ map.put("gender", jsonObject.getString("gender"));
|
|
129
|
+ map.put("idCard", jsonObject.getString("idCard"));
|
|
130
|
+ response = iTaUserService.modifyUser(userElement, JSONObject.toJSONString(map));
|
124
|
131
|
return response;
|
125
|
132
|
|
126
|
133
|
}
|