|
@@ -11,6 +11,7 @@ import com.diagbot.dto.RespDTO;
|
|
|
import com.diagbot.dto.UserAndProdutUDTO;
|
|
|
import com.diagbot.dto.UserInfoDTO;
|
|
|
import com.diagbot.dto.UserInfoExportDTO;
|
|
|
+import com.diagbot.dto.UserLoginDTO;
|
|
|
import com.diagbot.dto.UserOrgDTO;
|
|
|
import com.diagbot.entity.JWT;
|
|
|
import com.diagbot.entity.Organization;
|
|
@@ -35,6 +36,7 @@ import com.diagbot.util.ListUtil;
|
|
|
import com.diagbot.util.RegexValidateUtil;
|
|
|
import com.diagbot.util.StringUtil;
|
|
|
import com.diagbot.util.UserUtils;
|
|
|
+import com.diagbot.vo.BaseIdVO;
|
|
|
import com.diagbot.vo.ImgVerVerVO;
|
|
|
import com.diagbot.vo.OrganizationVO;
|
|
|
import com.diagbot.vo.UserAndOrganizationVO;
|
|
@@ -89,7 +91,7 @@ public class UserFacade extends UserServiceImpl {
|
|
|
* @param userSaveVO 参数
|
|
|
* @return 用户信息
|
|
|
*/
|
|
|
- public User createUser(UserSaveVO userSaveVO) {
|
|
|
+ public Boolean createUser(UserSaveVO userSaveVO) {
|
|
|
User user = new User();
|
|
|
BeanUtil.copyProperties(userSaveVO, user);
|
|
|
user.setGmtCreate(new Date());
|
|
@@ -119,7 +121,7 @@ public class UserFacade extends UserServiceImpl {
|
|
|
|
|
|
//用户认证业务
|
|
|
doUserAuthentication(userSaveVO, user);
|
|
|
- return user;
|
|
|
+ return true;
|
|
|
}
|
|
|
|
|
|
|
|
@@ -245,7 +247,9 @@ public class UserFacade extends UserServiceImpl {
|
|
|
}
|
|
|
LoginDTO loginDTO = new LoginDTO();
|
|
|
//添加用户
|
|
|
- loginDTO.setUser(user);
|
|
|
+ UserLoginDTO userLoginDTO = new UserLoginDTO();
|
|
|
+ BeanUtil.copyProperties(user, userLoginDTO);
|
|
|
+ loginDTO.setUserLoginDTO(userLoginDTO);
|
|
|
//添加token
|
|
|
loginDTO.setToken(jwt.getAccess_token());
|
|
|
//添加机构信息
|
|
@@ -682,9 +686,9 @@ public class UserFacade extends UserServiceImpl {
|
|
|
* @param userId
|
|
|
* @return 删除用户信息和机构信息
|
|
|
*/
|
|
|
- public RespDTO<Boolean> updateDeleteds(String userId) {
|
|
|
+ public RespDTO<Boolean> updateDeleteds(BaseIdVO baseIdVO) {
|
|
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
|
- map.put("userId", userId);
|
|
|
+ map.put("userId", baseIdVO.getId());
|
|
|
map.put("modifier", UserUtils.getCurrentPrincipleID());
|
|
|
map.put("gmtModified", DateUtil.now());
|
|
|
boolean res = updateDeleted(map);
|