我想分配一个在查询期间由@Transient注释的值,它如何有效? 道层语句如下:
@Query(nativeQuery = true, value = "SELECT g.*,pr_price as costPrice,111 as restDays FROM trade$goods g LEFT JOIN v$product$private on pr_id=go_productid WHERE go_id IN (SELECT max(go_id) from trade$goods WHERE go_productid in :productIds GROUP BY go_productid)")
List<Goods> findGoods(@Param("productIds") Set<Long> productIds);
请忽略另一个,我想将v $ product $ private中的pr_price分配给trade $ goods中的costPrice。我该如何实现?