How to use if else in where condition in jpql

后端 未结 0 644
无人共我
无人共我 2021-01-31 03:17

I have a table with 3 column A, B, C. Now I want filter table with a param. If param is null then show all, if param = A then filter table by A, if param = B then filter table b

相关标签:
回答
  • 消灭零回复
提交回复
热议问题