Activity.java 6.0 KB
package com.w1hd.zzhnc.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.google.common.collect.Lists;

public class Activity implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date beginTime;// 活动开始时间

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date endTime;// 活动结束时间
	
	private int status;// 活动状态
	private BigDecimal planMny;// 发放红包预算
	private BigDecimal currentMny;
	private String city;// 红包活动范围
	private String keyword;// 触发抽奖关键字(多个关键字用|隔开)
	private String unLotteryReply;// 粉丝未中奖回复文字
	private String finishReply;// 活动结束后回复文字
	private String lotteryTitle;// 中奖后推送的红包链接标题
	private String lotterySubTitle;// 中奖后推送的红包链接副标题
	private String noChanceReply;
	private Integer turn;// 活动轮次
	private String replyWait;// 抽奖等待语
	private String replyWelcome; // 第一次进入客服面板时的红包活动提示语
	private String replyFailed2; // 第2次未中奖的提示语
	private String replySucceed; // 中奖提示语
	private String badWordsReply; // 不是赞美万小二时的回复

	private Prize p1;
	private Prize p2;
	private Prize p3;
	private Prize p4;
	private Prize p5;
	private Prize p6;
	private Prize p7;
	private Prize p8;
	
	public Activity() {
		super();
	}

	public Activity(Date beginTime, Date endTime, Integer status, BigDecimal planMny, String city, String keyword,
			String unLotteryReply, String finishReply, String lotteryTitle, String lotterySubTitle, Integer turn,
			String noChanceReply, String replyWait, String replyWelcome, String replyFailed2, String replySucceed,
			String badWordsReply) {
		this.beginTime = beginTime;
		this.endTime = endTime;
		this.status = status;
		this.planMny = planMny;
		this.city = city;
		this.keyword = keyword;
		this.unLotteryReply = unLotteryReply;
		this.finishReply = finishReply;
		this.lotteryTitle = lotteryTitle;
		this.lotterySubTitle = lotterySubTitle;
		this.turn = turn;
		this.noChanceReply = noChanceReply;
		this.replyWait = replyWait;
		this.replyWelcome = replyWelcome;
		this.replyFailed2 = replyFailed2;
		this.replySucceed = replySucceed;
		this.badWordsReply = badWordsReply;
	}

	public Integer getTurn() {
		return turn;
	}

	public void setTurn(Integer turn) {
		this.turn = turn;
	}

	public Date getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}

	public BigDecimal getCurrentMny() {
		if (currentMny == null)
			return new BigDecimal(0);
		return currentMny;
	}

	public void setCurrentMny(BigDecimal currentMny) {
		this.currentMny = currentMny;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public BigDecimal getPlanMny() {
		return planMny;
	}

	public void setPlanMny(BigDecimal planMny) {
		this.planMny = planMny;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getKeyword() {
		return keyword;
	}

	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}

	public String getUnLotteryReply() {
		return unLotteryReply;
	}

	public Prize getP1() {
		return p1;
	}

	public void setP1(Prize p1) {
		this.p1 = p1;
		p1.setId(1);
	}

	public Prize getP2() {
		return p2;
	}

	public void setP2(Prize p2) {
		this.p2 = p2;
		p2.setId(2);
	}

	public Prize getP3() {
		return p3;
	}

	public void setP3(Prize p3) {
		this.p3 = p3;
		p3.setId(3);
	}

	public Prize getP4() {
		return p4;
	}

	public void setP4(Prize p4) {
		this.p4 = p4;
		p4.setId(4);
	}

	

	public void setUnLotteryReply(String unLotteryReply) {
		this.unLotteryReply = unLotteryReply;
	}

	public String getFinishReply() {
		return finishReply;
	}

	public void setFinishReply(String finishReply) {
		this.finishReply = finishReply;
	}

	public String getLotteryTitle() {
		return lotteryTitle;
	}

	public void setLotteryTitle(String lotteryTitle) {
		this.lotteryTitle = lotteryTitle;
	}

	public String getLotterySubTitle() {
		return lotterySubTitle;
	}

	public void setLotterySubTitle(String lotterySubTitle) {
		this.lotterySubTitle = lotterySubTitle;
	}

	public String getNoChanceReply() {
		return noChanceReply;
	}

	public void setNoChanceReply(String noChanceReply) {
		this.noChanceReply = noChanceReply;
	}

	public String getReplyWait() {
		return replyWait;
	}

	public void setReplyWait(String replyWait) {
		this.replyWait = replyWait;
	}

	public String getReplyWelcome() {
		return replyWelcome;
	}

	public void setReplyWelcome(String replyWelcome) {
		this.replyWelcome = replyWelcome;
	}

	public String getReplyFailed2() {
		return replyFailed2;
	}

	public void setReplyFailed2(String replyFailed2) {
		this.replyFailed2 = replyFailed2;
	}

	public String getReplySucceed() {
		return replySucceed;
	}

	public void setReplySucceed(String replySucceed) {
		this.replySucceed = replySucceed;
	}

	public String getBadWordsReply() {
		return badWordsReply;
	}

	public void setBadWordsReply(String badWordsReply) {
		this.badWordsReply = badWordsReply;
	}

	public Prize getP5() {
		return p5;
	}

	public void setP5(Prize p5) {
		this.p5 = p5;
	}

	public Prize getP6() {
		return p6;
	}

	public void setP6(Prize p6) {
		this.p6 = p6;
	}

	public Prize getP7() {
		return p7;
	}

	public void setP7(Prize p7) {
		this.p7 = p7;
	}

	public Prize getP8() {
		return p8;
	}

	public void setP8(Prize p8) {
		this.p8 = p8;
	}

	
}