|
@@ -24,7 +24,6 @@ import com.diagbot.util.GuidUtil;
|
|
|
import com.diagbot.util.UserUtils;
|
|
|
import com.diagbot.vo.ProductServiceSaveVO;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.util.Date;
|
|
@@ -97,7 +96,7 @@ public class ProductServiceFacade extends ProductServiceServiceImpl {
|
|
|
if (serviceInfo == null || serviceInfo.getIsDeleted().equals(IsDeleteEnum.Y.getKey())) {
|
|
|
throw new CommonException(CommonErrorCode.NOT_EXISTS,
|
|
|
"找不到服务端【" + serviceInfo.getName() + "】");
|
|
|
- } else if (serviceInfo.getUserId() != userId) {
|
|
|
+ } else if (serviceInfo.getUserId().longValue() != userId) {
|
|
|
throw new CommonException(CommonErrorCode.SERVER_IS_ERROR,
|
|
|
"当前登录用户没有关联服务端【" + serviceInfo.getName() + "】");
|
|
|
}
|