package com.cyksj.model.views;

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

import java.math.BigDecimal;

/**
 * 项目名: yhlxj2
 * 文件名: RefundOrderDonServiceDataView
 * 创建者: JavaZou
 * 创建时间:2024/1/8 17:03
 */
@Getter
@Setter
@SearchBean(tables = "refund_order_don rd inner join order_don o on o.id = rd.order_id :time:",
		where = "rd.refund_method not in ('EX_CODE','balance')",
		groupBy = "rd.operator")
public class RefundOrderDonServiceDataView {
	@DbField("rd.operator")
	private String operator;

	@DbField("count(distinct rd.order_id)")
	private Integer orders;

	@DbField("sum(rd.refund_fee)/100")
	private BigDecimal refundMoney;

	/**
	 * 退款最多的产品
	 */
	@DbIgnore
	private String goodsName;
}
