mapper中like查询的写法
@Select(value = "select * from tt_record where barcode like CONCAT('%',#{barcode},'%');") List<RecordEntity> getListByBarcode( @Param("barcode") String barcode);起因:把原来的wrapper写法改变,把sql写在mapper中去管理....
原创
2021-07-08 16:09:12 ·
4299 阅读 ·
0 评论