|
@@ -3,18 +3,11 @@ package com.welampiot.controller;
|
|
|
import com.welampiot.common.BaseResult;
|
|
|
import com.welampiot.common.InterfaceResultEnum;
|
|
|
import com.welampiot.common.ResultEnum;
|
|
|
-import com.welampiot.dto.GlobalLocationDTO;
|
|
|
-import com.welampiot.dto.SectionDTO;
|
|
|
-import com.welampiot.dto.UserDTO;
|
|
|
-import com.welampiot.service.GlobalLocationService;
|
|
|
-import com.welampiot.service.SectionService;
|
|
|
-import com.welampiot.service.UserService;
|
|
|
+import com.welampiot.dto.*;
|
|
|
+import com.welampiot.service.*;
|
|
|
import com.welampiot.utils.MD5Utils;
|
|
|
import com.welampiot.utils.ToolUtils;
|
|
|
-import com.welampiot.vo.GlobalLocationVO;
|
|
|
-import com.welampiot.vo.ListResponseVO;
|
|
|
-import com.welampiot.vo.LoginVO;
|
|
|
-import com.welampiot.vo.UserVO;
|
|
|
+import com.welampiot.vo.*;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -22,6 +15,7 @@ import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.validation.Valid;
|
|
|
+import java.text.SimpleDateFormat;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
import java.util.Objects;
|
|
@@ -41,6 +35,10 @@ public class UserController {
|
|
|
private GlobalLocationService globalLocationService;
|
|
|
@Autowired
|
|
|
private SectionService sectionService;
|
|
|
+ @Autowired
|
|
|
+ private DicInfoService dicInfoService;
|
|
|
+ @Autowired
|
|
|
+ private CompanyService companyService;
|
|
|
|
|
|
/**
|
|
|
* 登录demo做测试,后续删除
|
|
@@ -246,7 +244,7 @@ public class UserController {
|
|
|
if (md5Pwd.equals(password)) { // 如果相同允许修改
|
|
|
if (newPwd.length() < 8) // 密码长度不小于8位
|
|
|
return toolUtils.response(InterfaceResultEnum.PWD_LENGTH_ERROR,version);
|
|
|
- if (!ToolUtils.checkPassword(newPwd)) // 密码必须包含字母和数字
|
|
|
+ if (!ToolUtils.checkDataFormat(newPwd,0)) // 密码必须包含字母和数字
|
|
|
return toolUtils.response(InterfaceResultEnum.PWD_COMBINE_ERROR,version);
|
|
|
if (!surePwd.equals(newPwd)) // 确认密码与新密码不一致
|
|
|
return toolUtils.response(InterfaceResultEnum.SURE_PASSWORD_ERROR,version);
|
|
@@ -286,8 +284,8 @@ public class UserController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 编辑用户信息
|
|
|
- * @param request 要编辑的用户信息
|
|
|
+ * 添加编辑用户信息
|
|
|
+ * @param request 要添加编辑的用户信息
|
|
|
* @return 更新用户信息
|
|
|
*/
|
|
|
@RequestMapping(value = "save", method = RequestMethod.POST)
|
|
@@ -299,32 +297,94 @@ public class UserController {
|
|
|
Integer department = (Integer) toolUtils.getRequestContent(request,"department",1);
|
|
|
String avatar = (String) toolUtils.getRequestContent(request,"avatar",2);
|
|
|
String name = (String) toolUtils.getRequestContent(request,"name",2);
|
|
|
+ String username = (String) toolUtils.getRequestContent(request,"username",2);
|
|
|
String address = (String) toolUtils.getRequestContent(request,"address",2);
|
|
|
String phone = (String) toolUtils.getRequestContent(request,"phone",2);
|
|
|
String email = (String) toolUtils.getRequestContent(request,"email",2);
|
|
|
String remark = (String) toolUtils.getRequestContent(request,"remark",2);
|
|
|
- if (id == 0) return toolUtils.response(InterfaceResultEnum.LACK_PARAM_ERROR,version);
|
|
|
if (companyId == 0 || department == 0 || name.length() == 0 || phone.length() == 0 || email.length() == 0)
|
|
|
return toolUtils.response(InterfaceResultEnum.LACK_NEED_PARAM,version);
|
|
|
- UserDTO userDTO = new UserDTO();
|
|
|
- userDTO.setId(id);
|
|
|
- userDTO.setPhone(phone);
|
|
|
- if (userService.findUserData(userDTO) > 0)
|
|
|
- return toolUtils.response(InterfaceResultEnum.PHONE_UNIQUE_ERROR,version);
|
|
|
- userDTO = new UserDTO();
|
|
|
- userDTO.setId(id);
|
|
|
- userDTO.setEmail(email);
|
|
|
- if (userService.findUserData(userDTO) > 0)
|
|
|
- return toolUtils.response(InterfaceResultEnum.EMAIL_UNIQUE_ERROR,version);
|
|
|
- userDTO.setCompanyId(companyId);
|
|
|
- userDTO.setSex(sex);
|
|
|
- userDTO.setDepartment(department);
|
|
|
- userDTO.setAvatar(avatar);
|
|
|
- userDTO.setName(name);
|
|
|
- userDTO.setPhone(phone);
|
|
|
- userDTO.setRemark(remark);
|
|
|
- userDTO.setAddress(address);
|
|
|
- userService.updateUserData(userDTO);
|
|
|
+
|
|
|
+ if (id == 0) { // 添加
|
|
|
+ String userName = (String) toolUtils.getRequestContent(request,"userName",2);
|
|
|
+ String password = (String) toolUtils.getRequestContent(request,"password",2);
|
|
|
+ String zones = (String) toolUtils.getRequestContent(request,"zones",2);
|
|
|
+ String privilege = (String) toolUtils.getRequestContent(request,"privilege",2);
|
|
|
+ Integer type = (Integer) toolUtils.getRequestContent(request,"type",1);
|
|
|
+ if (userName.length() == 0 || password.length() == 0)
|
|
|
+ return toolUtils.response(InterfaceResultEnum.LACK_NEED_PARAM,version);
|
|
|
+ if (password.length() < 8) // 密码长度不小于8位
|
|
|
+ return toolUtils.response(InterfaceResultEnum.PWD_LENGTH_ERROR,version);
|
|
|
+ if (!ToolUtils.checkDataFormat(password,0)) // 密码必须包含字母和数字
|
|
|
+ return toolUtils.response(InterfaceResultEnum.PWD_COMBINE_ERROR,version);
|
|
|
+ if (!ToolUtils.checkDataFormat(phone,1)) // 检查手机格式
|
|
|
+ return toolUtils.response(InterfaceResultEnum.PHONE_FORMAT_ERROR,version);
|
|
|
+ if (!ToolUtils.checkDataFormat(email,2)) // 检查邮箱格式
|
|
|
+ return toolUtils.response(InterfaceResultEnum.EMAIL_FORMAT_ERROR,version);
|
|
|
+ UserDTO userDTO = new UserDTO();
|
|
|
+ userDTO.setPhone(phone);
|
|
|
+ if (userService.findUserData(userDTO) > 0)
|
|
|
+ return toolUtils.response(InterfaceResultEnum.PHONE_UNIQUE_ERROR,version);
|
|
|
+ userDTO = new UserDTO();
|
|
|
+ userDTO.setEmail(email);
|
|
|
+ if (userService.findUserData(userDTO) > 0)
|
|
|
+ return toolUtils.response(InterfaceResultEnum.EMAIL_UNIQUE_ERROR,version);
|
|
|
+ userDTO = new UserDTO();
|
|
|
+ userDTO.setUsername(userName);
|
|
|
+ if (userService.findUserData(userDTO) > 0)
|
|
|
+ return toolUtils.response(InterfaceResultEnum.USERNAME_UNIQUE_ERROR,version);
|
|
|
+ long l = System.currentTimeMillis();
|
|
|
+ SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
+ String format = simpleDateFormat.format(l);
|
|
|
+ UserDTO dto = userService.queryUserIdByUsername(username);
|
|
|
+ if (dto == null) return toolUtils.response(InterfaceResultEnum.PARAM_FAIL,version);
|
|
|
+ String encoderMD5 = MD5Utils.encoderMD5(password);
|
|
|
+ String companyName = companyService.getCompanyNameById(companyId);
|
|
|
+ userDTO.setCompany(companyName);
|
|
|
+ userDTO.setParentId(dto.getId());
|
|
|
+ userDTO.setRole(dto.getRole() + 1);
|
|
|
+ userDTO.setRegTime(format);
|
|
|
+ userDTO.setPassword(encoderMD5);
|
|
|
+ userDTO.setCompanyId(companyId);
|
|
|
+ userDTO.setSex(sex);
|
|
|
+ userDTO.setDepartment(department);
|
|
|
+ userDTO.setAvatar(avatar);
|
|
|
+ userDTO.setName(name);
|
|
|
+ userDTO.setPhone(phone);
|
|
|
+ userDTO.setRemark(remark);
|
|
|
+ userDTO.setAddress(address);
|
|
|
+ userDTO.setZoneList(zones);
|
|
|
+ userDTO.setPrivilegeList(privilege);
|
|
|
+ if (type == 0) {
|
|
|
+ userService.addUserData(userDTO);
|
|
|
+ }
|
|
|
+ } else { // 编辑
|
|
|
+ UserDTO userDTO = new UserDTO();
|
|
|
+ userDTO.setId(id);
|
|
|
+ userDTO.setPhone(phone);
|
|
|
+ if (!ToolUtils.checkDataFormat(phone,1)) // 检查手机格式
|
|
|
+ return toolUtils.response(InterfaceResultEnum.PHONE_FORMAT_ERROR,version);
|
|
|
+ if (!ToolUtils.checkDataFormat(email,2)) // 检查邮箱格式
|
|
|
+ return toolUtils.response(InterfaceResultEnum.EMAIL_FORMAT_ERROR,version);
|
|
|
+ if (userService.findUserData(userDTO) > 0)
|
|
|
+ return toolUtils.response(InterfaceResultEnum.PHONE_UNIQUE_ERROR,version);
|
|
|
+ userDTO = new UserDTO();
|
|
|
+ userDTO.setId(id);
|
|
|
+ userDTO.setEmail(email);
|
|
|
+ if (userService.findUserData(userDTO) > 0)
|
|
|
+ return toolUtils.response(InterfaceResultEnum.EMAIL_UNIQUE_ERROR,version);
|
|
|
+ String companyName = companyService.getCompanyNameById(companyId);
|
|
|
+ userDTO.setCompany(companyName);
|
|
|
+ userDTO.setCompanyId(companyId);
|
|
|
+ userDTO.setSex(sex);
|
|
|
+ userDTO.setDepartment(department);
|
|
|
+ userDTO.setAvatar(avatar);
|
|
|
+ userDTO.setName(name);
|
|
|
+ userDTO.setPhone(phone);
|
|
|
+ userDTO.setRemark(remark);
|
|
|
+ userDTO.setAddress(address);
|
|
|
+ userService.updateUserData(userDTO);
|
|
|
+ }
|
|
|
return toolUtils.response(InterfaceResultEnum.OPERATION_SUCCESS,version);
|
|
|
}
|
|
|
|
|
@@ -385,4 +445,201 @@ public class UserController {
|
|
|
}
|
|
|
return toolUtils.response(InterfaceResultEnum.OPERATION_SUCCESS,version);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 字典列表
|
|
|
+ * @param request 类型搜索,分页
|
|
|
+ * @return 字典列表
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/dicList", method = RequestMethod.POST)
|
|
|
+ public BaseResult<?> dicList(HttpServletRequest request) {
|
|
|
+ Integer version = (Integer) toolUtils.getRequestContent(request,"version",1);
|
|
|
+ String name = (String) toolUtils.getRequestContent(request,"name",2);
|
|
|
+ String type = (String) toolUtils.getRequestContent(request,"type",2);
|
|
|
+ Integer status = (Integer) toolUtils.getRequestContent(request,"status",1);
|
|
|
+ int page = request.getParameter("page") == null ? 1 : Integer.parseInt(request.getParameter("page"));
|
|
|
+ int count = request.getParameter("count") == null ? 16 : Integer.parseInt(request.getParameter("count"));
|
|
|
+ DicInfoVO dicInfoVO = new DicInfoVO();
|
|
|
+ dicInfoVO.setType(type);
|
|
|
+ dicInfoVO.setStatus(status);
|
|
|
+ dicInfoVO.setPage(count * (page - 1));
|
|
|
+ dicInfoVO.setCount(count);
|
|
|
+ dicInfoVO.setName(name);
|
|
|
+ List<DicInfoDTO> dicInfoList = dicInfoService.getDicInfoList(dicInfoVO);
|
|
|
+ DicInfoVO vo = new DicInfoVO();
|
|
|
+ vo.setTotal(dicInfoService.getDicInfoTotal());
|
|
|
+ vo.setList(dicInfoList);
|
|
|
+ return toolUtils.response(InterfaceResultEnum.OPERATION_SUCCESS,version,vo);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 添加编辑字典
|
|
|
+ * @param request 添加编辑字典的相关信息
|
|
|
+ * @return 更新字典数据
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/saveDic", method = RequestMethod.POST)
|
|
|
+ public BaseResult<?> saveDic(HttpServletRequest request) {
|
|
|
+ Integer version = (Integer) toolUtils.getRequestContent(request,"version",1);
|
|
|
+ Integer id = (Integer) toolUtils.getRequestContent(request,"id",1);
|
|
|
+ String name = (String) toolUtils.getRequestContent(request,"name",2);
|
|
|
+ String type = (String) toolUtils.getRequestContent(request,"type",2);
|
|
|
+ String remark = (String) toolUtils.getRequestContent(request,"remark",2);
|
|
|
+ String value = (String) toolUtils.getRequestContent(request,"value",2);
|
|
|
+ if (name.length() == 0 || type.length() == 0 || remark.length() == 0 || value.length() == 0)
|
|
|
+ return toolUtils.response(InterfaceResultEnum.LACK_NEED_PARAM,version);
|
|
|
+ DicInfoDTO dicInfoDTO = new DicInfoDTO();
|
|
|
+ dicInfoDTO.setName(name);
|
|
|
+ dicInfoDTO.setType(type);
|
|
|
+ dicInfoDTO.setRemark(remark);
|
|
|
+ dicInfoDTO.setValue(value);
|
|
|
+ if (id == 0) { // 添加
|
|
|
+ long l = System.currentTimeMillis();
|
|
|
+ SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
+ String format = simpleDateFormat.format(l);
|
|
|
+ dicInfoDTO.setCreateTime(format);
|
|
|
+ dicInfoService.addDicInfoData(dicInfoDTO);
|
|
|
+ } else { // 编辑
|
|
|
+ dicInfoDTO.setId(id);
|
|
|
+ dicInfoService.updateDicInfoData(dicInfoDTO);
|
|
|
+ }
|
|
|
+ return toolUtils.response(InterfaceResultEnum.OPERATION_SUCCESS,version);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 设置字典状态
|
|
|
+ * @param request 字典id,字典状态
|
|
|
+ * @return 更新字典状态
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/setDicStatus", method = RequestMethod.POST)
|
|
|
+ public BaseResult<?> setDicStatus(HttpServletRequest request) {
|
|
|
+ Integer version = (Integer) toolUtils.getRequestContent(request,"version",1);
|
|
|
+ Integer id = (Integer) toolUtils.getRequestContent(request,"id",1);
|
|
|
+ Integer status = (Integer) toolUtils.getRequestContent(request,"status",1);
|
|
|
+ String username = (String) toolUtils.getRequestContent(request,"username",2);
|
|
|
+ if (username.length() == 0 || id == 0)
|
|
|
+ return toolUtils.response(InterfaceResultEnum.LACK_PARAM_ERROR,version);
|
|
|
+ UserDTO userDTO = userService.queryUserIdByUsername(username);
|
|
|
+ if (userDTO == null) return toolUtils.response(InterfaceResultEnum.PARAM_FAIL,version);
|
|
|
+ if (userDTO.getRole() == 1) { // 只有超管可以修改
|
|
|
+ DicInfoDTO dicInfoDTO = new DicInfoDTO();
|
|
|
+ dicInfoDTO.setId(id);
|
|
|
+ dicInfoDTO.setStatus(status);
|
|
|
+ dicInfoService.updateDicStatus(dicInfoDTO);
|
|
|
+ } else {
|
|
|
+ return toolUtils.response(InterfaceResultEnum.PERMISSION_DENIED,version);
|
|
|
+ }
|
|
|
+ return toolUtils.response(InterfaceResultEnum.OPERATION_SUCCESS,version);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 修改用户账户权限
|
|
|
+ * @param request 子账号id
|
|
|
+ * @return 修改用户权限
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/changeAuth", method = RequestMethod.POST)
|
|
|
+ public BaseResult<?> changeAuth(HttpServletRequest request) {
|
|
|
+ Integer version = (Integer) toolUtils.getRequestContent(request,"version",1);
|
|
|
+ Integer id = (Integer) toolUtils.getRequestContent(request,"id",1);
|
|
|
+ String authIds = (String) toolUtils.getRequestContent(request,"authIds",2);
|
|
|
+ String username = (String) toolUtils.getRequestContent(request,"username",2);
|
|
|
+ if (username.length() == 0 || id == 0)
|
|
|
+ return toolUtils.response(InterfaceResultEnum.LACK_PARAM_ERROR,version);
|
|
|
+ UserDTO userDTO = userService.queryUserIdByUsername(username);
|
|
|
+ if (userDTO == null) return toolUtils.response(InterfaceResultEnum.PARAM_FAIL,version);
|
|
|
+ Integer parentId = userService.getParentIdById(id);
|
|
|
+ if (userDTO.getRole() == 1 || Objects.equals(userDTO.getId(),parentId)) {
|
|
|
+ UserDTO dto = new UserDTO();
|
|
|
+ dto.setId(id);
|
|
|
+ dto.setPrivilegeList(authIds);
|
|
|
+ userService.updateUserAuth(dto);
|
|
|
+ } else {
|
|
|
+ return toolUtils.response(InterfaceResultEnum.PERMISSION_DENIED,version);
|
|
|
+ }
|
|
|
+ return toolUtils.response(InterfaceResultEnum.OPERATION_SUCCESS,version);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 修改用户区域权限
|
|
|
+ * @param request 子账号id
|
|
|
+ * @return 修改用户权限
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/changeArea", method = RequestMethod.POST)
|
|
|
+ public BaseResult<?> changeArea(HttpServletRequest request) {
|
|
|
+ Integer version = (Integer) toolUtils.getRequestContent(request,"version",1);
|
|
|
+ Integer id = (Integer) toolUtils.getRequestContent(request,"id",1);
|
|
|
+ String areaIds = (String) toolUtils.getRequestContent(request,"areaIds",2);
|
|
|
+ String username = (String) toolUtils.getRequestContent(request,"username",2);
|
|
|
+ if (username.length() == 0 || id == 0)
|
|
|
+ return toolUtils.response(InterfaceResultEnum.LACK_PARAM_ERROR,version);
|
|
|
+ UserDTO userDTO = userService.queryUserIdByUsername(username);
|
|
|
+ if (userDTO == null) return toolUtils.response(InterfaceResultEnum.PARAM_FAIL,version);
|
|
|
+ Integer parentId = userService.getParentIdById(id);
|
|
|
+ if (userDTO.getRole() == 1 || Objects.equals(userDTO.getId(),parentId)) {
|
|
|
+ UserDTO dto = new UserDTO();
|
|
|
+ dto.setId(id);
|
|
|
+ dto.setZoneList(areaIds);
|
|
|
+ userService.updateUserArea(dto);
|
|
|
+ } else {
|
|
|
+ return toolUtils.response(InterfaceResultEnum.PERMISSION_DENIED,version);
|
|
|
+ }
|
|
|
+ return toolUtils.response(InterfaceResultEnum.OPERATION_SUCCESS,version);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 单位下拉列表
|
|
|
+ * @param request 用户名
|
|
|
+ * @return 单位下拉列表
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/companyList", method = RequestMethod.POST)
|
|
|
+ public BaseResult<?> companyList(HttpServletRequest request) {
|
|
|
+ Integer version = (Integer) toolUtils.getRequestContent(request,"version",1);
|
|
|
+ String company = (String) toolUtils.getRequestContent(request,"company",2);
|
|
|
+ String username = (String) toolUtils.getRequestContent(request,"username",2);
|
|
|
+ if (username.length() == 0)
|
|
|
+ return toolUtils.response(InterfaceResultEnum.LACK_PARAM_ERROR,version);
|
|
|
+ UserDTO userDTO = userService.queryUserIdByUsername(username);
|
|
|
+ if (userDTO == null) return toolUtils.response(InterfaceResultEnum.PARAM_FAIL,version);
|
|
|
+ List<CompanyDTO> companyList;
|
|
|
+ CompanyVO companyVO = new CompanyVO();
|
|
|
+ companyVO.setUserid(userDTO.getId());
|
|
|
+ companyVO.setCompany(company);
|
|
|
+ if (userDTO.getRole() == 1) {
|
|
|
+ companyList = companyService.getAllCompanyList(companyVO);
|
|
|
+ } else {
|
|
|
+ companyList = companyService.getCompanyList(companyVO);
|
|
|
+ }
|
|
|
+ CompanyVO vo = new CompanyVO();
|
|
|
+ vo.setList(companyList);
|
|
|
+ return toolUtils.response(InterfaceResultEnum.OPERATION_SUCCESS,version,vo);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 添加单位
|
|
|
+ * @param request 单位名
|
|
|
+ * @return 更新单位数据
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/saveCompany", method = RequestMethod.POST)
|
|
|
+ public BaseResult<?> saveCompany(HttpServletRequest request) {
|
|
|
+ Integer version = (Integer) toolUtils.getRequestContent(request,"version",1);
|
|
|
+ String company = (String) toolUtils.getRequestContent(request,"company",2);
|
|
|
+ String username = (String) toolUtils.getRequestContent(request,"username",2);
|
|
|
+ if (username.length() == 0)
|
|
|
+ return toolUtils.response(InterfaceResultEnum.LACK_PARAM_ERROR,version);
|
|
|
+ if (company.length() == 0)
|
|
|
+ return toolUtils.response(InterfaceResultEnum.LACK_NEED_PARAM,version);
|
|
|
+ UserDTO userDTO = userService.queryUserIdByUsername(username);
|
|
|
+ if (userDTO == null) return toolUtils.response(InterfaceResultEnum.PARAM_FAIL,version);
|
|
|
+ long l = System.currentTimeMillis();
|
|
|
+ SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
+ String format = simpleDateFormat.format(l);
|
|
|
+ CompanyDTO companyDTO = new CompanyDTO();
|
|
|
+ companyDTO.setUserid(userDTO.getId());
|
|
|
+ companyDTO.setCreateTime(format);
|
|
|
+ companyDTO.setName(company);
|
|
|
+ companyService.addCompanyData(companyDTO);
|
|
|
+ Integer id = companyDTO.getId();
|
|
|
+ CompanyVO companyVO = new CompanyVO();
|
|
|
+ companyVO.setId(id);
|
|
|
+ return toolUtils.response(InterfaceResultEnum.OPERATION_SUCCESS,version,companyVO);
|
|
|
+ }
|
|
|
}
|