1. 程式人生 > >spring boot中使用註解實現模糊查詢

spring boot中使用註解實現模糊查詢

    //模糊查詢(根據姓名和登記日期模糊查詢所有資料)
    @Select({"select * from putong_rencai where concat(name,dengji_time) like '%' || 'search_name' || '%' "})
    public List<PuTongUser> selectMohu(@Param("search_name") String search_name);