<selectid="getUmsBrowses"resultType="com.lino.entity.UmsBrowse">
select
DATE_FORMAT(ubs.create_time,'%Y-%m-%d') as create_time,
ubs.id,
ubs.product_id as productId,
ppt.product_name as productName,
ppt.cover as productCover,
ppt.lowest_price as productLowestPrice,
ppt.subtitle as productSubtitle,
ppt.label as productLabel,
ppt.brand as productBrand,
ppt.sale as productSale
from ums_browse ubs
LEFT JOIN pms_product ppt on ubs.product_id = ppt.id
where ppt.deleted = 0
and ppt.`status` = 0
and ubs.member_id = #{memberId}
and DATE_SUB(CURDATE(),INTERVAL 7 DAY) <= date(ubs.create_time)
GROUP BY ubs.product_id,date(ubs.create_time) ORDER BY ubs.create_time desc
</select>```
```java