Spring Data Solr,使用IS_NULL和OR查询

时间:2016-09-02 09:34:22

标签: spring oracle solr

我在Oracle中有一个查询:

WHERE
  (p_name IS NULL OR cp.name LIKE '%' || UPPER (p_name) || '%')
AND
  (p_cnum IS NULL OR CP.WSS_CUSTNUMBER LIKE p_cnum || '%')
AND
  (p_short_name IS NULL OR CP.SHORT_NAME LIKE '%' || UPPER (p_short_name) || '%')
AND
  ROWNUM < 1000
AND
  RR.ROLE_ID IS NOT NULL
ORDER BY name;

如何将此查询转换为Spring Data Solr(其中p_namep_cnump_short_name是输入值?)

0 个答案:

没有答案