Commit 846f63ffe31ac38edb41dd40ca3eb8525fa9130e
Merge branch '20220303' into 'master'
20220303 See merge request huang/thingsboard3.3.2!54
Showing
2 changed files
with
2 additions
and
2 deletions
@@ -43,7 +43,7 @@ import static org.thingsboard.server.common.data.yunteng.constant.QueryConstant. | @@ -43,7 +43,7 @@ import static org.thingsboard.server.common.data.yunteng.constant.QueryConstant. | ||
43 | 43 | ||
44 | @RestController | 44 | @RestController |
45 | @RequiredArgsConstructor | 45 | @RequiredArgsConstructor |
46 | -@PreAuthorize("hasAnyAuthority('TENANT_ADMIN')") | 46 | +@PreAuthorize("hasAnyAuthority('TENANT_ADMIN', 'CUSTOMER_USER')") |
47 | @RequestMapping("api/yt/convert") | 47 | @RequestMapping("api/yt/convert") |
48 | @Api(tags = {"数据流转控制器"}) | 48 | @Api(tags = {"数据流转控制器"}) |
49 | public class YtConvertDataToController extends BaseController { | 49 | public class YtConvertDataToController extends BaseController { |
@@ -154,7 +154,7 @@ public class YtUserServiceImpl extends AbstractBaseService<UserMapper, User> | @@ -154,7 +154,7 @@ public class YtUserServiceImpl extends AbstractBaseService<UserMapper, User> | ||
154 | if (null != userDTO.getId()) { | 154 | if (null != userDTO.getId()) { |
155 | User user = baseMapper.selectById(userDTO.getId()); | 155 | User user = baseMapper.selectById(userDTO.getId()); |
156 | if (user.getPhoneNumber().equals(userDTO.getPhoneNumber()) | 156 | if (user.getPhoneNumber().equals(userDTO.getPhoneNumber()) |
157 | - && user.getEmail().equals(userDTO.getEmail())) { | 157 | + && user.getEmail()!=null && user.getEmail().equals(userDTO.getEmail())) { |
158 | needCheck = false; | 158 | needCheck = false; |
159 | } | 159 | } |
160 | } | 160 | } |