小编She*_*een的帖子

@Mapping @Mapper Error No source parameter(s) exists

I have been shifting my project from spring to Spring Boot and introducing embedded tomcat there were some adaptations i have to do Only issue i am facing in my Old project i have Mapper interface.

and when i compile project it start giving error

Error:(12, 5) java: No property named "schoolId" exists in source parameter(s).

I have search alot about it some said lombok dependency placement in pom i tried placing it before and after map-struct dependency but error …

java mapping spring-boot mapstruct

4
推荐指数
1
解决办法
8374
查看次数

在自定义查询中查询数据时格式化 event_date 和 event_timestamp 大查询

嗨,以下是我的查询,用于获取大量数据,query想知道我们如何格式化datetime stamp

SELECT
  *
FROM (
  SELECT
    (
    SELECT
      x.value
    FROM
      UNNEST(user_properties) x
    WHERE
      x.key='restaurantName'
      AND x.value IS NOT NULL).string_value AS restaurantName,
    event_date AS date,
    event_timestamp AS time,
    event_name AS Event,
    (
    SELECT
      x.value
    FROM
      UNNEST(user_properties) x
    WHERE
      x.key='restaurantId'
      AND x.value IS NOT NULL).string_value AS restaurantID,
    (
    SELECT
      x.value
    FROM
      UNNEST(user_properties) x
    WHERE
      x.key='user_id'
      AND x.value IS NOT NULL).string_value AS user
  FROM
    `analytics.events_*`
  WHERE
    event_name = "OrderSummary"
    AND app_info.id = "app_Id"
  ORDER BY
    event_timestamp ASC) …
Run Code Online (Sandbox Code Playgroud)

google-analytics google-bigquery firebase-analytics

2
推荐指数
2
解决办法
4338
查看次数