|
@@ -11,6 +11,7 @@ import com.diagbot.entity.LantoneProduct;
|
|
|
import com.diagbot.entity.OpenedProducts;
|
|
|
import com.diagbot.entity.ProductService;
|
|
|
import com.diagbot.entity.ServiceInfo;
|
|
|
+import com.diagbot.entity.User;
|
|
|
import com.diagbot.entity.UserRenewals;
|
|
|
import com.diagbot.enums.AccessTypeEnum;
|
|
|
import com.diagbot.enums.IsDeleteEnum;
|
|
@@ -201,6 +202,11 @@ public class OpenedProductsFacade extends OpenedProductsServiceImpl {
|
|
|
openedProducts.setCreator(UserUtils.getCurrentPrincipleID());
|
|
|
openedProducts.setGmtCreate(DateUtil.now());
|
|
|
openedProducts.setServiceStatus(startAndendByUserIdVO.getServiceStatus());
|
|
|
+ RespDTO<User> userData = userServiceClient.getUserAuthStatus(startAndendByUserIdVO.getUserId());
|
|
|
+ User user = userData.data;
|
|
|
+ if(user==null){
|
|
|
+ return RespDTO.onError("该用户已不存在");
|
|
|
+ }
|
|
|
boolean res = startAndendByuserId(openedProducts);
|
|
|
if (!res) {
|
|
|
throw new CommonException(CommonErrorCode.UPDATE_INFO_FAIL);
|