Cnd cnd = Cnd.where("status", "=", DelStatus.status_Y);
if (StringUtils.isNotBlank(bean.getResident_name()))
cnd.and("resident_name", "like", "%"+ bean.getResident_name() +"%");
…………
if (StringUtils.isNotBlank(bean.getOff_status())) //注销
cnd.and("off_status", "=", bean.getOff_status());
// 上方很多条件后,如何拼接自定义的排序sql?
自定义的排序sql如:order by to_number(translate(building, '0123456789' || building, '0123456789')) ASC,nlssort(building,'NLS_SORT=SCHINESE_PINYIN_M')