我在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_name
,p_cnum
和p_short_name
是输入值?)