@@ -131,7 +131,7 @@ public class TbCfStationItem {
...
@@ -131,7 +131,7 @@ public class TbCfStationItem {
privateTbCfExpressTemplateexpress;
privateTbCfExpressTemplateexpress;
@Formula(value="(SELECT IFNULL(CEILING(SUM((a.item_score+a.service_score+a.logistics_score+a.price_score)/4)/COUNT(a.item_id)),5) FROM tb_cf_item_comment a WHERE a.item_id=item_id)")
@Formula(value="(SELECT IFNULL(CEILING(SUM((a.item_score+a.service_score+a.logistics_score+a.price_score)/4)/COUNT(a.item_id)),5) FROM tb_cf_item_comment a WHERE a.item_id=item_id)")
@Query(value="select a.* from tb_cf_station_item a where a.item_name LIKE CONCAT('%',?1,'%') or MATCH(a.item_name, a.item_brief) AGAINST(CONCAT(?1,'*') IN BOOLEAN MODE) order by a.item_top desc,a.sort asc,a.create_time desc limit 50",nativeQuery=true)
@Query(value="select a.item_name as itemName,a.item_brief as itemBrief from tb_cf_station_item a where a.item_name LIKE CONCAT('%',?1,'%') or MATCH(a.item_name, a.item_brief) AGAINST(CONCAT(?1,'*') IN BOOLEAN MODE) order by a.item_top desc,a.sort asc,a.create_time desc limit 50",nativeQuery=true)