Commit d72185c4 authored by 李博今's avatar 李博今

修改bug

parent bddb1260
This diff is collapsed.
package com.qiqiim.webserver.user.controller;
import java.io.File;
import java.io.UnsupportedEncodingException;
import java.util.*;
import java.util.stream.Collectors;
......@@ -592,7 +593,7 @@ public class ImController extends BaseController {
@RequestMapping(value = "/updateConsultantDetail",produces = "text/html;charset=UTF-8", method = RequestMethod.POST)
public ModelAndView userHistoryMessagesPage(ConsultantManagerEntity consultantManagerEntity) throws Exception {
public ModelAndView updateConsultantDetail(ConsultantManagerEntity consultantManagerEntity) throws Exception {
userAccountServiceImpl.updateDetail(consultantManagerEntity);
getSession().setAttribute("message", "修改成功");
if(consultantManagerEntity.getWhereToGo() == null){
......@@ -616,18 +617,18 @@ public class ImController extends BaseController {
@Param(value = "phone")String phone,
@Param(value = "deptid")Long deptid,
@Param(value = "name")String name,
@Param(value = "remark")String remark){
@Param(value = "remark")String remark) throws UnsupportedEncodingException {
if(whereToGo == null){
whereToGo = "";
}
UserAccountEntity userAccountEntity = new UserAccountEntity();
userAccountEntity.setAccount(account);
userAccountEntity.setPassword(password);
userAccountEntity.setAccount(new String (account.getBytes("iso8859-1"),"UTF-8"));
userAccountEntity.setPassword(new String (password.getBytes("iso8859-1"),"UTF-8"));
UserInfoEntity userInfoEntity = new UserInfoEntity();
userInfoEntity.setDeptid(deptid);
userInfoEntity.setName(name);
userInfoEntity.setPhone(phone);
userInfoEntity.setRemark(remark);
userInfoEntity.setName(new String (name.getBytes("iso8859-1"),"UTF-8"));
userInfoEntity.setPhone(new String (phone.getBytes("iso8859-1"),"UTF-8"));
userInfoEntity.setRemark(new String (remark.getBytes("iso8859-1"),"UTF-8"));
userAccountEntity.setUserInfo(userInfoEntity);
int flag = userAccountServiceImpl.save(userAccountEntity);
if(flag == 1){
......
......@@ -406,6 +406,7 @@
</script>
......
This diff is collapsed.
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