|
@@ -354,7 +354,7 @@ public class UserController extends BaseController {
|
|
|
UserEntity userInfo = this.userService.findPhoneAndInstitutionNoAndRoleType(userEntity.getPhone(), userEntity.getInstitutionNo(),userEntity.getRoleType());
|
|
|
if (userInfo == null) {
|
|
|
String idCardStr = userEntity.getPhone();
|
|
|
- userEntity.setPassword(DigestUtils.md5DigestAsHex(idCardStr.substring(12).getBytes(StandardCharsets.UTF_8)));
|
|
|
+ userEntity.setPassword(DigestUtils.md5DigestAsHex(idCardStr.substring(12).getBytes()));
|
|
|
userEntity.setUserStatus(Constant.USER_STATUS_NORMAL);
|
|
|
userEntity.setRoleType(UserRole.COMMON.getType());
|
|
|
userEntity.setBirthday(idCardStr.substring(6,10)+"-"+idCardStr.substring(10,12)+"-"+idCardStr.substring(12,14));
|