package com.cyksj.model.views;

import com.ejlchina.searcher.bean.DbField;
import com.ejlchina.searcher.bean.SearchBean;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/*
 *项目名: netflix
 *文件名: ChannelCommonView
 *创建者: JavaZou
 *创建时间:2023/3/31 16:40
 */
@Getter
@Setter
@SearchBean(tables = "order_don od",
		where = ":type: and  od.status not in ('noPayment','close','refund')"
		, groupBy = "date_format(od.created_time,'%Y-%m-%d')")
public class ChannelCommonView {

	/**
	 * 当前日期订单金额
	 */
	@DbField("cast(sum(od.money)/100 as decimal(10,2))")
	private BigDecimal money;

	/**
	 * 日期
	 */
	@DbField("date_format(od.created_time,'%Y-%m-%d')")
	private String date;
}
