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;

/**
 * 项目名: yhlxj2
 * 文件名: WholesaleUserRequirementView
 * 创建者: JavaZou
 * 创建时间:2024/9/10 11:23
 */
@Getter
@Setter
@SearchBean(tables = "form_fields_data fd",
		where = "promotion_id = 4",
		groupBy = "user_id",
		orderBy = "max(fd.id) desc")
public class WholesaleUserRequirementView {
	@DbField("fd.user_id")
	private Long userId;

	@DbField("select nickname from user where id = fd.user_id")
	private String nickname;

	@DbField("GROUP_CONCAT(fd.content SEPARATOR '|')")
	private String content;

	@DbIgnore
	private String num;

	@DbIgnore
	private String source;

	@DbIgnore
	private Integer total;
}
