Promotion.java 5.73 KB
package com.diligrp.mobsite.man.domain;

import java.io.Serializable;
import com.diligrp.website.util.domain.BaseDomain;
import java.util.*;
import java.sql.Timestamp;


/**
 * <B>Description</B>  <br />
 * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br />
 * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br />
 * <B>Company</B> 地利集团
 * @createTime 2014-9-24 16:53:43
 * @author template
 */
public class Promotion extends BaseDomain {

    public static final Integer DEVICE_TYPE_ANDROID = 1;
    public static final Integer DEVICE_TYPE_IOS = 2;
    public static final Integer DEVICE_TYPE_ALL = 3;
    public static final Integer SEND_TYPE_NOW = 1;
    public static final Integer SEND_TYPE_SCHEDULE  = 2;
    public static final Integer SEND_FLAG_SUCCESS = 1;
    public static final Integer SEND_FLAG_FAILURE = 2;

    /**
     * 市场id
     */
    private Long marketId;
    /**
     * 市场名称
     */
    private String marketName;
    /**
     * 标题
     */
    private String title;
    /**
     * 消息内容
     */
    private String content;
    /**
     * Android:1,Ios:2,所有设备:3
     */
    private Integer deviceType;
    /**
     * 所有人:1,个人:2
     */
    private Integer receiveCrowd;
    /**
     * 立即发送:1,指定时间发送:2
     */
    private Integer sendType;
    /**
     * 发送时间
     */
    private Timestamp sendTime;
    /**
     * 直接打开应用:1,打开分类搜索列表:2,打开商品详情页:3,打开店铺页:4
     */
    private Integer openType;
    /**
     * 自定义打开页面url或者列表id
     */
    private String openUrl;
    /**
     * 发送成功:1,失败:2
     */
    private Integer sendFlag;
    /**
     * 创建人id
     */
    private Long creatorId;
    /**
     * 发送ID
     */
    private String sendId;

    /**
     * 界面属性
     */
    private List<Long> marketIds;
    private List<Integer> deviceTypes;
    private String sendTimeString;


    public String getSendId() {
        return sendId;
    }

    public void setSendId(String sendId) {
        this.sendId = sendId;
    }

    public String getSendTimeString() {
        return sendTimeString;
    }

    public void setSendTimeString(String sendTimeString) {
        this.sendTimeString = sendTimeString;
    }

    public List<Integer> getDeviceTypes() {
        return deviceTypes;
    }

    public void setDeviceTypes(List<Integer> deviceTypes) {
        this.deviceTypes = deviceTypes;
    }

    public List<Long> getMarketIds() {
        return marketIds;
    }

    public void setMarketIds(List<Long> marketIds) {
        this.marketIds = marketIds;
    }

    public String getMarketName() {
        return marketName;
    }

    public void setMarketName(String marketName) {
        this.marketName = marketName;
    }

    public void setMarketId (Long marketId){
        this.marketId = marketId;
    }
    public Long getMarketId(){
        return this.marketId;
    }

    public void setTitle (String title){
        this.title = title;
    }
    public String getTitle(){
        return this.title;
    }

    public void setContent (String content){
        this.content = content;
    }
    public String getContent(){
        return this.content;
    }

    public void setDeviceType (Integer deviceType){
        this.deviceType = deviceType;
    }
    public Integer getDeviceType(){
        return this.deviceType;
    }

    public void setReceiveCrowd (Integer receiveCrowd){
        this.receiveCrowd = receiveCrowd;
    }
    public Integer getReceiveCrowd(){
        return this.receiveCrowd;
    }

    public void setSendType (Integer sendType){
        this.sendType = sendType;
    }
    public Integer getSendType(){
        return this.sendType;
    }

    public void setSendTime (Timestamp sendTime){
        this.sendTime = sendTime;
    }
    public Timestamp getSendTime(){
        return this.sendTime;
    }

    public void setOpenType (Integer openType){
        this.openType = openType;
    }
    public Integer getOpenType(){
        return this.openType;
    }

    public void setOpenUrl (String openUrl){
        this.openUrl = openUrl;
    }
    public String getOpenUrl(){
        return this.openUrl;
    }

    public void setSendFlag (Integer sendFlag){
        this.sendFlag = sendFlag;
    }
    public Integer getSendFlag(){
        return this.sendFlag;
    }

    public void setCreatorId (Long creatorId){
        this.creatorId = creatorId;
    }
    public Long getCreatorId(){
        return this.creatorId;
    }


    public String toString(){
        StringBuffer sb = new StringBuffer();
        sb.append("Promotion [");
        sb.append("id = ");
        sb.append(id);
        sb.append(", marketId = ");
        sb.append(marketId);
        sb.append(", title = ");
        sb.append(title);
        sb.append(", content = ");
        sb.append(content);
        sb.append(", deviceType = ");
        sb.append(deviceType);
        sb.append(", receiveCrowd = ");
        sb.append(receiveCrowd);
        sb.append(", sendType = ");
        sb.append(sendType);
        sb.append(", sendTime = ");
        sb.append(sendTime);
        sb.append(", openType = ");
        sb.append(openType);
        sb.append(", openUrl = ");
        sb.append(openUrl);
        sb.append(", sendFlag = ");
        sb.append(sendFlag);
        sb.append(", creatorId = ");
        sb.append(creatorId);
        sb.append(", sendId = ");
        sb.append(sendId);
        sb.append(", yn = ");
        sb.append(yn);
        sb.append(", created = ");
        sb.append(created);
        sb.append(", modified = ");
        sb.append(modified);
        sb.append("]");
        return sb.toString();
    }
}