Browse Source

model更新

Signed-off-by: jiapeng.dong <jiapeng.dong@cloudcross.com>
jiapeng.dong 9 years ago
parent
commit
4f3a87f8f9
57 changed files with 6546 additions and 39 deletions
  1. 171 0
      src/main/java/com/cloudcross/ssp/model/Account.java
  2. 33 0
      src/main/java/com/cloudcross/ssp/model/AccountResources.java
  3. 77 0
      src/main/java/com/cloudcross/ssp/model/Acls.java
  4. 335 0
      src/main/java/com/cloudcross/ssp/model/AdGroup.java
  5. 44 0
      src/main/java/com/cloudcross/ssp/model/AdGroupPlace.java
  6. 94 0
      src/main/java/com/cloudcross/ssp/model/AdGroupSchedule.java
  7. 43 0
      src/main/java/com/cloudcross/ssp/model/AdGroupZone.java
  8. 119 0
      src/main/java/com/cloudcross/ssp/model/AdvAgent.java
  9. 188 0
      src/main/java/com/cloudcross/ssp/model/AdvBalance.java
  10. 230 0
      src/main/java/com/cloudcross/ssp/model/Advertiser.java
  11. 178 0
      src/main/java/com/cloudcross/ssp/model/Audit.java
  12. 138 0
      src/main/java/com/cloudcross/ssp/model/AuditBanner.java
  13. 147 0
      src/main/java/com/cloudcross/ssp/model/Banner.java
  14. 118 0
      src/main/java/com/cloudcross/ssp/model/BannerTemplate.java
  15. 245 0
      src/main/java/com/cloudcross/ssp/model/Campaign.java
  16. 184 0
      src/main/java/com/cloudcross/ssp/model/ClientAccount.java
  17. 109 0
      src/main/java/com/cloudcross/ssp/model/CodeClass.java
  18. 106 0
      src/main/java/com/cloudcross/ssp/model/CodeConvert.java
  19. 78 0
      src/main/java/com/cloudcross/ssp/model/CodeSite.java
  20. 51 0
      src/main/java/com/cloudcross/ssp/model/DayParting.java
  21. 663 0
      src/main/java/com/cloudcross/ssp/model/DeliverAnalysis.java
  22. 52 0
      src/main/java/com/cloudcross/ssp/model/Dimension.java
  23. 60 0
      src/main/java/com/cloudcross/ssp/model/Direct.java
  24. 177 0
      src/main/java/com/cloudcross/ssp/model/Finance.java
  25. 39 0
      src/main/java/com/cloudcross/ssp/model/Industry.java
  26. 128 0
      src/main/java/com/cloudcross/ssp/model/Location.java
  27. 137 0
      src/main/java/com/cloudcross/ssp/model/Log.java
  28. 59 0
      src/main/java/com/cloudcross/ssp/model/Message.java
  29. 31 0
      src/main/java/com/cloudcross/ssp/model/MessageRead.java
  30. 131 0
      src/main/java/com/cloudcross/ssp/model/Operator.java
  31. 109 0
      src/main/java/com/cloudcross/ssp/model/OperatorBalance.java
  32. 263 0
      src/main/java/com/cloudcross/ssp/model/OperatorReport.java
  33. 163 0
      src/main/java/com/cloudcross/ssp/model/Order.java
  34. 45 0
      src/main/java/com/cloudcross/ssp/model/Params.java
  35. 29 0
      src/main/java/com/cloudcross/ssp/model/Place.java
  36. 61 0
      src/main/java/com/cloudcross/ssp/model/PlaceOperator.java
  37. 107 0
      src/main/java/com/cloudcross/ssp/model/Resources.java
  38. 20 0
      src/main/java/com/cloudcross/ssp/model/ResourcesRole.java
  39. 23 0
      src/main/java/com/cloudcross/ssp/model/RoleAccount.java
  40. 67 0
      src/main/java/com/cloudcross/ssp/model/Roles.java
  41. 187 0
      src/main/java/com/cloudcross/ssp/model/RptAdvertiserHour.java
  42. 166 0
      src/main/java/com/cloudcross/ssp/model/RptZone.java
  43. 132 0
      src/main/java/com/cloudcross/ssp/model/RptZoneHour.java
  44. 38 0
      src/main/java/com/cloudcross/ssp/model/Size.java
  45. 147 0
      src/main/java/com/cloudcross/ssp/model/SystemReport.java
  46. 0 9
      src/main/java/com/cloudcross/ssp/model/Test.java
  47. 138 0
      src/main/java/com/cloudcross/ssp/model/TypeReport.java
  48. 155 0
      src/main/java/com/cloudcross/ssp/model/User.java
  49. 45 0
      src/main/java/com/cloudcross/ssp/model/UserGroup.java
  50. 58 0
      src/main/java/com/cloudcross/ssp/model/UserLogin.java
  51. 147 0
      src/main/java/com/cloudcross/ssp/model/Wifi.java
  52. 176 0
      src/main/java/com/cloudcross/ssp/model/Zone.java
  53. 54 0
      src/main/java/com/cloudcross/ssp/model/ZoneDomain.java
  54. 51 0
      src/main/java/com/cloudcross/ssp/model/ZoneIndustry.java
  55. 0 12
      src/main/java/com/cloudcross/ssp/pojo/TestPojo.java
  56. 0 9
      src/main/java/com/cloudcross/ssp/service/ITestService.java
  57. 0 9
      src/main/java/com/cloudcross/ssp/service/impl/TestService.java

+ 171 - 0
src/main/java/com/cloudcross/ssp/model/Account.java

@@ -0,0 +1,171 @@
+package com.cloudcross.ssp.model;
+
+import java.util.Date;
+
+/**
+ * 账号实体表
+ */
+@SuppressWarnings("serial")
+public class Account implements java.io.Serializable {
+	
+	private int id;
+
+	private String accountName;//账号名
+	
+	private String roleName;//账号名
+
+	private String password;//密码
+
+	private String description;//说明
+	
+	private String realName;//真实姓名
+	
+	private String tel;//联系电话
+
+	private String state;//账号状态  0 表示停用  1表示启用
+
+	private Date createTime; //创建时间
+	
+	private  Integer type;//账户类型(1-云联,2-运营商,3-运营商代理,4-广告主,5-广告主代理)
+	
+	private Long operatorId;//运营商Id
+	
+	private Long agentId;//代理商Id
+	
+	private Long advertiserId;//广告主Id
+	
+	private Integer sysType;
+	
+	public Integer getSysType() {
+		return sysType;
+	}
+
+	public void setSysType(Integer sysType) {
+		this.sysType = sysType;
+	}
+
+	public String getRealName() {
+		return realName;
+	}
+
+	public void setRealName(String realName) {
+		this.realName = realName;
+	}
+
+	public String getTel() {
+		return tel;
+	}
+
+	public void setTel(String tel) {
+		this.tel = tel;
+	}
+
+	public Integer getType() {
+		return type;
+	}
+
+	public void setType(Integer type) {
+		this.type = type;
+	}
+
+	public Long getOperatorId() {
+		return operatorId;
+	}
+
+	public void setOperatorId(Long operatorId) {
+		this.operatorId = operatorId;
+	}
+
+	public Long getAgentId() {
+		return agentId;
+	}
+
+	public void setAgentId(Long agentId) {
+		this.agentId = agentId;
+	}
+
+	public Long getAdvertiserId() {
+		return advertiserId;
+	}
+
+	public void setAdvertiserId(Long advertiserId) {
+		this.advertiserId = advertiserId;
+	}
+
+
+	public int getId() {
+		return id;
+	}
+
+	public void setId(int id) {
+		this.id = id;
+	}
+
+	public String getAccountName() {
+		return accountName;
+	}
+
+	public void setAccountName(String accountName) {
+		this.accountName = accountName;
+	}
+
+	public String getPassword() {
+		return password;
+	}
+
+	public void setPassword(String password) {
+		this.password = password;
+	}
+
+	public String getState() {
+		return state;
+	}
+
+	public void setState(String state) {
+		this.state = state;
+	}
+	/**
+	 * 时间格式化
+	 * @author lanyuan
+	 * Email:mmm333zzz520@163.com
+	 * date:2014-2-17
+	 * @return
+	 */
+	public Date getCreateTime() {
+		return createTime;
+	}
+
+	public void setCreateTime(Date createTime) {
+		this.createTime = createTime;
+	}
+
+	public String getDescription() {
+		return description;
+	}
+
+	public void setDescription(String description) {
+		this.description = description;
+	}
+
+	public String getRoleName() {
+		return roleName;
+	}
+
+	public void setRoleName(String roleName) {
+		this.roleName = roleName;
+	}
+
+	@Override
+	public String toString() {
+		return "Account [id=" + id + ", accountName=" + accountName
+				+ ", roleName=" + roleName + ", password=" + password
+				+ ", description=" + description + ", realName=" + realName
+				+ ", tel=" + tel + ", state=" + state + ", createTime="
+				+ createTime + ", type=" + type + ", operatorId=" + operatorId
+				+ ", agentId=" + agentId + ", advertiserId=" + advertiserId
+				+ ", sysType=" + sysType + "]";
+	}
+
+	
+}
+

+ 33 - 0
src/main/java/com/cloudcross/ssp/model/AccountResources.java

@@ -0,0 +1,33 @@
+package com.cloudcross.ssp.model;
+
+/**
+ * 
+ * 账户直接对接权限类!
+ * 这样做权限控制上面会更灵活一点!
+ * 
+ * @author yzq
+ *
+ */
+public class AccountResources {
+	private Long accountId;
+	private Long resourceId;
+	public Long getAccountId() {
+		return accountId;
+	}
+	public void setAccountId(Long accountId) {
+		this.accountId = accountId;
+	}
+	public Long getResourceId() {
+		return resourceId;
+	}
+	public void setResourceId(Long resourceId) {
+		this.resourceId = resourceId;
+	}
+	
+	@Override
+	public String toString() {
+		return "AccountResources [accountId=" + accountId + ", resourceId="
+				+ resourceId + "]";
+	}
+}
+

+ 77 - 0
src/main/java/com/cloudcross/ssp/model/Acls.java

@@ -0,0 +1,77 @@
+package com.cloudcross.ssp.model;
+
+public class Acls {
+	private Long bannerId;
+	private String logical;
+	private Integer type;
+	private String comparison;
+	private String data;
+	private Long executionOrder;
+	private Long adGroupId;
+	
+	public Long getBannerId() {
+		return bannerId;
+	}
+
+	public void setBannerId(Long bannerId) {
+		this.bannerId = bannerId;
+	}
+
+	public String getLogical() {
+		return logical;
+	}
+
+	public void setLogical(String logical) {
+		this.logical = logical;
+	}
+
+	public Integer getType() {
+		return type;
+	}
+
+	public void setType(Integer type) {
+		this.type = type;
+	}
+
+	public String getComparison() {
+		return comparison;
+	}
+
+	public void setComparison(String comparison) {
+		this.comparison = comparison;
+	}
+
+	public String getData() {
+		return data;
+	}
+
+	public void setData(String data) {
+		this.data = data;
+	}
+
+	public Long getExecutionOrder() {
+		return executionOrder;
+	}
+
+	public void setExecutionOrder(Long executionOrder) {
+		this.executionOrder = executionOrder;
+	}
+
+	public Long getAdGroupId() {
+		return adGroupId;
+	}
+
+	public void setAdGroupId(Long adGroupId) {
+		this.adGroupId = adGroupId;
+	}
+
+	@Override
+	public String toString() {
+		return "Acls [bannerId=" + bannerId + ", logical=" + logical
+				+ ", type=" + type + ", comparison=" + comparison + ", data="
+				+ data + ", executionOrder=" + executionOrder + ", adGroupId="
+				+ adGroupId + "]";
+	}
+	
+	
+}

+ 335 - 0
src/main/java/com/cloudcross/ssp/model/AdGroup.java

@@ -0,0 +1,335 @@
+package com.cloudcross.ssp.model;
+import java.util.Date;
+
+import com.cloudcross.ssp.common.consts.Status;
+import com.cloudcross.ssp.web.widget.SelectorController.ISelector;
+
+/**
+ * 投放管理中的投放管理表
+ * @author chenyou
+ *
+ */
+public final class AdGroup implements ISelector{
+	//投放id
+	private Long id;
+	//代理商id
+	private Long agentId;
+	//广告主id
+	private Long advertiserId;
+	//订单id
+	private Long orderId;
+	//活动id
+	private Long campaignId;
+	// 投放名称
+	private String adGroupName;
+	// 开始时间
+	private Date startDate;
+	// 结束时间
+	private Date endDate;
+	// 总预算
+	private Double totalBudget;
+	//投放模式
+	private Integer mode;
+	//单价
+	private Double price;
+	// 每日预算
+	private Double dailyBudget;
+	// 曝光总上限
+	private Long maxImpression;
+	// 点击总上限
+	private Long maxClick;
+	//转换总上限
+	private Long maxConversion;
+	// 每日曝光上限
+	private Long dailyMaxImpression;
+	// 每日点击上限
+	private Long dailyMaxClick;
+	// 每日转换上限
+	private Long dailyMaxConversion;
+	//单人曝光频次类型
+	private Integer perImpressionType;
+	//单人曝光频次
+	private Long perImpression;
+	//单人点击频次类型
+	private Integer perClickType;
+	//单人点击频次
+	private Long perClick;
+	//位置
+	private String position;
+	//点击找回
+	private Integer retarget;
+	//访客投放期
+	private Long period;
+	//状态
+	private Integer status;
+	//更新时间
+	private Date updated;
+	//这个活动的创意总数
+	private Integer bannerNumber;
+	//是否全客网站
+	private Integer site;
+	
+	public Long getAgentId() {
+		return agentId;
+	}
+
+	public void setAgentId(Long agentId) {
+		this.agentId = agentId;
+	}
+
+	public Long getAdvertiserId() {
+		return advertiserId;
+	}
+
+	public void setAdvertiserId(Long advertiserId) {
+		this.advertiserId = advertiserId;
+	}
+
+	public Integer getSite() {
+		return site;
+	}
+
+	public void setSite(Integer site) {
+		this.site = site;
+	}
+
+	public Integer getMode() {
+		return mode;
+	}
+
+	public void setMode(Integer mode) {
+		this.mode = mode;
+	}
+
+	public Double getPrice() {
+		return price;
+	}
+
+	public void setPrice(Double price) {
+		this.price = price;
+	}
+
+	public String getPosition() {
+		return position;
+	}
+
+	public void setPosition(String position) {
+		this.position = position;
+	}
+
+	public Integer getRetarget() {
+		return retarget;
+	}
+
+	public void setRetarget(Integer retarget) {
+		this.retarget = retarget;
+	}
+
+	public Long getPeriod() {
+		return period;
+	}
+
+	public void setPeriod(Long period) {
+		this.period = period;
+	}
+
+	public Integer getBannerNumber() {
+		return bannerNumber;
+	}
+
+	public void setBannerNumber(Integer bannerNumber) {
+		this.bannerNumber = bannerNumber;
+	}
+
+	public Date getUpdated() {
+		return updated;
+	}
+
+	public void setUpdated(Date updated) {
+		this.updated = updated;
+	}
+
+	public Long getId() {
+		return id;
+	}
+
+	public void setId(Long id) {
+		this.id = id;
+	}
+
+	public Long getOrderId() {
+		return orderId;
+	}
+
+	public void setOrderId(Long orderId) {
+		this.orderId = orderId;
+	}
+
+	public Long getCampaignId() {
+		return campaignId;
+	}
+
+	public void setCampaignId(Long campaignId) {
+		this.campaignId = campaignId;
+	}
+
+	public String getAdGroupName() {
+		return adGroupName;
+	}
+
+	public void setAdGroupName(String adGroupName) {
+		this.adGroupName = adGroupName;
+	}
+
+	public Date getStartDate() {
+		return startDate;
+	}
+
+	public void setStartDate(Date startDate) {
+		this.startDate = startDate;
+	}
+
+	public Date getEndDate() {
+		return endDate;
+	}
+
+	public void setEndDate(Date endDate) {
+		this.endDate = endDate;
+	}
+
+	public Double getTotalBudget() {
+		return totalBudget;
+	}
+
+	public void setTotalBudget(Double totalBudget) {
+		this.totalBudget = totalBudget;
+	}
+
+	public Double getDailyBudget() {
+		return dailyBudget;
+	}
+
+	public void setDailyBudget(Double dailyBudget) {
+		this.dailyBudget = dailyBudget;
+	}
+
+	public Long getMaxImpression() {
+		return maxImpression;
+	}
+
+	public void setMaxImpression(Long maxImpression) {
+		this.maxImpression = maxImpression;
+	}
+
+	public Long getMaxClick() {
+		return maxClick;
+	}
+
+	public void setMaxClick(Long maxClick) {
+		this.maxClick = maxClick;
+	}
+
+	public Long getMaxConversion() {
+		return maxConversion;
+	}
+
+	public void setMaxConversion(Long maxConversion) {
+		this.maxConversion = maxConversion;
+	}
+
+	public Long getDailyMaxImpression() {
+		return dailyMaxImpression;
+	}
+
+	public void setDailyMaxImpression(Long dailyMaxImpression) {
+		this.dailyMaxImpression = dailyMaxImpression;
+	}
+
+	public Long getDailyMaxClick() {
+		return dailyMaxClick;
+	}
+
+	public void setDailyMaxClick(Long dailyMaxClick) {
+		this.dailyMaxClick = dailyMaxClick;
+	}
+
+	public Long getDailyMaxConversion() {
+		return dailyMaxConversion;
+	}
+
+	public void setDailyMaxConversion(Long dailyMaxConversion) {
+		this.dailyMaxConversion = dailyMaxConversion;
+	}
+
+	public Integer getPerImpressionType() {
+		return perImpressionType;
+	}
+
+	public void setPerImpressionType(Integer perImpressionType) {
+		this.perImpressionType = perImpressionType;
+	}
+
+	public Long getPerImpression() {
+		return perImpression;
+	}
+
+	public void setPerImpression(Long perImpression) {
+		this.perImpression = perImpression;
+	}
+
+	public Integer getPerClickType() {
+		return perClickType;
+	}
+
+	public void setPerClickType(Integer perClickType) {
+		this.perClickType = perClickType;
+	}
+
+	public Long getPerClick() {
+		return perClick;
+	}
+
+	public void setPerClick(Long perClick) {
+		this.perClick = perClick;
+	}
+
+	public Integer getStatus() {
+		return status;
+	}
+
+	public void setStatus(Integer status) {
+		this.status = status;
+	}
+
+	
+	@Override
+	public String toString() {
+		return "AdGroup [id=" + id + ", agentId=" + agentId + ", advertiserId="
+				+ advertiserId + ", orderId=" + orderId + ", campaignId="
+				+ campaignId + ", adGroupName=" + adGroupName + ", startDate="
+				+ startDate + ", endDate=" + endDate + ", totalBudget="
+				+ totalBudget + ", mode=" + mode + ", price=" + price
+				+ ", dailyBudget=" + dailyBudget + ", maxImpression="
+				+ maxImpression + ", maxClick=" + maxClick + ", maxConversion="
+				+ maxConversion + ", dailyMaxImpression=" + dailyMaxImpression
+				+ ", dailyMaxClick=" + dailyMaxClick + ", dailyMaxConversion="
+				+ dailyMaxConversion + ", perImpressionType="
+				+ perImpressionType + ", perImpression=" + perImpression
+				+ ", perClickType=" + perClickType + ", perClick=" + perClick
+				+ ", position=" + position + ", retarget=" + retarget
+				+ ", period=" + period + ", status=" + status + ", updated="
+				+ updated + ", bannerNumber=" + bannerNumber + ", site=" + site
+				+ "]";
+	}
+
+	@Override
+	public String getLabel() {
+		return this.adGroupName;
+	}
+
+	@Override
+	public String getValue() {
+		return String.valueOf(this.id);
+	}
+	
+}

+ 44 - 0
src/main/java/com/cloudcross/ssp/model/AdGroupPlace.java

@@ -0,0 +1,44 @@
+package com.cloudcross.ssp.model;
+
+import java.util.Date;
+
+public class AdGroupPlace {
+	private Long id;
+	private Long adGroupId;
+	private Long placeId;
+	private Date supdated;
+	
+		
+	public Date getSupdated() {
+		return supdated;
+	}
+	public void setSupdated(Date supdated) {
+		this.supdated = supdated;
+	}
+	public Long getId() {
+		return id;
+	}
+	public void setId(Long id) {
+		this.id = id;
+	}
+	public Long getPlaceId() {
+		return placeId;
+	}
+	public void setPlaceId(Long placeId) {
+		this.placeId = placeId;
+	}
+	public Long getAdGroupId() {
+		return adGroupId;
+	}
+	public void setAdGroupId(Long adGroupId) {
+		this.adGroupId = adGroupId;
+	}
+	
+	@Override
+	public String toString() {
+		return "AdGroupPlace [id=" + id + ", adGroupId=" + adGroupId
+				+ ", placeId=" + placeId + ", supdated=" + supdated + "]";
+	}
+	
+	
+}

+ 94 - 0
src/main/java/com/cloudcross/ssp/model/AdGroupSchedule.java

@@ -0,0 +1,94 @@
+package com.cloudcross.ssp.model;
+
+import java.util.Date;
+
+public class AdGroupSchedule {
+	private long id;
+	  
+	  private long adGroupId;
+	  /**
+	   * 排期开始日期
+	   */
+	  private String startDate;
+	  private Date beginDate;
+	  /**
+	   * 排期结束日期
+	   */
+	  private String endDate;
+	  private Date sEndDate;
+	  /**
+	   * 投放小时段 eg:0,1,5
+	   */
+	  private String dehours;
+	  /**
+	   * 每日投放上限
+	   */
+	  private Long dailyImpression = 0l;
+	  
+	  private Date updated;
+	  
+	public void setDailyImpression(Long dailyImpression) {
+		this.dailyImpression = dailyImpression;
+	}
+	public Long getDailyImpression() {
+		return this.dailyImpression;
+	}
+	public long getId() {
+	    return id;
+	  }
+	  public void setId(long id) {
+	    this.id = id;
+	  }
+	  public long getAdGroupId() {
+	    return adGroupId;
+	  }
+	  public void setAdGroupId(long adGroupId) {
+	    this.adGroupId = adGroupId;
+	  }
+	  public Date getUpdated() {
+	    return updated;
+	  }
+	  public void setUpdated(Date updated) {
+	    this.updated = updated;
+	  }
+	  public String getStartDate() {
+	    return startDate;
+	  }
+	  public void setStartDate(String startDate) {
+	    this.startDate = startDate;
+	  }
+	  public String getEndDate() {
+	    return endDate;
+	  }
+	  public void setEndDate(String endDate) {
+	    this.endDate = endDate;
+	  }
+	  public String getDehours() {
+	    return dehours;
+	  }
+	  public void setDehours(String dehours) {
+	    this.dehours = dehours;
+	  }
+	  public Date getBeginDate() {
+	    return beginDate;
+	  }
+	  public void setBeginDate(Date beginDate) {
+	    this.beginDate = beginDate;
+	  }
+	  public Date getsEndDate() {
+	    return sEndDate;
+	  }
+	  public void setsEndDate(Date sEndDate) {
+	    this.sEndDate = sEndDate;
+	  }
+	@Override
+	public String toString() {
+		return "AdGroupSchedule [id=" + id + ", adGroupId=" + adGroupId
+				+ ", startDate=" + startDate + ", beginDate=" + beginDate
+				+ ", endDate=" + endDate + ", sEndDate=" + sEndDate
+				+ ", dehours=" + dehours + ", dailyImpression="
+				+ dailyImpression + ", updated="
+				+ updated + "]";
+	}
+	  
+}

+ 43 - 0
src/main/java/com/cloudcross/ssp/model/AdGroupZone.java

@@ -0,0 +1,43 @@
+package com.cloudcross.ssp.model;
+
+/**
+ * 投放与广告位关联表
+ * @author chenyou
+ *
+ */
+public class AdGroupZone {
+	private Long id;
+	//投放id
+	private Long adGroupId;
+	//广告位id
+	private Long zoneId;
+	
+	public Long getId() {
+		return id;
+	}
+	public void setId(Long id) {
+		this.id = id;
+	}
+	public Long getAdGroupId() {
+		return adGroupId;
+	}
+	public void setAdGroupId(Long adGroupId) {
+		this.adGroupId = adGroupId;
+	}
+	public Long getZoneId() {
+		return zoneId;
+	}
+	public void setZoneId(Long zoneId) {
+		this.zoneId = zoneId;
+	}
+	
+	@Override
+	public String toString() {
+		return "AdGroupZone [id=" + id + ", adGroupId=" + adGroupId
+				+ ", zoneId=" + zoneId + "]";
+	}
+	
+	
+	
+	
+}

+ 119 - 0
src/main/java/com/cloudcross/ssp/model/AdvAgent.java

@@ -0,0 +1,119 @@
+package com.cloudcross.ssp.model;
+
+import java.util.Date;
+
+import com.cloudcross.ssp.web.widget.SelectorController.ISelector;
+
+public class AdvAgent implements ISelector{
+	private Long id;
+	private String name;
+	private String contacts;
+	private String tel;
+	private String mobile;
+	private String homePage;
+	private String address;
+	private String zip;
+	private String email;
+	private String title;
+	private Long adminId;
+	private Integer status;
+	private Date updated;
+	public Long getId() {
+		return id;
+	}
+	public void setId(Long id) {
+		this.id = id;
+	}
+	public String getName() {
+		return name;
+	}
+	public void setName(String name) {
+		this.name = name;
+	}
+	public String getContacts() {
+		return contacts;
+	}
+	public void setContacts(String contacts) {
+		this.contacts = contacts;
+	}
+	public String getTel() {
+		return tel;
+	}
+	public void setTel(String tel) {
+		this.tel = tel;
+	}
+	public String getMobile() {
+		return mobile;
+	}
+	public void setMobile(String mobile) {
+		this.mobile = mobile;
+	}
+	public String getHomePage() {
+		return homePage;
+	}
+	public void setHomePage(String homePage) {
+		this.homePage = homePage;
+	}
+	public String getAddress() {
+		return address;
+	}
+	public void setAddress(String address) {
+		this.address = address;
+	}
+	public String getZip() {
+		return zip;
+	}
+	public void setZip(String zip) {
+		this.zip = zip;
+	}
+	public String getEmail() {
+		return email;
+	}
+	public void setEmail(String email) {
+		this.email = email;
+	}
+	public String getTitle() {
+		return title;
+	}
+	public void setTitle(String title) {
+		this.title = title;
+	}
+	public Long getAdminId() {
+		return adminId;
+	}
+	public void setAdminId(Long admin_id) {
+		this.adminId = admin_id;
+	}
+	public Integer getStatus() {
+		return status;
+	}
+	public void setStatus(Integer status) {
+		this.status = status;
+	}
+	public Date getUpdated() {
+		return updated;
+	}
+	public void setUpdated(Date updated) {
+		this.updated = updated;
+	}
+	@Override
+	public String toString() {
+		return "AdvAgent [id=" + id + ", name=" + name + ", regName=" + 
+				 ", contacts=" + contacts + ", tel=" + tel + ", mobile="
+				+ mobile + ", homePage=" + homePage + ", address=" + address
+				+ ", zip=" + zip + ", email=" + email + ", title=" + title
+				+ ", admin_id="  + ", status=" + status
+				+ ", updated=" + updated + "]";
+	}
+	@Override
+	public String getLabel() {
+		// TODO Auto-generated method stub
+		return this.name;
+	}
+	@Override
+	public String getValue() {
+		// TODO Auto-generated method stub
+		return this.id.toString();
+	}
+
+}

+ 188 - 0
src/main/java/com/cloudcross/ssp/model/AdvBalance.java

@@ -0,0 +1,188 @@
+package com.cloudcross.ssp.model;
+import java.util.Date;
+public class AdvBalance {
+	private Long id;
+	private Long accountId;
+	private Long agentId;
+	private Long advertiserId;
+	private String advertiserName;
+	private String agentName;
+	private Date actTime;
+	private String startDate;
+	private String endDate;
+	private String num;
+	private String type;
+	private Double balance;
+	private Double cash;
+	private Double charge;
+	private Double allocate;
+	private Double consume;
+	private String memo;
+	private Integer status;
+	
+	public Integer getStatus() {
+		return status;
+	}
+	public void setStatus(Integer status) {
+		this.status = status;
+	}
+	public Long getId() {
+		return id;
+	}
+	public void setId(Long id) {
+		this.id = id;
+	}
+	public Long getAccountId() {
+		return accountId;
+	}
+	public void setAccountId(Long accountId) {
+		this.accountId = accountId;
+	}
+	public Long getAgentId() {
+		return agentId;
+	}
+	public void setAgentId(Long agentId) {
+		this.agentId = agentId;
+	}
+	public Long getAdvertiserId() {
+		return advertiserId;
+	}
+	public void setAdvertiserId(Long advertiserId) {
+		this.advertiserId = advertiserId;
+	}
+	public String getAdvertiserName() {
+		return advertiserName;
+	}
+	public void setAdvertiserName(String advertiserName) {
+		this.advertiserName = advertiserName;
+	}
+	public String getAgentName() {
+		return agentName;
+	}
+	public void setAgentName(String agentName) {
+		this.agentName = agentName;
+	}
+	public Date getActTime() {
+		return actTime;
+	}
+	public void setActTime(Date actTime) {
+		this.actTime = actTime;
+	}
+	public String getStartDate() {
+		return startDate;
+	}
+	public void setStartDate(String startDate) {
+		this.startDate = startDate;
+	}
+	public String getEndDate() {
+		return endDate;
+	}
+	public void setEndDate(String endDate) {
+		this.endDate = endDate;
+	}
+	public String getNum() {
+		return num;
+	}
+	public void setNum(String num) {
+		this.num = num;
+	}
+	
+	public String getType() {
+		if   ( charge > 0)  {
+		return "充值";
+		}
+		else if ( allocate > 0) {
+		return "分配";
+		}
+		else if( consume > 0)	{
+		return "消费";
+		}
+		else 
+		return "未知";	
+	}
+	
+	public void setType(String type) {
+		if  ( charge > 0)  { 
+		    this.type = "充值";
+		    }
+		else if  ( allocate > 0)  { 
+			this.type = "分配";
+			}
+		else if ( consume > 0)  { 
+			this.type = "消费";
+			}
+		else  
+			this.type = "未知";
+			
+	}
+	public Double getCash() {
+		if   ( charge > 0)  {
+			return charge;
+			}
+			else if ( allocate > 0) {
+			return allocate;
+			}
+			else if( consume > 0)	{
+			return consume;
+			}
+			else 
+			return null;	
+	}
+	public void setCash(Double cash) {
+		if  ( charge > 0)  { 
+		    this.cash = charge;
+		    }
+		else if  ( allocate > 0)  { 
+			this.cash = allocate;
+			}
+		else if ( consume > 0)  { 
+			this.cash = consume;
+			}
+		else  
+			this.type = null;
+	}
+	public Double getBalance() {
+		return balance;
+	}
+	public void setBalance(Double balance) {
+		this.balance = balance;
+	}
+	public Double getCharge() {
+		return charge;
+	}
+	public void setCharge(Double charge) {
+		this.charge = charge;
+	}
+	public Double getAllocate() {
+		return allocate;
+	}
+	public void setAllocate(Double allocate) {
+		this.allocate = allocate;
+	}
+	public Double getConsume() {
+		return consume;
+	}
+	public void setConsume(Double consume) {
+		this.consume = consume;
+	}
+	public String getMemo() {
+		return memo;
+	}
+	public void setMemo(String memo) {
+		this.memo = memo;
+	}
+	
+	@Override
+	public String toString() {
+		return "AdvBalance [id=" + id + ", accountId=" + accountId
+				+ ", agentId=" + agentId + ", advertiserId=" + advertiserId
+				+ ", advertiserName=" + advertiserName + ", agentName="
+				+ agentName + ", actTime=" + actTime + ", startDate="
+				+ startDate + ", endDate=" + endDate + ", num=" + num
+				+ ", type=" + type + ", balance=" + balance + ", cash=" + cash
+				+ ", charge=" + charge + ", allocate=" + allocate
+				+ ", consume=" + consume + ", memo=" + memo + ", status="
+				+ status + "]";
+	}
+	
+}

+ 230 - 0
src/main/java/com/cloudcross/ssp/model/Advertiser.java

@@ -0,0 +1,230 @@
+package com.cloudcross.ssp.model;
+
+import java.util.Date;
+
+import com.cloudcross.ssp.web.widget.SelectorController.ISelector;
+/**
+ * *
+ * @author CloudCross
+ *	和t_advertiser表相关
+ *	是广告主的对应的实体类
+ *	
+ */
+public class Advertiser implements ISelector{
+	
+	//广告主Id
+	private Long id;
+	//运营商Id  和t_operator(运营商)表相关
+	private Long agentId;
+	//行业Id  和t_indestry(行业)表相关
+	private Long industryId;
+	//广告主名字
+	private String name;
+	//公司注册名
+	private String regName;
+	//网址
+	private String homePage;
+	//联系人
+	private String contacts;
+	//电话
+	private String tel;
+	//电子邮件
+	private String email;
+	//资金余额
+	private Float balance;
+	//状态
+	private Integer status;
+	//最后更新日期
+	private Date updated;
+	//备注
+	private String memo; 
+	//CPI文件路径
+	private String cpiPath; 
+	//营业执照路径
+	private String licencePath; 
+	//法人代表身份证路径
+	private String idPath; 
+	//企业机构代码证
+	private String orgPath; 
+	//审核人账号id(t_account.id)
+	private Long checkAccount; 
+	//审核状态(0未审核,1审核通过,-1审核未通过)
+	private Integer checkStatus; 
+	//审核备注
+	private String checkMemo; 
+	//管理员账号Id
+	private Long adminId;
+	/*
+	 *下面两个字段是为了在页面显示的时候方便,从数据库中直接联合查询就可以找到数据 
+	 */
+	
+	
+	
+	public String getCpiPath() {
+		return cpiPath;
+	}
+	public Long getAdminId() {
+		return adminId;
+	}
+	public void setAdminId(Long adminId) {
+		this.adminId = adminId;
+	}
+	public void setCpiPath(String cpiPath) {
+		this.cpiPath = cpiPath;
+	}
+	public String getLicencePath() {
+		return licencePath;
+	}
+	public void setLicencePath(String licencePath) {
+		this.licencePath = licencePath;
+	}
+	public String getIdPath() {
+		return idPath;
+	}
+	public void setIdPath(String idPath) {
+		this.idPath = idPath;
+	}
+	public String getOrgPath() {
+		return orgPath;
+	}
+	public void setOrgPath(String orgPath) {
+		this.orgPath = orgPath;
+	}
+	
+	public Long getCheckAccount() {
+		return checkAccount;
+	}
+	public void setCheckAccount(Long checkAccount) {
+		this.checkAccount = checkAccount;
+	}
+	public Integer getCheckStatus() {
+		return checkStatus;
+	}
+	public void setCheckStatus(Integer checkStatus) {
+		this.checkStatus = checkStatus;
+	}
+	public String getCheckMemo() {
+		return checkMemo;
+	}
+	public void setCheckMemo(String checkMemo) {
+		this.checkMemo = checkMemo;
+	}
+	public String getMemo() {
+		return memo;
+	}
+	public void setMemo(String memo) {
+		this.memo = memo;
+	}
+
+	public Float getBalance() {
+		return balance;
+	}
+	public void setBalance(Float balance) {
+		this.balance = balance;
+	}
+
+	//订单数量
+	private Long orderNum;
+	//行业名称
+	private String industryName;
+	
+	
+	public Long getOrderNum() {
+		return orderNum;
+	}
+	public void setOrderNum(Long orderNum) {
+		this.orderNum = orderNum;
+	}
+	public String getIndustryName() {
+		return industryName;
+	}
+	public void setIndustryName(String industryName) {
+		this.industryName = industryName;
+	}
+	public Long getId() {
+		return id;
+	}
+	public void setId(Long id) {
+		this.id = id;
+	}
+	public Long getAgentId() {
+		return agentId;
+	}
+	public void setAgentId(Long operatorId) {
+		this.agentId = operatorId;
+	}
+	public Long getIndustryId() {
+		return industryId;
+	}
+	public void setIndustryId(Long industryId) {
+		this.industryId = industryId;
+	}
+	public String getName() {
+		return name;
+	}
+	public void setName(String name) {
+		this.name = name;
+	}
+	public String getRegName() {
+		return regName;
+	}
+	public void setRegName(String regName) {
+		this.regName = regName;
+	}
+	public String getHomePage() {
+		return homePage;
+	}
+	public void setHomePage(String homePage) {
+		this.homePage = homePage;
+	}
+	public String getContacts() {
+		return contacts;
+	}
+	public void setContacts(String contacts) {
+		this.contacts = contacts;
+	}
+	public String getTel() {
+		return tel;
+	}
+	public void setTel(String tel) {
+		this.tel = tel;
+	}
+	public String getEmail() {
+		return email;
+	}
+	public void setEmail(String email) {
+		this.email = email;
+	}
+	public Integer getStatus() {
+		return status;
+	}
+	public void setStatus(Integer status) {
+		this.status = status;
+	}
+	public Date getUpdated() {
+		return updated;
+	}
+	public void setUpdated(Date updated) {
+		this.updated = updated;
+	}
+	
+	@Override
+	public String toString() {
+		return "Advertiser [id=" + id + ", operatorId=" + agentId
+				+ ", industryId=" + industryId + ", name=" + name
+				+ ", regName=" + regName + ", homePage=" + homePage
+				+ ", contacts=" + contacts + ", tel=" + tel + ", email="
+				+ email + ", status=" + status + ", updated=" + updated + "]";
+	}
+	@Override
+	public String getLabel() {
+		// TODO Auto-generated method stub
+		return this.getName();
+	}
+	@Override
+	public String getValue() {
+		// TODO Auto-generated method stub
+		return String.valueOf(this.getId());
+	}
+	
+}

+ 178 - 0
src/main/java/com/cloudcross/ssp/model/Audit.java

@@ -0,0 +1,178 @@
+package com.cloudcross.ssp.model;
+
+
+
+import java.util.Date;
+/**
+ * 
+ * @author xiangliu
+ * 和t_advertiser表相关
+ * 广告主的资质审核
+ */
+public class Audit {
+		//广告主Id
+		private Long id;
+		//广告主名字
+		private String name;
+		//行业Id  和t_indestry(行业)表相关
+		private Long industryId;
+		//公司注册名
+		private String regName;
+		//网址
+		private String homePage;
+		//联系人
+		private String contacts;
+		//电话
+		private String tel;
+		//电子邮件
+		private String email; 
+		//最后更新日期
+		private Date updated;
+		//CPI文件路径
+		private String cpiPath; 
+		//营业执照路径
+		private String licencePath; 
+		//法人代表身份证路径
+		private String idPath; 
+		//企业机构代码证
+		private String orgPath; 
+		//审核人账号id(t_account.id)
+		private Float checkAccount; 
+		//审核状态(0未审核,1审核通过,-1审核未通过)
+		private Integer checkStatus; 
+		//审核备注
+		private String checkMemo;
+		
+		//下面是表里没有的字段
+		
+		//行业名称
+		private String industryName;
+		//行业名称
+		private String agentName;
+		
+		public String getIndustryName() {
+			return industryName;
+		}
+		public void setIndustryName(String industryName) {
+			this.industryName = industryName;
+		}
+		public String getAgentName() {
+			return agentName;
+		}
+		public void setAgentName(String agentName) {
+			this.agentName = agentName;
+		}
+		
+		public Long getId() {
+			return id;
+		}
+		public void setId(Long id) {
+			this.id = id;
+		}
+		public String getName() {
+			return name;
+		}
+		public void setName(String name) {
+			this.name = name;
+		}
+		public Long getIndustryId() {
+			return industryId;
+		}
+		
+		public void setIndustryId(Long industryId) {
+			this.industryId = industryId;
+		}
+		public String getRegName() {
+			return regName;
+		}
+		public void setRegName(String regName) {
+			this.regName = regName;
+		}
+		public String getHomePage() {
+			return homePage;
+		}
+		public void setHomePage(String homePage) {
+			this.homePage = homePage;
+		}
+		public String getContacts() {
+			return contacts;
+		}
+		public void setContacts(String contacts) {
+			this.contacts = contacts;
+		}
+		public String getTel() {
+			return tel;
+		}
+		public void setTel(String tel) {
+			this.tel = tel;
+		}
+		public String getEmail() {
+			return email;
+		}
+		public void setEmail(String email) {
+			this.email = email;
+		}
+		public Date getUpdated() {
+			return updated;
+		}
+		public void setUpdated(Date updated) {
+			this.updated = updated;
+		}
+		public String getCpiPath() {
+			return cpiPath;
+		}
+		public void setCpiPath(String cpiPath) {
+			this.cpiPath = cpiPath;
+		}
+		public String getLicencePath() {
+			return licencePath;
+		}
+		public void setLicencePath(String licencePath) {
+			this.licencePath = licencePath;
+		}
+		public String getIdPath() {
+			return idPath;
+		}
+		public void setIdPath(String idPath) {
+			this.idPath = idPath;
+		}
+		public String getOrgPath() {
+			return orgPath;
+		}
+		public void setOrgPath(String orgPath) {
+			this.orgPath = orgPath;
+		}
+		public Float getCheckAccount() {
+			return checkAccount;
+		}
+		public void setCheckAccount(Float checkAccount) {
+			this.checkAccount = checkAccount;
+		}
+		public Integer getCheckStatus() {
+			return checkStatus;
+		}
+		public void setCheckStatus(Integer checkStatus) {
+			this.checkStatus = checkStatus;
+		}
+		public String getCheckMemo() {
+			return checkMemo;
+		}
+		public void setCheckMemo(String checkMemo) {
+			this.checkMemo = checkMemo;
+		} 
+		
+		@Override
+		public String toString() {
+			return "Audit [id=" + id + ", name=" + name + ", industryId="
+					+ industryId + ", regName=" + regName + ", homePage="
+					+ homePage + ", contacts=" + contacts + ", tel=" + tel
+					+ ", email=" + email + ", updated=" + updated
+					+ ", cpiPath=" + cpiPath + ", licencePath=" + licencePath
+					+ ", idPath=" + idPath + ", orgPath=" + orgPath
+					+ ", checkAccount=" + checkAccount + ", checkStatus="
+					+ checkStatus + ", checkMemo=" + checkMemo
+					+ ", industryName=" + industryName + ", agentName="
+					+ agentName + "]";
+		} 
+		
+}

+ 138 - 0
src/main/java/com/cloudcross/ssp/model/AuditBanner.java

@@ -0,0 +1,138 @@
+package com.cloudcross.ssp.model;
+
+
+
+import java.util.Date;
+
+/**
+ * 投放活动对应的创意模板表
+ * @author chenyou
+ *
+ */
+public class AuditBanner {
+	//主键
+	private Long id;
+	//创意模板id
+	private Long bannerTemplateId;
+	//订单id
+	private Long orderId;
+	//活动id
+	private Long campaignId;
+	//投放id
+	private Long adGroupId;
+	//到达地址
+	private String visitAddress;
+	//点击地址
+	private String clickAddress;
+	//曝光地址
+	private String impressionAddress;
+	//审核状态
+	private Integer checked;
+	//更新时间
+	private Date updated;
+	//审核备注
+	private String memo;
+	//行业
+	private String industryName;
+	//广告主
+	private String advertiserName;
+	//创建bannerTemplate对象
+	BannerTemplate bannerTemplate;
+	public Long getId() {
+		return id;
+	}
+	public void setId(Long id) {
+		this.id = id;
+	}
+	public Long getBannerTemplateId() {
+		return bannerTemplateId;
+	}
+	public void setBannerTemplateId(Long bannerTemplateId) {
+		this.bannerTemplateId = bannerTemplateId;
+	}
+	public Long getOrderId() {
+		return orderId;
+	}
+	public void setOrderId(Long orderId) {
+		this.orderId = orderId;
+	}
+	public Long getCampaignId() {
+		return campaignId;
+	}
+	public void setCampaignId(Long campaignId) {
+		this.campaignId = campaignId;
+	}
+	public Long getAdGroupId() {
+		return adGroupId;
+	}
+	public void setAdGroupId(Long adGroupId) {
+		this.adGroupId = adGroupId;
+	}
+	public String getVisitAddress() {
+		return visitAddress;
+	}
+	public void setVisitAddress(String visitAddress) {
+		this.visitAddress = visitAddress;
+	}
+	public String getClickAddress() {
+		return clickAddress;
+	}
+	public void setClickAddress(String clickAddress) {
+		this.clickAddress = clickAddress;
+	}
+	public String getImpressionAddress() {
+		return impressionAddress;
+	}
+	public void setImpressionAddress(String impressionAddress) {
+		this.impressionAddress = impressionAddress;
+	}
+	public Integer getChecked() {
+		return checked;
+	}
+	public void setChecked(Integer checked) {
+		this.checked = checked;
+	}
+	public Date getUpdated() {
+		return updated;
+	}
+	public void setUpdated(Date updated) {
+		this.updated = updated;
+	}
+	public String getMemo() {
+		return memo;
+	}
+	public void setMemo(String memo) {
+		this.memo = memo;
+	}
+	public String getIndustryName() {
+		return industryName;
+	}
+	public void setIndustryName(String industryName) {
+		this.industryName = industryName;
+	}
+	public String getAdvertiserName() {
+		return advertiserName;
+	}
+	public void setAdvertiserName(String advertiserName) {
+		this.advertiserName = advertiserName;
+	}
+	public BannerTemplate getBannerTemplate() {
+		return bannerTemplate;
+	}
+	public void setBannerTemplate(BannerTemplate bannerTemplate) {
+		this.bannerTemplate = bannerTemplate;
+	}
+	@Override
+	public String toString() {
+		return "AuditBanner [id=" + id + ", bannerTemplateId="
+				+ bannerTemplateId + ", orderId=" + orderId + ", campaignId="
+				+ campaignId + ", adGroupId=" + adGroupId + ", visitAddress="
+				+ visitAddress + ", clickAddress=" + clickAddress
+				+ ", impressionAddress=" + impressionAddress + ", checked="
+				+ checked + ", updated=" + updated + ", memo=" + memo
+				+ ", industryName=" + industryName + ", advertiserName="
+				+ advertiserName + ", bannerTemplate=" + bannerTemplate + "]";
+	}
+	
+	
+}

+ 147 - 0
src/main/java/com/cloudcross/ssp/model/Banner.java

@@ -0,0 +1,147 @@
+package com.cloudcross.ssp.model;
+
+import java.util.Date;
+
+/**
+ * 投放活动对应的创意模板表
+ * @author chenyou
+ *
+ */
+public class Banner {
+	//主键
+	private Long id;
+	//创意模板id
+	private Long bannerTemplateId;
+	//订单id
+	private Long orderId;
+	//活动id
+	private Long campaignId;
+	//投放id
+	private Long adGroupId;
+	//到达地址
+	private String visitAddress;
+	//点击地址
+	private String clickAddress;
+	//曝光地址
+	private String impressionAddress;
+	//审核状态
+	private Integer checked;
+	//审核备注
+	private String memo;
+	//创意状态
+	private Integer status;
+	//最后更新时间
+	private Date updated;
+	//新增及状态更新时间
+	private Date supdated;
+	//创建bannerTemplate对象
+	BannerTemplate bannerTemplate;
+	//运营商审核状态
+	private Integer operatorChecked;
+		
+	public Long getId() {
+		return id;
+	}
+	public void setId(Long id) {
+		this.id = id;
+	}
+	public Long getBannerTemplateId() {
+		return bannerTemplateId;
+	}
+	public void setBannerTemplateId(Long bannerTemplateId) {
+		this.bannerTemplateId = bannerTemplateId;
+	}
+	public Long getOrderId() {
+		return orderId;
+	}
+	public void setOrderId(Long orderId) {
+		this.orderId = orderId;
+	}
+	public Long getCampaignId() {
+		return campaignId;
+	}
+	public void setCampaignId(Long campaignId) {
+		this.campaignId = campaignId;
+	}
+	public Long getAdGroupId() {
+		return adGroupId;
+	}
+	public void setAdGroupId(Long adGroupId) {
+		this.adGroupId = adGroupId;
+	}
+	public String getVisitAddress() {
+		return visitAddress;
+	}
+	public void setVisitAddress(String visitAddress) {
+		this.visitAddress = visitAddress;
+	}
+	public String getClickAddress() {
+		return clickAddress;
+	}
+	public void setClickAddress(String clickAddress) {
+		this.clickAddress = clickAddress;
+	}
+	public String getImpressionAddress() {
+		return impressionAddress;
+	}
+	public void setImpressionAddress(String impressionAddress) {
+		this.impressionAddress = impressionAddress;
+	}
+	public Integer getChecked() {
+		return checked;
+	}
+	public void setChecked(Integer checked) {
+		this.checked = checked;
+	}
+	public String getMemo() {
+		return memo;
+	}
+	public void setMemo(String memo) {
+		this.memo = memo;
+	}
+	public Integer getStatus() {
+		return status;
+	}
+	public void setStatus(Integer status) {
+		this.status = status;
+	}
+	public Date getUpdated() {
+		return updated;
+	}
+	public void setUpdated(Date updated) {
+		this.updated = updated;
+	}
+	public Date getSupdated() {
+		return supdated;
+	}
+	public void setSupdated(Date supdated) {
+		this.supdated = supdated;
+	}
+	public BannerTemplate getBannerTemplate() {
+		return bannerTemplate;
+	}
+	public void setBannerTemplate(BannerTemplate bannerTemplate) {
+		this.bannerTemplate = bannerTemplate;
+	}
+	public Integer getOperatorChecked() {
+		return operatorChecked;
+	}
+	public void setOperatorChecked(Integer operatorChecked) {
+		this.operatorChecked = operatorChecked;
+	}
+	@Override
+	public String toString() {
+		return "Banner [id=" + id + ", bannerTemplateId=" + bannerTemplateId
+				+ ", orderId=" + orderId + ", campaignId=" + campaignId
+				+ ", adGroupId=" + adGroupId + ", visitAddress=" + visitAddress
+				+ ", clickAddress=" + clickAddress + ", impressionAddress="
+				+ impressionAddress + ", checked=" + checked + ", memo=" + memo
+				+ ", status=" + status + ", updated=" + updated + ", supdated="
+				+ supdated + ", bannerTemplate=" + bannerTemplate
+				+ ", operatorChecked=" + operatorChecked + "]";
+	}
+	
+	
+	
+	
+}

+ 118 - 0
src/main/java/com/cloudcross/ssp/model/BannerTemplate.java

@@ -0,0 +1,118 @@
+package com.cloudcross.ssp.model;
+
+import java.util.Date;
+
+/**
+ * 创意模板表
+ * @author chenyou
+ *
+ */
+public class BannerTemplate {
+	//主键id
+	private Long id;
+	//代理商id
+	private Long agentId;
+	//广告主id
+	private Long advertiserId;
+	//模板名称
+	private String name;
+	//上传文件路径
+	private String path;
+	//缩略图路径
+	private String pathSmall;
+	//创意类型
+	private Integer type;
+	//创意宽度
+	private Long width;
+	//创意高度
+	private Long height;
+	//状态
+	private Integer status;
+	//上传时间
+	private Date updated;
+	//创建banner对象
+	AuditBanner banner;
+	public Long getId() {
+		return id;
+	}
+	public void setId(Long id) {
+		this.id = id;
+	}
+	public Long getAgentId() {
+		return agentId;
+	}
+	public void setAgentId(Long agentId) {
+		this.agentId = agentId;
+	}
+	public Long getAdvertiserId() {
+		return advertiserId;
+	}
+	public void setAdvertiserId(Long advertiserId) {
+		this.advertiserId = advertiserId;
+	}
+	public String getName() {
+		return name;
+	}
+	public void setName(String name) {
+		this.name = name;
+	}
+	public String getPath() {
+		return path;
+	}
+	public void setPath(String path) {
+		this.path = path;
+	}
+	public String getPathSmall() {
+		return pathSmall;
+	}
+	public void setPathSmall(String pathSmall) {
+		this.pathSmall = pathSmall;
+	}
+	public Integer getType() {
+		return type;
+	}
+	public void setType(Integer type) {
+		this.type = type;
+	}
+	public Long getWidth() {
+		return width;
+	}
+	public void setWidth(Long width) {
+		this.width = width;
+	}
+	public Long getHeight() {
+		return height;
+	}
+	public void setHeight(Long height) {
+		this.height = height;
+	}
+	public Integer getStatus() {
+		return status;
+	}
+	public void setStatus(Integer status) {
+		this.status = status;
+	}
+	public Date getUpdated() {
+		return updated;
+	}
+	public void setUpdated(Date updated) {
+		this.updated = updated;
+	}
+	
+	public AuditBanner getBanner() {
+		return banner;
+	}
+	public void setBanner(AuditBanner banner) {
+		this.banner = banner;
+	}
+	@Override
+	public String toString() {
+		return "BannerTemplate [id=" + id + ", agentId=" + agentId
+				+ ", advertiserId=" + advertiserId + ", name=" + name
+				+ ", path=" + path + ", pathSmall=" + pathSmall + ", type="
+				+ type + ", width=" + width + ", height=" + height
+				+ ", status=" + status + ", updated=" + updated + ", banner="
+				+ banner + "]";
+	}
+	
+}

+ 245 - 0
src/main/java/com/cloudcross/ssp/model/Campaign.java

@@ -0,0 +1,245 @@
+package com.cloudcross.ssp.model;
+
+import java.util.Date;
+
+import com.cloudcross.ssp.common.consts.Status;
+import com.cloudcross.ssp.web.widget.SelectorController.ISelector;
+
+/**
+ * 广告投放活动表。
+ * <p/>
+ * 与t_campaign数据表相关
+ * 
+ */
+public class Campaign implements ISelector {
+	private Long id;
+	
+	// 订单id
+	private Long orderId;
+	
+	//活动名称
+	private String name;
+	
+	// 活动开始时间
+	private Date activeTime;
+	
+	// 活动结束时间
+	private Date expireTime;
+	
+	// 活动总预算
+	private Float totalBudget;
+	
+	// 活动日预算
+	private Float dailyBudget;
+	
+	// 曝光总上限
+	private Long impression;
+	
+	// 点击总上限
+	private Long click;
+	
+	// 转化总上限
+	private Long conversion;
+	
+	// 每日曝光上限
+	private Long dailyImpression;
+	
+	// 每日点击上限
+	private Long dailyClick;
+	
+	// 每日转换上限
+	private Long dailyConversion;
+	
+	//备注项
+	private String memo;
+	
+	// 活动状态
+	private Integer status;
+	
+	// 最后更新时间
+	private Date upDated;
+	
+    //投放数目
+	private Long groupNumber;
+	
+	
+	//广告主advertiserId,增于2015/10/20
+	private Long advertiserId;
+	
+	public Long getAdvertiserId(){
+		return advertiserId;
+	}
+	
+	public void setAdvertiserId(Long advertiserId){
+		this.advertiserId = advertiserId;
+	}
+	
+	//代理商Id,增于2015/10/21
+	private Long agentId;
+	
+	public Long getAgentId() {
+		return agentId;
+	}
+
+	public void setAgentId(Long agentId) {
+		this.agentId = agentId;
+	}
+	
+
+	public Long getId() {
+		return id;
+	}
+
+	public void setId(Long id) {
+		this.id = id;
+	}
+
+	public Long getOrderId() {
+		return orderId;
+	}
+
+	public void setOrderId(Long orderId) {
+		this.orderId = orderId;
+	}
+
+	public String getName() {
+		return name;
+	}
+
+	public void setName(String name) {
+		this.name = name;
+	}
+
+	public Date getActiveTime() {
+		return activeTime;
+	}
+
+	public void setActiveTime(Date activeTime) {
+		this.activeTime = activeTime;
+	}
+
+	public Date getExpireTime() {
+		return expireTime;
+	}
+
+	public void setExpireTime(Date expireTime) {
+		this.expireTime = expireTime;
+	}
+
+	public Float getTotalBudget() {
+		return totalBudget;
+	}
+
+	public void setTotalBudget(Float totalBudget) {
+		this.totalBudget = totalBudget;
+	}
+
+	public Float getDailyBudget() {
+		return dailyBudget;
+	}
+
+	public void setDailyBudget(Float dailyBudget) {
+		this.dailyBudget = dailyBudget;
+	}
+
+	public Long getImpression() {
+		return impression;
+	}
+
+	public void setImpression(Long impression) {
+		this.impression = impression;
+	}
+
+	public Long getClick() {
+		return click;
+	}
+
+	public void setClick(Long click) {
+		this.click = click;
+	}
+
+	public Long getConversion() {
+		return conversion;
+	}
+
+	public void setConversion(Long conversion) {
+		this.conversion = conversion;
+	}
+
+	public Long getDailyImpression() {
+		return dailyImpression;
+	}
+
+	public void setDailyImpression(Long dailyImpression) {
+		this.dailyImpression = dailyImpression;
+	}
+
+	public Long getDailyClick() {
+		return dailyClick;
+	}
+
+	public void setDailyClick(Long dailyClick) {
+		this.dailyClick = dailyClick;
+	}
+
+	public Long getDailyConversion() {
+		return dailyConversion;
+	}
+
+	public void setDailyConversion(Long dailyConversion) {
+		this.dailyConversion = dailyConversion;
+	}
+
+	public String getMemo() {
+		return memo;
+	}
+
+	public void setMemo(String memo) {
+		this.memo = memo;
+	}
+
+	public Integer getStatus() {
+		return status;
+	}
+
+	public void setStatus(Integer status) {
+		this.status = status;
+	}
+
+	public Date getUpDated() {
+		return upDated;
+	}
+
+	public void setUpDated(Date upDated) {
+		this.upDated = upDated;
+	}
+
+	public Long getGroupNumber() {
+		return groupNumber;
+	}
+
+	public void setGroupNumber(Long groupNumber) {
+		this.groupNumber = groupNumber;
+	}
+
+
+	@Override
+	public String toString() {
+		return "Campaign [id=" + id + ", orderId=" + orderId + ", advertiserId=" + advertiserId + ", agentId=" + agentId + ", name=" + name + ", activeTime=" + activeTime
+				+ ", expireTime=" + expireTime + ", totalBudget=" + totalBudget + ", dailyBudget=" + dailyBudget
+				+ ", impression=" + impression + ", click=" + click + ", conversion=" + conversion
+				+ ", dailyImpression=" + dailyImpression + ", dailyClick=" + dailyClick + ", dailyConversion="
+				+ dailyConversion + ", memo=" + memo + ", status=" + status + ", upDated=" + upDated + ", groupNumber="
+				+ groupNumber + "]";
+	}
+
+	@Override
+	public String getLabel() {
+		return this.name;
+	}
+
+	@Override
+	public String getValue() {
+		return String.valueOf(this.id);
+	}
+}

+ 184 - 0
src/main/java/com/cloudcross/ssp/model/ClientAccount.java

@@ -0,0 +1,184 @@
+package com.cloudcross.ssp.model;
+
+import java.util.Date;
+
+public class ClientAccount {
+
+	private Long id;
+	private String accountName;
+	private String companyName;
+	private String linkMan;
+	private String mobilePhone;
+	private String tel;
+	private Integer sysType;
+	private Integer status;
+	private Date loginTime;
+	private String homePage;
+	private String zip;
+	private String email;
+	private String title;
+	private String password;
+	private String address;
+	private String bank;
+	private String bankAccountName;
+	private String bankAccount;
+	private Long agentId;
+	private Long operatorId;
+	private Long adminId;
+	
+	public Long getAdminId() {
+		return adminId;
+	}
+	public void setAdminId(Long adminId) {
+		this.adminId = adminId;
+	}
+	public Long getAgentId() {
+		return agentId;
+	}
+	public void setAgentId(Long agentId) {
+		this.agentId = agentId;
+	}
+	public Long getOperatorId() {
+		return operatorId;
+	}
+	public void setOperatorId(Long operatorId) {
+		this.operatorId = operatorId;
+	}
+	public String getBankAccountName() {
+		return bankAccountName;
+	}
+	public void setBankAccountName(String bankAccountName) {
+		this.bankAccountName = bankAccountName;
+	}
+	public String getBankAccount() {
+		return bankAccount;
+	}
+	public void setBankAccount(String bankAccount) {
+		this.bankAccount = bankAccount;
+	}
+	public String getBank() {
+		return bank;
+	}
+	public void setBank(String bank) {
+		this.bank = bank;
+	}
+	public String getAddress() {
+		return address;
+	}
+	public void setAddress(String address) {
+		this.address = address;
+	}
+	public String getPassword() {
+		return password;
+	}
+	public void setPassword(String password) {
+		this.password = password;
+	}
+	public String getHomePage() {
+		return homePage;
+	}
+	public void setHomePage(String homePage) {
+		this.homePage = homePage;
+	}
+	public String getZip() {
+		return zip;
+	}
+	public void setZip(String zip) {
+		this.zip = zip;
+	}
+	public String getEmail() {
+		return email;
+	}
+	public void setEmail(String email) {
+		this.email = email;
+	}
+	public String getTitle() {
+		return title;
+	}
+	public void setTitle(String title) {
+		this.title = title;
+	}
+	public Long getId() {
+		return id;
+	}
+	public void setId(Long id) {
+		this.id = id;
+	}
+	public String getAccountName() {
+		return accountName;
+	}
+	public void setAccountName(String accountName) {
+		this.accountName = accountName;
+	}
+	public String getCompanyName() {
+		return companyName;
+	}
+	public void setCompanyName(String companyName) {
+		this.companyName = companyName;
+	}
+	public String getLinkMan() {
+		return linkMan;
+	}
+	public void setLinkMan(String linkMan) {
+		this.linkMan = linkMan;
+	}
+	public String getMobilePhone() {
+		return mobilePhone;
+	}
+	public void setMobilePhone(String mobilePhone) {
+		this.mobilePhone = mobilePhone;
+	}
+	public String getTel() {
+		return tel;
+	}
+	public void setTel(String tel) {
+		this.tel = tel;
+	}
+	public Integer getSysType() {
+		return sysType;
+	}
+	public void setSysType(Integer sysType) {
+		this.sysType = sysType;
+	}
+	public Integer getStatus() {
+		return status;
+	}
+	public void setStatus(Integer status) {
+		this.status = status;
+	}
+	public Date getLoginTime() {
+		return loginTime;
+	}
+	public void setLoginTime(Date loginTime) {
+		this.loginTime = loginTime;
+	}
+	@Override
+	public String toString() {
+		return "ClientAccount [id=" + id + ", accountName=" + accountName
+				+ ", companyName=" + companyName + ", linkMan=" + linkMan
+				+ ", mobilePhone=" + mobilePhone + ", tel=" + tel
+				+ ", sysType=" + sysType + ", status=" + status
+				+ ", loginTime=" + loginTime + ", homePage=" + homePage
+				+ ", zip=" + zip + ", email=" + email + ", title=" + title
+				+ ", password=" + password + ", address=" + address + ", bank="
+				+ bank + ", bankAccountName=" + bankAccountName
+				+ ", bankAccount=" + bankAccount + ", agentId=" + agentId
+				+ ", operatorId=" + operatorId + ", getAgentId()="
+				+ getAgentId() + ", getOperatorId()=" + getOperatorId()
+				+ ", getBankAccountName()=" + getBankAccountName()
+				+ ", getBankAccount()=" + getBankAccount() + ", getBank()="
+				+ getBank() + ", getAddress()=" + getAddress()
+				+ ", getPassword()=" + getPassword() + ", getHomePage()="
+				+ getHomePage() + ", getZip()=" + getZip() + ", getEmail()="
+				+ getEmail() + ", getTitle()=" + getTitle() + ", getId()="
+				+ getId() + ", getAccountName()=" + getAccountName()
+				+ ", getCompanyName()=" + getCompanyName() + ", getLinkMan()="
+				+ getLinkMan() + ", getMobilePhone()=" + getMobilePhone()
+				+ ", getTel()=" + getTel() + ", getSysType()=" + getSysType()
+				+ ", getStatus()=" + getStatus() + ", getLoginTime()="
+				+ getLoginTime() + ", getClass()=" + getClass()
+				+ ", hashCode()=" + hashCode() + ", toString()="
+				+ super.toString() + "]";
+	}
+
+}

+ 109 - 0
src/main/java/com/cloudcross/ssp/model/CodeClass.java

@@ -0,0 +1,109 @@
+package com.cloudcross.ssp.model;
+
+import java.util.Date;
+/**
+ * *
+ * @author WangHeng
+ *	和t_code_class表相关
+ *	是分类访客找回的对应的实体类
+ *	
+ */
+public class CodeClass {
+	
+	private Long id;  //分类访客找回Id	
+	
+	private Long advertiserId;  //广告主ID	
+	
+	private String codeName;    //分类名称
+	
+	private String codePara;    //分类参数值
+	
+	private String script;     //  javascript代码
+	
+	private String picture;       //图片代码
+	
+	private Date updated;    //最后更新时间
+	
+
+	public Long getId() {
+		return id;
+	}
+
+
+	public void setId(Long id) {
+		this.id = id;
+	}
+
+
+
+	public Long getAdvertiserId() {
+		return advertiserId;
+	}
+
+
+
+	public void setAdvertiserId(Long advertiserId) {
+		this.advertiserId = advertiserId;
+	}
+
+
+
+	public String getCodeName() {
+		return codeName;
+	}
+
+
+
+	public void setCodeName(String codeName) {
+		this.codeName = codeName;
+	}
+
+
+
+	public String getCodePara() {
+		return codePara;
+	}
+
+
+	public void setCodePara(String codePara) {
+		this.codePara = codePara;
+	}
+
+
+	public String getScript() {
+		return script;
+	}
+
+
+	public void setScript(String script) {
+		this.script = script;
+	}
+
+
+	public String getPicture() {
+		return picture;
+	}
+
+	public void setPicture(String picture) {
+		this.picture = picture;
+	}
+
+	public Date getUpdated() {
+		return updated;
+	}
+
+
+	public void setUpdated(Date updated) {
+		this.updated = updated;
+	}
+
+
+	@Override
+	public String toString() {
+		return "CodeClass [id=" + id + ", advertiserId=" + advertiserId
+				+ ", codeName=" + codeName + ", codePara=" + codePara
+				+ ", script=" + script + ", picture=" + picture
+				+ ",  updated=" + updated + "]";
+	
+	}	
+}

+ 106 - 0
src/main/java/com/cloudcross/ssp/model/CodeConvert.java

@@ -0,0 +1,106 @@
+package com.cloudcross.ssp.model;
+
+import java.util.Date;
+/**
+ * *
+ * @author WangHeng
+ *	和t_code_convert表相关
+ *	是转化代码对应的实体类
+ *	
+ */
+public class CodeConvert {
+	
+	private Long id;  //转化代码Id	
+	
+	private Long advertiserId;  //广告主ID	
+	
+	private String convertName;    //转化代码名称
+	
+	private Long convertType;    //转化目标类型
+	
+	private String script;     //  javascript代码
+	
+	private String picture;       //图片代码
+	
+	private Date updated;    //最后更新时间
+	
+
+	public Long getId() {
+		return id;
+	}
+
+
+	public void setId(Long id) {
+		this.id = id;
+	}
+
+
+	public Long getAdvertiserId() {
+		return advertiserId;
+	}
+
+
+	public void setAdvertiserId(Long advertiserId) {
+		this.advertiserId = advertiserId;
+	}
+
+
+	public String getConvertName() {
+		return convertName;
+	}
+
+
+	public void setConvertName(String convertName) {
+		this.convertName = convertName;
+	}
+
+
+	public Long getConvertType() {
+		return convertType;
+	}
+
+
+	public void setConvertType(Long convertType) {
+		this.convertType = convertType;
+	}
+
+
+	public String getScript() {
+		return script;
+	}
+
+
+	public void setScript(String script) {
+		this.script = script;
+	}
+
+
+	public String getPicture() {
+		return picture;
+	}
+
+
+	public void setPicture(String picture) {
+		this.picture = picture;
+	}
+
+
+	public Date getUpdated() {
+		return updated;
+	}
+
+
+	public void setUpdated(Date updated) {
+		this.updated = updated;
+	}
+
+
+	@Override
+	public String toString() {
+		return "CodeConvert [id=" + id + ", advertiserId=" + advertiserId
+				+ ", convertName=" + convertName + ", convertType=" + convertType
+				+ ", script=" + script + ", picture=" + picture
+				+ ",  updated=" + updated + "]";
+	
+	}	
+}

+ 78 - 0
src/main/java/com/cloudcross/ssp/model/CodeSite.java

@@ -0,0 +1,78 @@
+package com.cloudcross.ssp.model;
+
+
+/**
+ * *
+ * @author WangHeng
+ *	和t_code_site表相关
+ *	是全站访客找回的对应的实体类
+ *	
+ */
+public class CodeSite {
+	
+	private Long id;  //分类访客找回Id	
+	
+	private Long advertiserId;  //广告主ID	
+
+	private String script;     //  javascript代码
+	
+	private String picture;       //图片代码
+	
+	
+
+	public Long getId() {
+		return id;
+	}
+
+
+
+	public void setId(Long id) {
+		this.id = id;
+	}
+
+
+
+	public Long getAdvertiserId() {
+		return advertiserId;
+	}
+
+
+
+	public void setAdvertiserId(Long advertiserId) {
+		this.advertiserId = advertiserId;
+	}
+
+
+
+	public String getScript() {
+		return script;
+	}
+
+
+
+	public void setScript(String script) {
+		this.script = script;
+	}
+
+
+
+	public String getPicture() {
+		return picture;
+	}
+
+
+
+	public void setPicture(String picture) {
+		this.picture = picture;
+	}
+
+
+
+	@Override
+	public String toString() {
+		return "CodeSite [id=" + id + ", advertiserId=" + advertiserId
+				+ ", script=" + script + ", picture=" + picture + "]";
+	}
+
+	
+}

+ 51 - 0
src/main/java/com/cloudcross/ssp/model/DayParting.java

@@ -0,0 +1,51 @@
+package com.cloudcross.ssp.model;
+
+import java.util.Date;
+
+/**
+ * 排期时间段及曝光上限
+ * @author chenyou
+ *
+ */
+public class DayParting {
+	
+	private Date startDate;
+
+	private Date endDate;
+	
+	private String dehours;
+	
+	public Date getStartDate() {
+		return startDate;
+	}
+
+	public Date getEndDate() {
+		return endDate;
+	}
+
+	public String getDehours() {
+		return dehours;
+	}
+
+	public void setStartDate(Date startDate) {
+		this.startDate = startDate;
+	}
+
+	public void setEndDate(Date endDate) {
+		this.endDate = endDate;
+	}
+
+	public void setDehours(String dehours) {
+		this.dehours = dehours;
+	}
+
+	@Override
+	public String toString() {
+		return "DayParting [startDate=" + startDate + ", endDate=" + endDate
+				+ ", dehours=" + dehours + "]";
+	}
+
+
+
+	
+}

+ 663 - 0
src/main/java/com/cloudcross/ssp/model/DeliverAnalysis.java

@@ -0,0 +1,663 @@
+package com.cloudcross.ssp.model;
+
+import java.util.Date;
+
+public final class DeliverAnalysis  {
+	//id
+	private Long id;
+	//广告主id
+	private Long advertiserId;
+	//订单id
+	private Long orderId;
+	//活动id
+	private Long campaignId;
+	//投放id
+	private Long adGroupId;
+	//创意id
+	private Long bannerId;
+	//创意模板Id
+	private Long bannerTemplateId;
+	//场景id
+	private Long placeId;
+	//地域
+	private String location;
+	//系统
+	private Integer os;
+	//广告主名称
+	private String advertiserName;
+	//场景名称
+	private String placeName;
+	//订单名称
+	private String orderName;
+	//活动名称
+	private String campaignName;
+	//投放名称
+	private String adGroupName;
+	//创意分组名称
+	private String bannerName;
+	
+	//请求数
+	private double request;
+	//曝光数
+	private double impression;
+	//曝光总数	
+	private double impressionSum;
+	//点击数
+	private double click;
+	//点击总数
+	private double clickSum;
+	//到达数
+	private double visit; 
+	//到达总数
+	private double visitSum;
+	//转化数
+    private double conversion;
+    //转化总数
+    private double conversionSum;
+	//曝光占比
+    private double impressionRate;
+    //点击率
+	private double clickRate;
+	//全部对应的点击率
+	private double clickRatesum;	
+	//到达率
+	private double visitRate;
+	//全部对应的到达率
+	private double visitRatesum;
+	//转化率
+	private double conversionRate;
+	//全部对应的转化率
+	private double conversionRatesum;
+	//eCmp
+	private double eCmp;
+	//eCmp总数
+	private double eCmpSum;
+	//花费
+	private double consume;
+	//花费总额
+	private double consumeSum;
+	
+	//开始时间
+	private Date startDate;
+	
+	//结束时间
+	private Date endDate;
+	
+	//日期
+	private Date reportDate;
+	
+	//小时
+	private Integer hour;
+	
+	//广告位id
+	private Long zoneId;
+	//广告位
+	private String zoneName;
+	//浏览量占比
+	private double viewRate;
+	
+	//广告位宽
+	private double width;
+	//广告位高
+	private double height;
+	//位置
+	private Long position;
+	//系统
+	private Long system;
+	
+	//类型
+	private Long device;
+	
+
+	
+	//省份
+	private String cn;
+	//是不是省份的标志1-表示省份,2-表示不是,默认不是
+	//注:这个属性是在地域报表导出excel时用到的
+	private Integer cnMark = 2;
+	//城市
+	private String cn_city;
+	//场景
+	private String place;
+	
+	//热点
+	private String apmac;
+	
+	
+	//PV
+	private double pv;
+	//UV
+	private double uv;
+
+	//唯一曝光数
+	private Long uImpression;
+	//唯一点击数
+	private Long uClick;
+	
+    //填充率
+    private double fillRate;
+	
+   
+	//eCmp
+	private double eCpm;
+	//收入
+	private double income;
+	//日期
+	
+
+	public Long getId() {
+		return id;
+	}
+
+	public void setId(Long id) {
+		this.id = id;
+	}
+
+	public Long getAdvertiserId() {
+		return advertiserId;
+	}
+
+	public void setAdvertiserId(Long advertiserId) {
+		this.advertiserId = advertiserId;
+	}
+
+	public Long getOrderId() {
+		return orderId;
+	}
+
+	public void setOrderId(Long orderId) {
+		this.orderId = orderId;
+	}
+
+	public Long getCampaignId() {
+		return campaignId;
+	}
+
+	public void setCampaignId(Long campaignId) {
+		this.campaignId = campaignId;
+	}
+
+	public Long getAdGroupId() {
+		return adGroupId;
+	}
+
+	public void setAdGroupId(Long adGroupId) {
+		this.adGroupId = adGroupId;
+	}
+
+	public Long getBannerId() {
+		return bannerId;
+	}
+
+	public void setBannerId(Long bannerId) {
+		this.bannerId = bannerId;
+	}
+
+	public Long getBannerTemplateId() {
+		return bannerTemplateId;
+	}
+
+	public void setBannerTemplateId(Long bannerTemplateId) {
+		this.bannerTemplateId = bannerTemplateId;
+	}
+
+	public Long getPlaceId() {
+		return placeId;
+	}
+
+	public void setPlaceId(Long placeId) {
+		this.placeId = placeId;
+	}
+
+	public String getLocation() {
+		return location;
+	}
+
+	public void setLocation(String location) {
+		this.location = location;
+	}
+
+	public Integer getOs() {
+		return os;
+	}
+
+	public void setOs(Integer os) {
+		this.os = os;
+	}
+
+	public String getAdvertiserName() {
+		return advertiserName;
+	}
+
+	public void setAdvertiserName(String advertiserName) {
+		this.advertiserName = advertiserName;
+	}
+
+	public String getPlaceName() {
+		return placeName;
+	}
+
+	public void setPlaceName(String placeName) {
+		this.placeName = placeName;
+	}
+
+	public String getOrderName() {
+		return orderName;
+	}
+
+	public void setOrderName(String orderName) {
+		this.orderName = orderName;
+	}
+
+	public String getCampaignName() {
+		return campaignName;
+	}
+
+	public void setCampaignName(String campaignName) {
+		this.campaignName = campaignName;
+	}
+
+	public String getAdGroupName() {
+		return adGroupName;
+	}
+
+	public void setAdGroupName(String adGroupName) {
+		this.adGroupName = adGroupName;
+	}
+
+	public String getBannerName() {
+		return bannerName;
+	}
+
+	public void setBannerName(String bannerName) {
+		this.bannerName = bannerName;
+	}
+
+	public double getRequest() {
+		return request;
+	}
+
+	public void setRequest(double request) {
+		this.request = request;
+	}
+
+	public double getImpression() {
+		return impression;
+	}
+
+	public void setImpression(double impression) {
+		this.impression = impression;
+	}
+
+	public double getImpressionSum() {
+		return impressionSum;
+	}
+
+	public void setImpressionSum(double impressionSum) {
+		this.impressionSum = impressionSum;
+	}
+
+	public double getClick() {
+		return click;
+	}
+
+	public void setClick(double click) {
+		this.click = click;
+	}
+
+	public double getClickSum() {
+		return clickSum;
+	}
+
+	public void setClickSum(double clickSum) {
+		this.clickSum = clickSum;
+	}
+
+	public double getVisit() {
+		return visit;
+	}
+
+	public void setVisit(double visit) {
+		this.visit = visit;
+	}
+
+	public double getVisitSum() {
+		return visitSum;
+	}
+
+	public void setVisitSum(double visitSum) {
+		this.visitSum = visitSum;
+	}
+
+	public double getConversion() {
+		return conversion;
+	}
+
+	public void setConversion(double conversion) {
+		this.conversion = conversion;
+	}
+
+	public double getConversionSum() {
+		return conversionSum;
+	}
+
+	public void setConversionSum(double conversionSum) {
+		this.conversionSum = conversionSum;
+	}
+
+	public double getImpressionRate() {
+		return impressionRate;
+	}
+
+	public void setImpressionRate(double impressionRate) {
+		this.impressionRate = impressionRate;
+	}
+
+	public double getClickRate() {
+		return clickRate;
+	}
+
+	public void setClickRate(double clickRate) {
+		this.clickRate = clickRate;
+	}
+
+	public double getClickRatesum() {
+		return clickRatesum;
+	}
+
+	public void setClickRatesum(double clickRatesum) {
+		this.clickRatesum = clickRatesum;
+	}
+
+	public double getVisitRate() {
+		return visitRate;
+	}
+
+	public void setVisitRate(double visitRate) {
+		this.visitRate = visitRate;
+	}
+
+	public double getVisitRatesum() {
+		return visitRatesum;
+	}
+
+	public void setVisitRatesum(double visitRatesum) {
+		this.visitRatesum = visitRatesum;
+	}
+
+	public double getConversionRate() {
+		return conversionRate;
+	}
+
+	public void setConversionRate(double conversionRate) {
+		this.conversionRate = conversionRate;
+	}
+
+	public double getConversionRatesum() {
+		return conversionRatesum;
+	}
+
+	public void setConversionRatesum(double conversionRatesum) {
+		this.conversionRatesum = conversionRatesum;
+	}
+
+	public double geteCmp() {
+		return eCmp;
+	}
+
+	public void seteCmp(double eCmp) {
+		this.eCmp = eCmp;
+	}
+
+	public double geteCmpSum() {
+		return eCmpSum;
+	}
+
+	public void seteCmpSum(double eCmpSum) {
+		this.eCmpSum = eCmpSum;
+	}
+
+	public double getConsume() {
+		return consume;
+	}
+
+	public void setConsume(double consume) {
+		this.consume = consume;
+	}
+
+	public double getConsumeSum() {
+		return consumeSum;
+	}
+
+	public void setConsumeSum(double consumeSum) {
+		this.consumeSum = consumeSum;
+	}
+
+	public Date getStartDate() {
+		return startDate;
+	}
+
+	public void setStartDate(Date startDate) {
+		this.startDate = startDate;
+	}
+
+	public Date getEndDate() {
+		return endDate;
+	}
+
+	public void setEndDate(Date endDate) {
+		this.endDate = endDate;
+	}
+
+	public Date getReportDate() {
+		return reportDate;
+	}
+
+	public void setReportDate(Date reportDate) {
+		this.reportDate = reportDate;
+	}
+
+	public Integer getHour() {
+		return hour;
+	}
+
+	public void setHour(Integer hour) {
+		this.hour = hour;
+	}
+	
+	
+	public Long getZoneId() {
+		return zoneId;
+	}
+
+	public void setZoneId(Long zoneId) {
+		this.zoneId = zoneId;
+	}
+
+	public String getZoneName() {
+		return zoneName;
+	}
+
+	public void setZoneName(String zoneName) {
+		this.zoneName = zoneName;
+	}
+
+	public double getViewRate() {
+		return viewRate;
+	}
+
+	public void setViewRate(double viewRate) {
+		this.viewRate = viewRate;
+	}
+
+	public double getWidth() {
+		return width;
+	}
+
+	public void setWidth(double width) {
+		this.width = width;
+	}
+
+	public double getHeight() {
+		return height;
+	}
+
+	public void setHeight(double height) {
+		this.height = height;
+	}
+
+	public Long getPosition() {
+		return position;
+	}
+
+	public void setPosition(Long position) {
+		this.position = position;
+	}
+
+	public Long getSystem() {
+		return system;
+	}
+
+	public void setSystem(Long system) {
+		this.system = system;
+	}
+
+	public Long getDevice() {
+		return device;
+	}
+
+	public void setDevice(Long device) {
+		this.device = device;
+	}
+
+	public String getCn() {
+		return cn;
+	}
+
+	public void setCn(String cn) {
+		this.cn = cn;
+	}
+
+	public Integer getCnMark() {
+		return cnMark;
+	}
+
+	public void setCnMark(Integer cnMark) {
+		this.cnMark = cnMark;
+	}
+
+	public String getCn_city() {
+		return cn_city;
+	}
+
+	public void setCn_city(String cn_city) {
+		this.cn_city = cn_city;
+	}
+
+	public String getPlace() {
+		return place;
+	}
+
+	public void setPlace(String place) {
+		this.place = place;
+	}
+
+	public String getApmac() {
+		return apmac;
+	}
+
+	public void setApmac(String apmac) {
+		this.apmac = apmac;
+	}
+
+	public double getPv() {
+		return pv;
+	}
+
+	public void setPv(double pv) {
+		this.pv = pv;
+	}
+
+	public double getUv() {
+		return uv;
+	}
+
+	public void setUv(double uv) {
+		this.uv = uv;
+	}
+
+	public Long getuImpression() {
+		return uImpression;
+	}
+
+	public void setuImpression(Long uImpression) {
+		this.uImpression = uImpression;
+	}
+
+	public Long getuClick() {
+		return uClick;
+	}
+
+	public void setuClick(Long uClick) {
+		this.uClick = uClick;
+	}
+
+	public double getFillRate() {
+		return fillRate;
+	}
+
+	public void setFillRate(double fillRate) {
+		this.fillRate = fillRate;
+	}
+
+	public double geteCpm() {
+		return eCpm;
+	}
+
+	public void seteCpm(double eCpm) {
+		this.eCpm = eCpm;
+	}
+
+	public double getIncome() {
+		return income;
+	}
+
+	public void setIncome(double income) {
+		this.income = income;
+	}
+
+	@Override
+	public String toString() {
+		return "DeliverAnalysis [id=" + id + ", advertiserId=" + advertiserId
+				+ ", orderId=" + orderId + ", campaignId=" + campaignId
+				+ ", adGroupId=" + adGroupId + ", bannerId=" + bannerId
+				+ ", bannerTemplateId=" + bannerTemplateId + ", placeId="
+				+ placeId + ", location=" + location + ", os=" + os
+				+ ", advertiserName=" + advertiserName + ", placeName="
+				+ placeName + ", orderName=" + orderName + ", campaignName="
+				+ campaignName + ", adGroupName=" + adGroupName
+				+ ", bannerName=" + bannerName + ", request=" + request
+				+ ", impression=" + impression + ", impressionSum="
+				+ impressionSum + ", click=" + click + ", clickSum=" + clickSum
+				+ ", visit=" + visit + ", visitSum=" + visitSum
+				+ ", conversion=" + conversion + ", conversionSum="
+				+ conversionSum + ", impressionRate=" + impressionRate
+				+ ", clickRate=" + clickRate + ", clickRatesum=" + clickRatesum
+				+ ", visitRate=" + visitRate + ", visitRatesum=" + visitRatesum
+				+ ", conversionRate=" + conversionRate + ", conversionRatesum="
+				+ conversionRatesum + ", eCmp=" + eCmp + ", eCmpSum=" + eCmpSum
+				+ ", consume=" + consume + ", consumeSum=" + consumeSum
+				+ ", startDate=" + startDate + ", endDate=" + endDate
+				+ ", reportDate=" + reportDate + ", hour=" + hour + ", zoneId="
+				+ zoneId + ", zoneName=" + zoneName + ", viewRate=" + viewRate
+				+ ", width=" + width + ", height=" + height + ", position="
+				+ position + ", system=" + system + ", device=" + device
+				+ ", cn=" + cn + ", cnMark=" + cnMark + ", cn_city=" + cn_city
+				+ ", place=" + place + ", apmac=" + apmac + ", pv=" + pv
+				+ ", uv=" + uv + ", uImpression=" + uImpression + ", uClick="
+				+ uClick + ", fillRate=" + fillRate + ", eCpm=" + eCpm
+				+ ", income=" + income + "]";
+	}
+	
+	
+}

+ 52 - 0
src/main/java/com/cloudcross/ssp/model/Dimension.java

@@ -0,0 +1,52 @@
+package com.cloudcross.ssp.model;
+/**
+ * 创建人:zhoujun
+ * 创建时间:2015.11.11
+ *
+ */
+public class Dimension {
+	private Long id;
+	private String name;
+	private String content;
+	private byte isDefault;
+	private Long accountId;
+	
+	public Long getId() {
+		return id;
+	}
+	public void setId(Long id) {
+		this.id = id;
+	}
+	public String getName() {
+		return name;
+	}
+	public void setName(String name) {
+		this.name = name;
+	}
+	public String getContent() {
+		return content;
+	}
+	public void setContent(String content) {
+		this.content = content;
+	}
+	public byte getIsDefault() {
+		return isDefault;
+	}
+	public void setIsDefault(byte isDefault) {
+		this.isDefault = isDefault;
+	}
+	public Long getAccountId() {
+		return accountId;
+	}
+	public void setAccountId(Long accountId) {
+		this.accountId = accountId;
+	}
+	@Override
+	public String toString() {
+		return "Dimension [id=" + id + ", name=" + name + ", content="
+				+ content + ", isDefault=" + isDefault + ", accountId="
+				+ accountId + "]";
+	}
+	
+	
+}

+ 60 - 0
src/main/java/com/cloudcross/ssp/model/Direct.java

@@ -0,0 +1,60 @@
+package com.cloudcross.ssp.model;
+
+
+/**
+ * 定向表,对应数据库里面的表t_target_show
+ * @author luohongyu
+ */
+
+import java.util.Date;
+
+public class Direct {
+	private Long id ;
+	//策略Id
+	private Long adGroupId;
+	//定向的类型设置
+	private Integer directType;
+	//定向回显
+	private String backShow;
+	//用来给rv_acls字段存值
+	private String  data;
+	private Date updated;
+	public Long getId() {
+		return id;
+	}
+	public void setId(Long id) {
+		this.id = id;
+	}
+	public Long getAdGroupId() {
+		return adGroupId;
+	}
+	public void setAdGroupId(Long adGroupId) {
+		this.adGroupId = adGroupId;
+	}
+	public Integer getDirectType() {
+		return directType;
+	}
+	public void setDirectType(Integer directType) {
+		this.directType = directType;
+	}
+ 
+	
+	public String getBackShow() {
+		return backShow;
+	}
+	public void setBackShow(String backShow) {
+		this.backShow = backShow;
+	}
+	public String getData() {
+		return data;
+	}
+	public void setData(String data) {
+		this.data = data;
+	}
+	public Date getUpdated() {
+		return updated;
+	}
+	public void setUpdated(Date updated) {
+		this.updated = updated;
+	}
+}

+ 177 - 0
src/main/java/com/cloudcross/ssp/model/Finance.java

@@ -0,0 +1,177 @@
+package com.cloudcross.ssp.model;
+
+import java.util.Date;
+
+public class Finance {
+	private Long id;
+	
+	//用户账户ID
+	private Long accountId;
+	
+	// 分配时间
+	private Date actTime;
+	//交易号
+	private String num;
+	
+	//广告主名称
+	private String advertiserName;
+	
+	//代理商充值的金额
+	private Double charge;
+	
+	//代理商给广告主分配的金额
+	private Double allocate;
+	
+	//广告主消费的金额
+	private Double consume;
+	
+	private String memo;
+	
+	
+	// 暂时未用到该值
+	private Double saveMoney;
+	
+	//广告主代理商ID
+	private Long agentId;
+	//广告主ID
+	private Long advertiserId;
+	
+	//余额
+	private Double balance;
+
+	public Double getBalance() {
+		return balance;
+	}
+	public void setBalance(Double balance) {
+		this.balance = balance;
+	}
+	
+	//最后更新时间
+	private Date upDated;
+	
+	public Date getUpDated() {
+		return upDated;
+	}
+	public void setUpDated(Date upDated) {
+		this.upDated = upDated;
+	}
+	
+
+	//广告主账户余额
+	private Double adBalance;
+	//代理商账户余额
+	private Double agentBalance;
+	//累计分配的金额(广告主)
+	private Double sumAllocation;
+
+	public Double getAdBalance() {
+		return adBalance;
+	}
+	public void setAdBalance(Double adBalance) {
+		this.adBalance = adBalance;
+	}
+	public Double getAgentBalance() {
+		return agentBalance;
+	}
+	public void setAgentBalance(Double agentBalance) {
+		this.agentBalance = agentBalance;
+	}
+	public Double getSumAllocation() {
+		return sumAllocation;
+	}
+	public void setSumAllocation(Double sumAllocation) {
+		this.sumAllocation = sumAllocation;
+	}
+	
+	
+	
+	public Long getId() {
+		return id;
+	}
+	public void setId(Long id) {
+		this.id = id;
+	}
+	public Long getAccountId() {
+		return accountId;
+	}
+	public void setAccountId(Long accountId) {
+		this.accountId = accountId;
+	}
+	public Date getActTime() {
+		return actTime;
+	}
+	public void setActTime(Date actTime) {
+		this.actTime = actTime;
+	}
+	public String getNum() {
+		return num;
+	}
+	public void setNum(String num) {
+		this.num = num;
+	}
+	public String getAdvertiserName() {
+		return advertiserName;
+	}
+	public void setAdvertiserName(String advertiserName) {
+		this.advertiserName = advertiserName;
+	}
+	public Double getCharge() {
+		return charge;
+	}
+	public void setCharge(Double charge) {
+		this.charge = charge;
+	}
+	public Double getAllocate() {
+		return allocate;
+	}
+	public void setAllocate(Double allocate) {
+		this.allocate = allocate;
+	}
+	public Double getConsume() {
+		return consume;
+	}
+	public void setConsume(Double consume) {
+		this.consume = consume;
+	}
+	public String getMemo() {
+		return memo;
+	}
+	public void setMemo(String memo) {
+		this.memo = memo;
+	}
+	public Double getSaveMoney() {
+		return saveMoney;
+	}
+	public void setSaveMoney(Double saveMoney) {
+		this.saveMoney = saveMoney;
+	}
+	public Long getAgentId() {
+		return agentId;
+	}
+	public void setAgentId(Long agentId) {
+		this.agentId = agentId;
+	}
+	public Long getAdvertiserId() {
+		return advertiserId;
+	}
+	public void setAdvertiserId(Long advertiserId) {
+		this.advertiserId = advertiserId;
+	}
+	@Override
+	public String toString() {
+		return "Finance [id=" + id + ", accountId=" + accountId + ", actTime=" + actTime + ", num=" + num
+				+ ", advertiserName=" + advertiserName + ", charge=" + charge + ", allocate=" + allocate + ", consume="
+				+ consume + ", memo=" + memo + ", saveMoney=" + saveMoney + ", agentId=" + agentId + ", advertiserId="
+				+ advertiserId + ", balance=" + balance + ", upDated=" + upDated + ", adBalance=" + adBalance
+				+ ", agentBalance=" + agentBalance + ", sumAllocation=" + sumAllocation + "]";
+	}
+
+
+	
+	
+	
+	
+	
+
+}
+

+ 39 - 0
src/main/java/com/cloudcross/ssp/model/Industry.java

@@ -0,0 +1,39 @@
+package com.cloudcross.ssp.model;
+
+import com.cloudcross.ssp.web.widget.SelectorController.ISelector;
+
+public class Industry implements ISelector{
+	
+	private Long id;
+	
+	private String name;
+	
+	public Long getId() {
+		return id;
+	}
+
+	public void setId(Long id) {
+		this.id = id;
+	}
+
+	public String getName() {
+		return name;
+	}
+
+	public void setName(String name) {
+		this.name = name;
+	}
+
+	@Override
+	public String getLabel() {
+		// TODO Auto-generated method stub
+		return this.name;
+	}
+
+	@Override
+	public String getValue() {
+		// TODO Auto-generated method stub
+		return String.valueOf(this.id);
+	}
+	
+}

+ 128 - 0
src/main/java/com/cloudcross/ssp/model/Location.java

@@ -0,0 +1,128 @@
+package com.cloudcross.ssp.model;
+
+/**
+ * 地域表,对应数据库里面的表t_location
+ * @author luohongyu
+ */
+
+public class Location {
+	private Long id;
+	private String location;
+	private String locationT;
+	private String location1;
+	private String location2;
+	private String location3;
+	private String country;
+	private String cn;
+	private String big5;
+	private String cnCity;
+	private String big5City;
+	private String cnDistrict;
+	private String big5District;
+	private String py;
+	private String enCity;
+	private String enDistrict;
+	private String en;
+	public Long getId() {
+		return id;
+	}
+	public void setId(Long id) {
+		this.id = id;
+	}
+	public String getLocation() {
+		return location;
+	}
+	public void setLocation(String location) {
+		this.location = location;
+	}
+	public String getLocationT() {
+		return locationT;
+	}
+	public void setLocationT(String locationT) {
+		this.locationT = locationT;
+	}
+	public String getLocation1() {
+		return location1;
+	}
+	public void setLocation1(String location1) {
+		this.location1 = location1;
+	}
+	public String getLocation2() {
+		return location2;
+	}
+	public void setLocation2(String location2) {
+		this.location2 = location2;
+	}
+	public String getLocation3() {
+		return location3;
+	}
+	public void setLocation3(String location3) {
+		this.location3 = location3;
+	}
+	public String getCountry() {
+		return country;
+	}
+	public void setCountry(String country) {
+		this.country = country;
+	}
+	public String getCn() {
+		return cn;
+	}
+	public void setCn(String cn) {
+		this.cn = cn;
+	}
+	public String getBig5() {
+		return big5;
+	}
+	public void setBig5(String big5) {
+		this.big5 = big5;
+	}
+	public String getCnCity() {
+		return cnCity;
+	}
+	public void setCnCity(String cnCity) {
+		this.cnCity = cnCity;
+	}
+	public String getBig5City() {
+		return big5City;
+	}
+	public void setBig5City(String big5City) {
+		this.big5City = big5City;
+	}
+	public String getCnDistrict() {
+		return cnDistrict;
+	}
+	public void setCnDistrict(String cnDistrict) {
+		this.cnDistrict = cnDistrict;
+	}
+	public String getBig5District() {
+		return big5District;
+	}
+	public void setBig5District(String big5District) {
+		this.big5District = big5District;
+	}
+	public String getPy() {
+		return py;
+	}
+	public void setPy(String py) {
+		this.py = py;
+	}
+	public String getEnCity() {
+		return enCity;
+	}
+	public void setEnCity(String enCity) {
+		this.enCity = enCity;
+	}
+	public String getEnDistrict() {
+		return enDistrict;
+	}
+	public void setEnDistrict(String enDistrict) {
+		this.enDistrict = enDistrict;
+	}
+	public String getEn() {
+		return en;
+	}
+	public void setEn(String en) {
+		this.en = en;
+	}
+}

+ 137 - 0
src/main/java/com/cloudcross/ssp/model/Log.java

@@ -0,0 +1,137 @@
+package com.cloudcross.ssp.model;
+
+import java.util.Date;
+
+public class Log {
+		// 主键
+		private Long id;
+		// 表名
+		private String tableName;
+		// 修改记录id
+		private Long recordId;
+		// 用户id
+		private Long accountId;
+		// 操作人真实姓名
+		private String accountName;
+		// 模块
+		private String module;
+		// 操作类型
+		private String actionType;
+		// 变更详情
+		private String action;
+		// 操作时长
+		private String actionTime;
+		// 用户ip
+		private String userIp;
+		// 操作时间
+		private Date operTime;
+		
+		
+		
+		public Log() {}
+		
+		public Log(Long accounId, String accounName, String module,
+				String actionType, String action, String actionTime,
+				String userIp, Date operTime) {
+			super();
+			this.accountId = accountId;
+			this.accountName = accountName;
+			this.module = module;
+			this.actionType = actionType;
+			this.action = action;
+			this.actionTime = actionTime;
+			this.userIp = userIp;
+			this.operTime = operTime;
+		}
+		
+		public String getTableName() {
+			return tableName;
+		}
+
+		public void setTableName(String tableName) {
+			this.tableName = tableName;
+		}
+
+		public Long getRecordId() {
+			return recordId;
+		}
+
+		public void setRecordId(Long recordId) {
+			this.recordId = recordId;
+		}
+
+		public Long getId() {
+			return id;
+		}
+		public void setId(Long id) {
+			this.id = id;
+		}
+		
+		public Long getAccountId() {
+			return accountId;
+		}
+
+		public void setAccountId(Long accountId) {
+			this.accountId = accountId;
+		}
+
+		public String getAccountName() {
+			return accountName;
+		}
+
+		public void setAccountName(String accountName) {
+			this.accountName = accountName;
+		}
+
+		public String getModule() {
+			return module;
+		}
+		public void setModule(String module) {
+			this.module = module;
+		}
+		public String getActionType() {
+			return actionType;
+		}
+		public void setActionType(String actionType) {
+			this.actionType = actionType;
+		}
+		public String getAction() {
+			return action;
+		}
+		public void setAction(String action) {
+			this.action = action;
+		}
+		public String getActionTime() {
+			return actionTime;
+		}
+		public void setActionTime(String actionTime) {
+			this.actionTime = actionTime;
+		}
+		public String getUserIp() {
+			return userIp;
+		}
+		public void setUserIp(String userIp) {
+			this.userIp = userIp;
+		}
+		public Date getOperTime() {
+			return operTime;
+		}
+		public void setOperTime(Date operTime) {
+			this.operTime = operTime;
+		}
+
+		@Override
+		public String toString() {
+			return "Log [id=" + id + ", tableName=" + tableName + ", recordId="
+					+ recordId + ", accountId=" + accountId + ", accountName="
+					+ accountName + ", module=" + module + ", actionType="
+					+ actionType + ", action=" + action + ", actionTime="
+					+ actionTime + ", userIp=" + userIp + ", operTime="
+					+ operTime + "]";
+		}
+
+		
+		
+		
+		
+}

+ 59 - 0
src/main/java/com/cloudcross/ssp/model/Message.java

@@ -0,0 +1,59 @@
+package com.cloudcross.ssp.model;
+
+import java.util.Date;
+
+public class Message {
+			//消息Id
+			private Long id;
+			//消息内容
+			private String content;
+			//发送时间
+			private Date sendTime;
+			//账户id
+			private Integer accountId;
+			//是否已读
+			private Boolean read;
+			//类型(1-审核,2-提现,3-其他)
+			private Integer type;
+			
+			public Integer getType() {
+				return type;
+			}
+			public void setType(Integer type) {
+				this.type = type;
+			}
+			public Long getId() {
+				return id;
+			}
+			public void setId(Long id) {
+				this.id = id;
+			}
+			public String getContent() {
+				return content;
+			}
+			public void setContent(String content) {
+				this.content = content;
+			}
+			
+			public Date getSendTime() {
+				return sendTime;
+			}
+			public void setSendTime(Date sendTime) {
+				this.sendTime = sendTime;
+			}
+			public Integer getAccountId() {
+				return accountId;
+			}
+			public void setAccountId(Integer accountId) {
+				this.accountId = accountId;
+			}
+			public Boolean getRead() {
+				return read;
+			}
+			public void setRead(Boolean read) {
+				this.read = read;
+			}
+			
+		
+			
+}

+ 31 - 0
src/main/java/com/cloudcross/ssp/model/MessageRead.java

@@ -0,0 +1,31 @@
+package com.cloudcross.ssp.model;
+
+public class MessageRead {
+	//已读消息id
+	private Long id;
+	//消息id
+	private Long messageId;
+	//账号id
+	private Long accountId;
+	
+	public Long getId() {
+		return id;
+	}
+	public void setId(Long id) {
+		this.id = id;
+	}
+	public Long getMessageId() {
+		return messageId;
+	}
+	public void setMessageId(Long messageId) {
+		this.messageId = messageId;
+	}
+	public Long getAccountId() {
+		return accountId;
+	}
+	public void setAccountId(Long accountId) {
+		this.accountId = accountId;
+	}
+	
+	
+}

+ 131 - 0
src/main/java/com/cloudcross/ssp/model/Operator.java

@@ -0,0 +1,131 @@
+package com.cloudcross.ssp.model;
+
+import com.cloudcross.ssp.web.widget.SelectorController.ISelector;
+
+/**
+ * 媒体运营商实体类!对应t_operator表
+ * @author CloudCross
+ *
+ */
+public class Operator implements ISelector{
+	private Long id;
+	private String companyName;
+	private String linkMan;
+	private String tel;
+	private String mobile;
+	private String homePage;
+	private String account;
+	private String accountName;
+	private String bank;
+	private Integer status;
+	private Long adminId;//是相应的管理员账号的关联的t_account.id
+	private String address;
+	private String zip;
+	private String email;
+	
+	public String getHomePage() {
+		return homePage;
+	}
+	public void setHomePage(String homePage) {
+		this.homePage = homePage;
+	}
+	public String getMobile() {
+		return mobile;
+	}
+	public void setMobile(String mobile) {
+		this.mobile = mobile;
+	}
+	public String getAddress() {
+		return address;
+	}
+	public void setAddress(String address) {
+		this.address = address;
+	}
+	public String getZip() {
+		return zip;
+	}
+	public void setZip(String zip) {
+		this.zip = zip;
+	}
+	public String getEmail() {
+		return email;
+	}
+	public void setEmail(String email) {
+		this.email = email;
+	}
+	public Long getAdminId() {
+		return adminId;
+	}
+	public void setAdminId(Long adminId) {
+		this.adminId = adminId;
+	}
+	public Integer getStatus() {
+		return status;
+	}
+	public void setStatus(Integer status) {
+		this.status = status;
+	}
+	public Long getId() {
+		return id;
+	}
+	public void setId(Long id) {
+		this.id = id;
+	}
+	public String getCompanyName() {
+		return companyName;
+	}
+	public void setCompanyName(String companyName) {
+		this.companyName = companyName;
+	}
+	public String getLinkMan() {
+		return linkMan;
+	}
+	public void setLinkMan(String linkMan) {
+		this.linkMan = linkMan;
+	}
+	public String getTel() {
+		return tel;
+	}
+	public void setTel(String tel) {
+		this.tel = tel;
+	}
+	public String getAccount() {
+		return account;
+	}
+	public void setAccount(String account) {
+		this.account = account;
+	}
+	public String getAccountName() {
+		return accountName;
+	}
+	public void setAccountName(String accountName) {
+		this.accountName = accountName;
+	}
+	public String getBank() {
+		return bank;
+	}
+	public void setBank(String bank) {
+		this.bank = bank;
+	}
+	
+	
+	@Override
+	public String toString() {
+		return "Operator [id=" + id + ", companyName=" + companyName
+				+ ", linkMan=" + linkMan + ", tel=" + tel + ", mobile="
+				+ mobile + ", account=" + account + ", accountName="
+				+ accountName + ", bank=" + bank + ", status=" + status
+				+ ", adminId=" + adminId + ", address=" + address + ", zip="
+				+ zip + ", email=" + email + "]";
+	}
+	@Override
+	public String getLabel() {
+		// TODO Auto-generated method stub
+		return this.companyName;
+	}
+	@Override
+	public String getValue() {
+		// TODO Auto-generated method stub
+		return String.valueOf(this.id);
+	}
+}

+ 109 - 0
src/main/java/com/cloudcross/ssp/model/OperatorBalance.java

@@ -0,0 +1,109 @@
+package com.cloudcross.ssp.model;
+
+import java.util.Date;
+
+/**
+ * 提现记录表,与数据库表t_operator_balance相对应
+ * @author chenyou
+ *
+ */
+public class OperatorBalance {
+	//主键
+	private Long id;
+	//运营商id
+	private Long operatorId;
+	//时间
+	private Date actTime;
+	//交易号
+	private String num;
+	//提取金额
+	private Float amount;
+	//状态,1-申请中,2-审核不通过,3-已提现
+	private Integer state;
+	//收入
+	private Float income;
+	//可提现金额
+	private Float balance;
+	//
+	public Integer impression;
+	public Integer click;
+	public Float ecpm;
+	public Integer getImpression() {
+		return impression;
+	}
+	public void setImpression(Integer impression) {
+		this.impression = impression;
+	}
+	public Integer getClick() {
+		return click;
+	}
+	public void setClick(Integer click) {
+		this.click = click;
+	}
+	public Float getEcpm() {
+		return ecpm;
+	}
+	public void setEcpm(Float ecpm) {
+		this.ecpm = ecpm;
+	}
+	public Float getIncome() {
+		return income;
+	}
+	public void setIncome(Float income) {
+		this.income = income;
+	}
+	public Float getBalance() {
+		return balance;
+	}
+	public void setBalance(Float balance) {
+		this.balance = balance;
+	}
+	public Long getId() {
+		return id;
+	}
+	public void setId(Long id) {
+		this.id = id;
+	}
+	public Long getOperatorId() {
+		return operatorId;
+	}
+	public void setOperatorId(Long operatorId) {
+		this.operatorId = operatorId;
+	}
+	public Date getActTime() {
+		return actTime;
+	}
+	public void setActTime(Date actTime) {
+		this.actTime = actTime;
+	}
+	public String getNum() {
+		return num;
+	}
+	public void setNum(String num) {
+		this.num = num;
+	}
+	public Float getAmount() {
+		return amount;
+	}
+	public void setAmount(Float amount) {
+		this.amount = amount;
+	}
+	public Integer getState() {
+		return state;
+	}
+	public void setState(Integer state) {
+		this.state = state;
+	}
+	@Override
+	public String toString() {
+		return "OperatorBalance [id=" + id + ", operatorId=" + operatorId
+				+ ", actTime=" + actTime + ", num=" + num + ", amount="
+				+ amount + ", state=" + state + ", income=" + income
+				+ ", balance=" + balance + ", impression=" + impression
+				+ ", click=" + click + ", ecpm=" + ecpm + "]";
+	}
+	
+	
+	
+	
+}

+ 263 - 0
src/main/java/com/cloudcross/ssp/model/OperatorReport.java

@@ -0,0 +1,263 @@
+package com.cloudcross.ssp.model;
+
+import java.util.Date;
+
+public final class OperatorReport {
+	//id
+	private Long id;
+	//广告位id
+	private Long zoneId;
+	//广告位名称
+	private String zoneName;
+	//浏览量占比
+	private double viewRate;
+	//广告位宽
+	private double width;
+	//广告位高
+	private double height;
+	//位置
+	private Long position;
+	//系统
+	private Long system;
+	//类型
+	private Long device;
+	//地域
+	private Long location;
+	
+	//省份
+	private String cn;
+	//是不是省份的标志1-表示省份,2-表示不是,默认不是
+	//注:这个属性是在地域报表导出excel时用到的
+	private Integer cnMark = 2;
+	//城市
+	private String cn_city;
+	//场景
+	private String place;
+	//热点
+	private String apmac;
+	//PV
+	private double pv;
+	//UV
+	private double uv;
+	//曝光数
+	private double impression;
+	//唯一曝光数
+	private Long uImpression;
+	//点击数
+	private double click;
+	//唯一点击数
+	private Long uClick;
+    //填充率
+    private double fillRate;
+    //点击率
+	private double clickRate;
+	//eCmp
+	private double eCpm;
+	//收入
+	private double income;
+	//日期
+	private Date reportDate;
+	//开始日期
+	private Date startDate;
+	//结束日期
+	private Date endDate;	
+	
+	public String getApmac() {
+		return apmac;
+	}
+	public void setApmac(String apmac) {
+		this.apmac = apmac;
+	}
+	public Long getuImpression() {
+		return uImpression;
+	}
+	public void setuImpression(Long uImpression) {
+		this.uImpression = uImpression;
+	}
+	public Long getuClick() {
+		return uClick;
+	}
+	public void setuClick(Long uClick) {
+		this.uClick = uClick;
+	}
+	public Integer getCnMark() {
+		return cnMark;
+	}
+	public void setCnMark(Integer cnMark) {
+		this.cnMark = cnMark;
+	}
+	public Long getId() {
+		return id;
+	}
+	public void setId(Long id) {
+		this.id = id;
+	}
+	public Long getZoneId() {
+		return zoneId;
+	}
+	public void setZoneId(Long zoneId) {
+		this.zoneId = zoneId;
+	}
+	
+	public String getZoneName() {
+		return zoneName;
+	}
+	public void setZoneName(String zoneName) {
+		this.zoneName = zoneName;
+	}
+	public double getViewRate() {
+		return viewRate;
+	}
+	public void setViewRate(double viewRate) {
+		this.viewRate = viewRate;
+	}
+	public double getWidth() {
+		return width;
+	}
+	public void setWidth(double width) {
+		this.width = width;
+	}
+	public double getHeight() {
+		return height;
+	}
+	public void setHeight(double height) {
+		this.height = height;
+	}
+	
+	
+	public Long getPosition() {
+		return position;
+	}
+	public void setPosition(Long position) {
+		this.position = position;
+	}
+	
+	
+	public Long getSystem() {
+		return system;
+	}
+	public void setSystem(Long system) {
+		this.system = system;
+	}
+	
+	
+	public Long getDevice() {
+		return device;
+	}
+	public void setDevice(Long device) {
+		this.device = device;
+	}
+	
+	
+	public Long getLocation() {
+		return location;
+	}
+	public void setLocation(Long location) {
+		this.location = location;
+	}
+	
+	public String getCn() {
+		return cn;
+	}
+	public void setCn(String cn) {
+		this.cn = cn;
+	}
+	public String getCn_city() {
+		return cn_city;
+	}
+	public void setCn_city(String cn_city) {
+		this.cn_city = cn_city;
+	}
+	public String getPlace() {
+		return place;
+	}
+	public void setPlace(String place) {
+		this.place = place;
+	}
+	public double getPv() {
+		return pv;
+	}
+	public void setPv(double pv) {
+		this.pv = pv;
+	}
+	public double getUv() {
+		return uv;
+	}
+	public void setUv(double uv) {
+		this.uv = uv;
+	}
+	public double getImpression() {
+		return impression;
+	}
+	public void setImpression(double impression) {
+		this.impression = impression;
+	}
+	public double getClick() {
+		return click;
+	}
+	public void setClick(double click) {
+		this.click = click;
+	}
+	public double getFillRate() {
+		return fillRate;
+	}
+	public void setFillRate(double fillRate) {
+		this.fillRate = fillRate;
+	}
+	public double getClickRate() {
+		return clickRate;
+	}
+	public void setClickRate(double clickRate) {
+		this.clickRate = clickRate;
+	}
+	public double geteCpm() {
+		return eCpm;
+	}
+	public void seteCpm(double eCpm) {
+		this.eCpm = eCpm;
+	}
+	public double getIncome() {
+		return income;
+	}
+	public void setIncome(double income) {
+		this.income = income;
+	}
+	public Date getReportDate() {
+		return reportDate;
+	}
+	public void setReportDate(Date reportDate) {
+		this.reportDate = reportDate;
+	}
+	
+	public Date getStartDate() {
+		return startDate;
+	}
+	public void setStartDate(Date startDate) {
+		this.startDate = startDate;
+	}
+	public Date getEndDate() {
+		return endDate;
+	}
+	public void setEndDate(Date endDate) {
+		this.endDate = endDate;
+	}
+	
+	@Override
+	public String toString() {
+		return "OperatorReport [id=" + id + ", zoneId=" + zoneId
+				+ ", zoneName=" + zoneName + ", viewRate=" + viewRate
+				+ ", width=" + width + ", height=" + height + ", position="
+				+ position + ", system=" + system + ", device=" + device
+				+ ", location=" + location + ", cn=" + cn + ", cnMark="
+				+ cnMark + ", cn_city=" + cn_city + ", place=" + place
+				+ ", apmac=" + apmac + ", pv=" + pv + ", uv=" + uv
+				+ ", impression=" + impression + ", uImpression=" + uImpression
+				+ ", click=" + click + ", uClick=" + uClick + ", fillRate="
+				+ fillRate + ", clickRate=" + clickRate + ", eCpm=" + eCpm
+				+ ", income=" + income + ", reportDate=" + reportDate
+				+ ", startDate=" + startDate + ", endDate=" + endDate + "]";
+	}
+	
+	
+	
+}

+ 163 - 0
src/main/java/com/cloudcross/ssp/model/Order.java

@@ -0,0 +1,163 @@
+package com.cloudcross.ssp.model;
+
+import java.util.Date;
+
+import com.cloudcross.ssp.web.widget.SelectorController.ISelector;
+
+/**
+ * 订单表
+ * <p/>
+ * 与t_order表相关。
+ */
+public class Order implements ISelector {
+		// 主键
+		private Long id;
+		// 广告主ID
+		private Long advertiserId;
+		// 订单名称
+		private String name;
+		// 订单预算
+		private float budget;
+		// 订单备注
+		private String comment;
+		// 状态(0开启,1暂停)
+		private Integer status;
+		// 更新日期
+		private Date updated;
+		// 新增/status更新时间
+		private Date supdated;
+		/**
+		 * 活动个数
+		 * <p/>
+		 * 与t_campaign表相关。
+		 */
+		//活动个数campaign
+		private Long campaignNumber;
+		
+		private Long agentId;
+		
+		
+		public Long getAgentId() {
+			return agentId;
+		}
+		public void setAgentId(Long agentId) {
+			this.agentId = agentId;
+		}
+		public Long getCampaignNumber() {
+			return campaignNumber;
+		}
+		public void setCampaignNumber(Long campaignNumber) {
+			this.campaignNumber = campaignNumber;
+		}
+		public Long getId() {
+			return id;
+		}
+		public void setId(Long id) {
+			this.id = id;
+		}
+		public Long getAdvertiserId() {
+			return advertiserId;
+		}
+		public void setAdvertiserId(Long advertiserId) {
+			this.advertiserId = advertiserId;
+		}
+		public String getName() {
+			return name;
+		}
+		public void setName(String name) {
+			this.name = name;
+		}
+		public float getBudget() {
+			return budget;
+		}
+		public void setBudget(float budget) {
+			this.budget = budget;
+		}
+		public String getComment() {
+			return comment;
+		}
+		public void setComment(String comment) {
+			this.comment = comment;
+		}
+		public Integer getStatus() {
+			return status;
+		}
+		public void setStatus(Integer status) {
+			this.status = status;
+		}
+		
+		public Date getUpdated() {
+			return updated;
+		}
+		public void setUpdated(Date updated) {
+			this.updated = updated;
+		}
+		public Date getSupdated() {
+			return supdated;
+		}
+		public void setSupdated(Date supdated) {
+			this.supdated = supdated;
+		}
+		@Override
+		public String toString() {
+			return "Order [id=" + id + ", advertiserId=" + advertiserId
+					+ ", agentId=" + agentId + ",name=" + name + ", budget=" + budget + ", comment="
+					+ comment + ", status=" + status + ", upDate=" + updated
+					+ "]";
+		}
+		@Override
+		public String getLabel() {
+			
+			return this.name;
+		}
+		@Override
+		public String getValue() {
+			
+			return String.valueOf(this.id);
+		}
+		@Override
+		public int hashCode() {
+			final int prime = 31;
+			int result = 1;
+			result = prime * result
+					+ ((advertiserId == null) ? 0 : advertiserId.hashCode());
+			result = prime * result + Float.floatToIntBits(budget);
+			result = prime * result
+					+ ((comment == null) ? 0 : comment.hashCode());
+			result = prime * result + ((name == null) ? 0 : name.hashCode());
+			return result;
+		}
+		@Override
+		public boolean equals(Object obj) {
+			if (this == obj)
+				return true;
+			if (obj == null)
+				return false;
+			if (getClass() != obj.getClass())
+				return false;
+			Order other = (Order) obj;
+			if (advertiserId == null) {
+				if (other.advertiserId != null)
+					return false;
+			} else if (!advertiserId.equals(other.advertiserId))
+				return false;
+			if (Float.floatToIntBits(budget) != Float
+					.floatToIntBits(other.budget))
+				return false;
+			if (comment == null) {
+				if (other.comment != null)
+					return false;
+			} else if (!comment.equals(other.comment))
+				return false;
+			if (name == null) {
+				if (other.name != null)
+					return false;
+			} else if (!name.equals(other.name))
+				return false;
+			return true;
+		}
+	
+		
+		
+		
+}

+ 45 - 0
src/main/java/com/cloudcross/ssp/model/Params.java

@@ -0,0 +1,45 @@
+package com.cloudcross.ssp.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+
+
+/**
+ * 前台发送的是一个对象数组
+ * 后台需要以下对象接受
+ * 例如:
+ * menus[0].id	    1
+ * menus[0].level	1
+ * menus[1].id	    3
+ * menus[1].level	2
+ * menus[2].id	    2
+ * menus[2].level	3
+ * 这个菜单数组对象要接收这个对象,必须在这里加一个list<Resourcess>
+ * @author lanyuan
+ * Email:mmm333zzz520@163.com
+ * date:2014-2-12
+ */
+public class Params {
+
+	
+	private List<Resources> resources = new ArrayList<Resources>();
+	private List<String> id = new ArrayList<String>();
+
+	public List<String> getId() {
+		return id;
+	}
+
+	public void setId(List<String> id) {
+		this.id = id;
+	}
+
+	public List<Resources> getResources() {
+		return resources;
+	}
+
+	public void setResources(List<Resources> resources) {
+		this.resources = resources;
+	}
+
+}

+ 29 - 0
src/main/java/com/cloudcross/ssp/model/Place.java

@@ -0,0 +1,29 @@
+package com.cloudcross.ssp.model;
+
+/**
+ * 场景表,对应数据库里面的表t_place
+ * @author luohongyu
+ */
+
+public class Place {
+	private Long id;
+	private String name;
+	
+	public Long getId() {
+		return id;
+	}
+	public void setId(Long id) {
+		this.id = id;
+	}
+	public String getName() {
+		return name;
+	}
+	public void setName(String name) {
+		this.name = name;
+	}
+	@Override
+	public String toString() {
+		return "Place [id=" + id + ", name=" + name + "]";
+	}
+	
+}

+ 61 - 0
src/main/java/com/cloudcross/ssp/model/PlaceOperator.java

@@ -0,0 +1,61 @@
+package com.cloudcross.ssp.model;
+
+/**
+ * 运营商定义的场景名称和云联定义场景名称对对应表
+ * 对应数据库的t_place_operator表
+ * @author chenyou
+ *
+ */
+public class PlaceOperator {
+	//主键
+	private Long id;
+	//数据场景id
+	private Long operatorId;
+	//运营商自定义场景名称
+	private String name;
+	//标准场景id
+	private Long placeId;
+	//标准场景名称
+	private String placeName;
+	
+	public String getPlaceName() {
+		return placeName;
+	}
+	public void setPlaceName(String placeName) {
+		this.placeName = placeName;
+	}
+	public Long getId() {
+		return id;
+	}
+	public void setId(Long id) {
+		this.id = id;
+	}
+	public Long getOperatorId() {
+		return operatorId;
+	}
+	public void setOperatorId(Long operatorId) {
+		this.operatorId = operatorId;
+	}
+	public String getName() {
+		return name;
+	}
+	public void setName(String name) {
+		this.name = name;
+	}
+	public Long getPlaceId() {
+		return placeId;
+	}
+	public void setPlaceId(Long placeId) {
+		this.placeId = placeId;
+	}
+	
+	@Override
+	public String toString() {
+		return "PlaceOperator [id=" + id + ", operatorId=" + operatorId
+				+ ", name=" + name + ", placeId=" + placeId + ", placeName="
+				+ placeName + "]";
+	}
+	
+	
+	
+}

+ 107 - 0
src/main/java/com/cloudcross/ssp/model/Resources.java

@@ -0,0 +1,107 @@
+package com.cloudcross.ssp.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+
+@SuppressWarnings("serial")
+public class Resources implements java.io.Serializable {
+
+	private Integer id;
+	private String name;
+	private Integer parentId; //父类Id
+	private String parentName;
+	private String resKey;//这个权限KEY是唯一的,新增时要注意,
+	private String resUrl;//URL地址.例如:/videoType/query  不需要项目名和http://xxx:8080
+	private Integer level;//级别 菜单的顺序
+	private String type;//类型,目录 菜单  按扭..在spring security3安全权限中,涉及精确到按扭控制
+	private String description;
+	private List<Resources> children = new ArrayList<Resources>();
+
+	public Integer getId() {
+		return this.id;
+	}
+
+	public void setId(Integer id) {
+		this.id = id;
+	}
+
+	public String getType() {
+		return this.type;
+	}
+
+	public void setType(String type) {
+		this.type = type;
+	}
+
+	public String getName() {
+		return this.name;
+	}
+
+	public void setName(String name) {
+		this.name = name;
+	}
+
+	public String getResUrl() {
+		return resUrl;
+	}
+
+	public void setResUrl(String resUrl) {
+		this.resUrl = resUrl;
+	}
+
+	public Integer getLevel() {
+		return level;
+	}
+
+	public void setLevel(Integer level) {
+		this.level = level;
+	}
+
+	public String getResKey() {
+		return resKey;
+	}
+
+	public void setResKey(String resKey) {
+		this.resKey = resKey;
+	}
+
+	public String getDescription() {
+		return description;
+	}
+
+	public void setDescription(String description) {
+		this.description = description;
+	}
+
+	public Integer getParentId() {
+		return parentId;
+	}
+
+	public void setParentId(Integer parentId) {
+		this.parentId = parentId;
+	}
+
+
+	public String getParentName() {
+		return parentName;
+	}
+
+	public void setParentName(String parentName) {
+		this.parentName = parentName;
+	}
+
+	public List<Resources> getChildren() {
+		return children;
+	}
+
+	public void setChildren(List<Resources> children) {
+		this.children = children;
+	}
+
+	@Override
+	public String toString() {
+		return "Menu [id=" + id + ", name=" + name + ", parentId=" + parentId + ", parentName=" + parentName + ", resKey=" + resKey + ", resUrl=" + resUrl + ", level=" + level + ", type=" + type + ", description=" + description + ", children=" + children + "]";
+	}
+
+}

+ 20 - 0
src/main/java/com/cloudcross/ssp/model/ResourcesRole.java

@@ -0,0 +1,20 @@
+package com.cloudcross.ssp.model;
+
+import java.io.Serializable;
+@SuppressWarnings("serial")
+public class ResourcesRole implements Serializable{
+	private String resId;
+	private String roleId;
+	public String getResId() {
+		return resId;
+	}
+	public void setResId(String resId) {
+		this.resId = resId;
+	}
+	public String getRoleId() {
+		return roleId;
+	}
+	public void setRoleId(String roleId) {
+		this.roleId = roleId;
+	}
+}

+ 23 - 0
src/main/java/com/cloudcross/ssp/model/RoleAccount.java

@@ -0,0 +1,23 @@
+package com.cloudcross.ssp.model;
+
+import java.io.Serializable;
+
+@SuppressWarnings("serial")
+public class RoleAccount implements Serializable{
+
+	private Integer roleId;
+	private Integer accountId;
+	public Integer getRoleId() {
+		return roleId;
+	}
+	public void setRoleId(Integer roleId) {
+		this.roleId = roleId;
+	}
+	public Integer getAccountId() {
+		return accountId;
+	}
+	public void setAccountId(Integer accountId) {
+		this.accountId = accountId;
+	}
+	
+}

+ 67 - 0
src/main/java/com/cloudcross/ssp/model/Roles.java

@@ -0,0 +1,67 @@
+package com.cloudcross.ssp.model;
+
+import java.util.HashSet;
+import java.util.Set;
+
+@SuppressWarnings("serial")
+public class Roles implements java.io.Serializable {
+
+	private Integer id;
+	private String enable;//是否禁用角色 1 表示禁用 2 表示不禁用
+	private String name;
+	private String roleKey;//唯一,新境时,需要判断
+	private String description;
+	private Set<Resources> resources = new HashSet<Resources>(0);
+
+	public Roles() {
+	}
+
+	public Integer getId() {
+		return this.id;
+	}
+
+	public void setId(Integer id) {
+		this.id = id;
+	}
+
+	public String getEnable() {
+		return this.enable;
+	}
+
+	public void setEnable(String enable) {
+		this.enable = enable;
+	}
+
+	public String getName() {
+		return this.name;
+	}
+
+	public void setName(String name) {
+		this.name = name;
+	}
+
+	public Set<Resources> getResources() {
+		return resources;
+	}
+
+	public void setResources(Set<Resources> resources) {
+		this.resources = resources;
+	}
+
+	public String getDescription() {
+		return description;
+	}
+
+	public void setDescription(String description) {
+		this.description = description;
+	}
+
+	public String getRoleKey() {
+		return roleKey;
+	}
+
+	public void setRoleKey(String roleKey) {
+		this.roleKey = roleKey;
+	}
+
+}

+ 187 - 0
src/main/java/com/cloudcross/ssp/model/RptAdvertiserHour.java

@@ -0,0 +1,187 @@
+package com.cloudcross.ssp.model;
+
+import java.util.Date;
+
+/**
+ * 对应数据库的t_rpt_advertiser_hour表
+ * @author yzl
+ *
+ */
+public class RptAdvertiserHour {
+	//主键
+	private Long id;
+	//运营商id
+	private Long AdvertiserId;
+	//日期
+	private Date date;
+	//小时
+	private Integer hour;
+	//订单id
+	private Long orderId;
+	//活动id
+	private Long campaignId;
+	//投放Id
+	private Long adgroupId;
+	//创意Id
+	private Long bannerId;
+	//曝光数
+	private Long impression;
+	//点击数
+	private Long click;
+	//到达数
+	private Long visit;
+	//转化数
+	private Long conversion;
+	//ecpm
+	private Float ecpm;
+	//消费
+	private Long consume;
+	//一天总的到达数
+	private Long totalVisit;
+	//一天总的转化数
+	private Long totalConversion;
+	//一天总的曝光数
+	private Long totalImpression;
+	//一天总的点击数
+	private Long totalClick;
+	//一天总的ecpm
+	private Long totalEcpm;
+	//一天的消费数
+	private Long totalConsume;
+	public Long getId() {
+		return id;
+	}
+	public void setId(Long id) {
+		this.id = id;
+	}
+	public Long getAdvertiserId() {
+		return AdvertiserId;
+	}
+	public void setAdvertiserId(Long advertiserId) {
+		AdvertiserId = advertiserId;
+	}
+	public Date getDate() {
+		return date;
+	}
+	public void setDate(Date date) {
+		this.date = date;
+	}
+	public Integer getHour() {
+		return hour;
+	}
+	public void setHour(Integer hour) {
+		this.hour = hour;
+	}
+	public Long getOrderId() {
+		return orderId;
+	}
+	public void setOrderId(Long orderId) {
+		this.orderId = orderId;
+	}
+	public Long getCampaignId() {
+		return campaignId;
+	}
+	public void setCampaignId(Long campaignId) {
+		this.campaignId = campaignId;
+	}
+	public Long getAdgroupId() {
+		return adgroupId;
+	}
+	public void setAdgroupId(Long adgroupId) {
+		this.adgroupId = adgroupId;
+	}
+	public Long getBannerId() {
+		return bannerId;
+	}
+	public void setBannerId(Long bannerId) {
+		this.bannerId = bannerId;
+	}
+	public Long getImpression() {
+		return impression;
+	}
+	public void setImpression(Long impression) {
+		this.impression = impression;
+	}
+	public Long getClick() {
+		return click;
+	}
+	public void setClick(Long click) {
+		this.click = click;
+	}
+	public Long getVisit() {
+		return visit;
+	}
+	public void setVisit(Long visit) {
+		this.visit = visit;
+	}
+	public Long getConversion() {
+		return conversion;
+	}
+	public void setConversion(Long conversion) {
+		this.conversion = conversion;
+	}
+	public Float getEcpm() {
+		return ecpm;
+	}
+	public void setEcpm(Float ecpm) {
+		this.ecpm = ecpm;
+	}
+	public Long getConsume() {
+		return consume;
+	}
+	public void setConsume(Long consume) {
+		this.consume = consume;
+	}
+	public Long getTotalVisit() {
+		return totalVisit;
+	}
+	public void setTotalVisit(Long totalVisit) {
+		this.totalVisit = totalVisit;
+	}
+	public Long getTotalConversion() {
+		return totalConversion;
+	}
+	public void setTotalConversion(Long totalConversion) {
+		this.totalConversion = totalConversion;
+	}
+	public Long getTotalImpression() {
+		return totalImpression;
+	}
+	public void setTotalImpression(Long totalImpression) {
+		this.totalImpression = totalImpression;
+	}
+	public Long getTotalClick() {
+		return totalClick;
+	}
+	public void setTotalClick(Long totalClick) {
+		this.totalClick = totalClick;
+	}
+	public Long getTotalEcpm() {
+		return totalEcpm;
+	}
+	public void setTotalEcpm(Long totalEcpm) {
+		this.totalEcpm = totalEcpm;
+	}
+	public Long getTotalConsume() {
+		return totalConsume;
+	}
+	public void setTotalConsume(Long totalConsume) {
+		this.totalConsume = totalConsume;
+	}
+	@Override
+	public String toString() {
+		return "RptAdvertiserHour [id=" + id + ", AdvertiserId=" + AdvertiserId
+				+ ", date=" + date + ", hour=" + hour + ", orderId=" + orderId
+				+ ", campaignId=" + campaignId + ", adgroupId=" + adgroupId
+				+ ", bannerId=" + bannerId + ", impression=" + impression
+				+ ", click=" + click + ", visit=" + visit + ", conversion="
+				+ conversion + ", ecpm=" + ecpm + ", consume=" + consume
+				+ ", totalVisit=" + totalVisit + ", totalConversion="
+				+ totalConversion + ", totalImpression=" + totalImpression
+				+ ", totalClick=" + totalClick + ", totalEcpm=" + totalEcpm
+				+ ", totalConsume=" + totalConsume + "]";
+	}
+	
+	
+	
+}

+ 166 - 0
src/main/java/com/cloudcross/ssp/model/RptZone.java

@@ -0,0 +1,166 @@
+package com.cloudcross.ssp.model;
+
+import java.util.Date;
+
+/**
+ * 对应数据库的t_rpt_zone表
+ * @author chenyou
+ *
+ */
+public class RptZone {
+	//点击数
+	private Long click;
+	//日期
+	private Date date;
+	//ecpm
+	private Float ecpm;
+	//小时
+	private Integer hour;
+	//主键
+	private Long id;
+	//曝光数
+	private Long impression;
+	//收入
+	private Long income;
+	//运营商id
+	private Long operatorId;
+	//pv
+	private Long pv;
+	//一天总的点击数
+	private Long totalClick;
+	//一天总的曝光数
+	private Long totalImpression;
+	//一天总的收入
+	private Long totalIncome;
+	//一天总的pv
+	private Long totalPv;
+	//一天总的uv
+	private Long totalUv;
+	//唯一点击数
+	private Long uClick;
+	//唯一曝光数
+	private Long uImpression;
+	//uv
+	private Long uv;
+	//广告位id
+	private Long zoneId;
+	public Long getClick() {
+		return click;
+	}
+	public Date getDate() {
+		return date;
+	}
+	public Float getEcpm() {
+		return ecpm;
+	}
+	public Integer getHour() {
+		return hour;
+	}
+	public Long getId() {
+		return id;
+	}
+	public Long getImpression() {
+		return impression;
+	}
+	public Long getIncome() {
+		return income;
+	}
+	public Long getOperatorId() {
+		return operatorId;
+	}
+	public Long getPv() {
+		return pv;
+	}
+	public Long getTotalClick() {
+		return totalClick;
+	}
+	public Long getTotalImpression() {
+		return totalImpression;
+	}
+	public Long getTotalIncome() {
+		return totalIncome;
+	}
+	public Long getTotalPv() {
+		return totalPv;
+	}
+	public Long getTotalUv() {
+		return totalUv;
+	}
+	public Long getuClick() {
+		return uClick;
+	}
+	public Long getuImpression() {
+		return uImpression;
+	}
+	public Long getUv() {
+		return uv;
+	}
+	public Long getZoneId() {
+		return zoneId;
+	}
+	public void setClick(Long click) {
+		this.click = click;
+	}
+	public void setDate(Date date) {
+		this.date = date;
+	}
+	public void setEcpm(Float ecpm) {
+		this.ecpm = ecpm;
+	}
+	public void setHour(Integer hour) {
+		this.hour = hour;
+	}
+	public void setId(Long id) {
+		this.id = id;
+	}
+	public void setImpression(Long impression) {
+		this.impression = impression;
+	}
+	public void setIncome(Long income) {
+		this.income = income;
+	}
+	public void setOperatorId(Long operatorId) {
+		this.operatorId = operatorId;
+	}
+	public void setPv(Long pv) {
+		this.pv = pv;
+	}
+	public void setTotalClick(Long totalClick) {
+		this.totalClick = totalClick;
+	}
+	public void setTotalImpression(Long totalImpression) {
+		this.totalImpression = totalImpression;
+	}
+	public void setTotalIncome(Long totalIncome) {
+		this.totalIncome = totalIncome;
+	}
+	public void setTotalPv(Long totalPv) {
+		this.totalPv = totalPv;
+	}
+	public void setTotalUv(Long totalUv) {
+		this.totalUv = totalUv;
+	}
+	public void setuClick(Long uClick) {
+		this.uClick = uClick;
+	}
+	public void setuImpression(Long uImpression) {
+		this.uImpression = uImpression;
+	}
+	public void setUv(Long uv) {
+		this.uv = uv;
+	}
+	public void setZoneId(Long zoneId) {
+		this.zoneId = zoneId;
+	}
+	@Override
+	public String toString() {
+		return "RptZone [id=" + id + ", operatorId=" + operatorId + ", date="
+				+ date + ", hour=" + hour + ", zoneId=" + zoneId + ", pv=" + pv
+				+ ", uv=" + uv + ", impression=" + impression
+				+ ", uImpression=" + uImpression + ", click=" + click
+				+ ", uClick=" + uClick + ", ecpm=" + ecpm + ", income="
+				+ income + ", totalPv=" + totalPv + ", totalUv=" + totalUv
+				+ ", totalImpression=" + totalImpression + ", totalClick="
+				+ totalClick + ", totalIncome=" + totalIncome + "]";
+	}
+}

+ 132 - 0
src/main/java/com/cloudcross/ssp/model/RptZoneHour.java

@@ -0,0 +1,132 @@
+package com.cloudcross.ssp.model;
+
+import java.util.Date;
+
+/**
+ * 对应数据库表t_rpt_zone_hour
+ * 
+ * @author chenyou
+ *
+ */
+public class RptZoneHour {
+	// 主键
+	private Long id;
+	// 运营商id
+	private Long operatorId;
+	// 日期
+	private Date date;
+	// 小时
+	private Integer hour;
+	// 广告位id
+	private Long zoneId;
+	// pv
+	private Long pv;
+	// uv
+	private Long uv;
+	// 曝光数
+	private Long impression;
+	//唯一曝光数
+	private Long uImpression;
+	// 点击数
+	private Long click;
+	//唯一点击数
+	private Long uClick;
+	// ecpm
+	private Float ecpm;
+	// 收入
+	private Long income;
+	
+	public Long getuImpression() {
+		return uImpression;
+	}
+	public void setuImpression(Long uImpression) {
+		this.uImpression = uImpression;
+	}
+	public Long getuClick() {
+		return uClick;
+	}
+	public void setuClick(Long uClick) {
+		this.uClick = uClick;
+	}
+	public Long getId() {
+		return id;
+	}
+	public void setId(Long id) {
+		this.id = id;
+	}
+	public Long getOperatorId() {
+		return operatorId;
+	}
+	public void setOperatorId(Long operatorId) {
+		this.operatorId = operatorId;
+	}
+	public Date getDate() {
+		return date;
+	}
+	public void setDate(Date date) {
+		this.date = date;
+	}
+	public Integer getHour() {
+		return hour;
+	}
+	public void setHour(Integer hour) {
+		this.hour = hour;
+	}
+	public Long getZoneId() {
+		return zoneId;
+	}
+	public void setZoneId(Long zoneId) {
+		this.zoneId = zoneId;
+	}
+	public Long getPv() {
+		return pv;
+	}
+	public void setPv(Long pv) {
+		this.pv = pv;
+	}
+	public Long getUv() {
+		return uv;
+	}
+	public void setUv(Long uv) {
+		this.uv = uv;
+	}
+	public Long getImpression() {
+		return impression;
+	}
+	public void setImpression(Long impression) {
+		this.impression = impression;
+	}
+	public Long getClick() {
+		return click;
+	}
+	public void setClick(Long click) {
+		this.click = click;
+	}
+	public Float getEcpm() {
+		return ecpm;
+	}
+	public void setEcpm(Float ecpm) {
+		this.ecpm = ecpm;
+	}
+	public Long getIncome() {
+		return income;
+	}
+	public void setIncome(Long income) {
+		this.income = income;
+	}
+	
+	@Override
+	public String toString() {
+		return "RptZoneHour [id=" + id + ", operatorId=" + operatorId
+				+ ", date=" + date + ", hour=" + hour + ", zoneId=" + zoneId
+				+ ", pv=" + pv + ", uv=" + uv + ", impression=" + impression
+				+ ", uImpression=" + uImpression + ", click=" + click
+				+ ", uClick=" + uClick + ", ecpm=" + ecpm + ", income="
+				+ income + "]";
+	}
+	
+
+	
+	
+	
+}

+ 38 - 0
src/main/java/com/cloudcross/ssp/model/Size.java

@@ -0,0 +1,38 @@
+package com.cloudcross.ssp.model;
+
+import java.util.Date;
+
+/**
+ * 素材模板表。
+ *  
+ */
+public final class Size {
+	private Long id;
+	//模版尺寸的宽度
+	private Long width;
+	//模版尺寸的高度
+	private Long height;
+	public Long getId() {
+		return id;
+	}
+	public void setId(Long id) {
+		this.id = id;
+	}
+	public Long getWidth() {
+		return width;
+	}
+	public void setWidth(Long width) {
+		this.width = width;
+	}
+	public Long getHeight() {
+		return height;
+	}
+	public void setHeight(Long height) {
+		this.height = height;
+	}
+	@Override
+	public String toString() {
+		return "Size [id=" + id + ", width=" + width + ", height=" + height
+				+ "]";
+	}
+}

+ 147 - 0
src/main/java/com/cloudcross/ssp/model/SystemReport.java

@@ -0,0 +1,147 @@
+package com.cloudcross.ssp.model;
+
+import java.util.Date;
+
+/**
+ * 媒体数据报表中的系统报表,指广告在那个系统中投放的
+ * @author Hao
+ *
+ */
+
+
+public class SystemReport {
+	    // id
+		private Long id;
+		
+		//运营商id
+		private Long operatorId;
+		
+		//日期
+		private Date date;
+		
+		//位置  (1-windows,2-ios,3-android,4-mac,5-wp,6-other)
+		private Integer os;
+		//系统名称
+		private String systemName;
+		
+		//PV
+		private Long pv;
+		//uv
+		private Long uv;
+		
+		//曝光
+		private Long impression;
+		
+		//点击
+		private Long click;
+		
+		//ecpm
+		private Float ecpm;
+		//收入
+		private Long income;
+		
+		//广告填充率
+		private Float fillRate;
+		//点击率
+		private Float clickRate;
+		//浏览量占比
+		private Float pageviewsPercent;
+		public Long getId() {
+			return id;
+		}
+		public void setId(Long id) {
+			this.id = id;
+		}
+		
+		public Long getOperatorId() {
+			return operatorId;
+		}
+		public void setOperatorId(Long operatorId) {
+			this.operatorId = operatorId;
+		}
+		public Date getDate() {
+			return date;
+		}
+		public void setDate(Date date) {
+			this.date = date;
+		}
+		public Integer getOs() {
+			return os;
+		}
+		public void setOs(Integer os) {
+			this.os = os;
+		}
+		public String getSystemName() {
+			return systemName;
+		}
+		public void setSystemName(String systemName) {
+			this.systemName = systemName;
+		}
+		public Long getPv() {
+			return pv;
+		}
+		public void setPv(Long pv) {
+			this.pv = pv;
+		}
+		public Long getUv() {
+			return uv;
+		}
+		public void setUv(Long uv) {
+			this.uv = uv;
+		}
+		public Long getImpression() {
+			return impression;
+		}
+		public void setImpression(Long impression) {
+			this.impression = impression;
+		}
+		public Long getClick() {
+			return click;
+		}
+		public void setClick(Long click) {
+			this.click = click;
+		}
+		public Float getEcpm() {
+			return ecpm;
+		}
+		public void setEcpm(Float ecpm) {
+			this.ecpm = ecpm;
+		}
+		public Long getIncome() {
+			return income;
+		}
+		public void setIncome(Long income) {
+			this.income = income;
+		}
+		public Float getFillRate() {
+			return fillRate;
+		}
+		public void setFillRate(Float fillRate) {
+			this.fillRate = fillRate;
+		}
+		public Float getClickRate() {
+			return clickRate;
+		}
+		public void setClickRate(Float clickRate) {
+			this.clickRate = clickRate;
+		}
+		public Float getPageviewsPercent() {
+			return pageviewsPercent;
+		}
+		public void setPageviewsPercent(Float pageviewsPercent) {
+			this.pageviewsPercent = pageviewsPercent;
+		}
+		@Override
+		public String toString() {
+			return "SystemReport [id=" + id + ", operatorId=" + operatorId + ", date=" + date + ", os=" + os
+					+ ", systemName=" + systemName + ", pv=" + pv + ", uv=" + uv + ", impression=" + impression
+					+ ", click=" + click + ", ecpm=" + ecpm + ", income=" + income + ", fillRate=" + fillRate
+					+ ", clickRate=" + clickRate + ", pageviewsPercent=" + pageviewsPercent + "]";
+		}
+		
+		
+		
+		
+		
+
+}

+ 0 - 9
src/main/java/com/cloudcross/ssp/model/Test.java

@@ -1,9 +0,0 @@
-package com.cloudcross.ssp.model;
-/**
- * 实体类 和数据库一一对应,驼峰命名
- * @author xingzhe
- *
- */
-public class Test {
-
-}

+ 138 - 0
src/main/java/com/cloudcross/ssp/model/TypeReport.java

@@ -0,0 +1,138 @@
+package com.cloudcross.ssp.model;
+
+import java.util.Date;
+
+/**
+ * 媒体数据报表中的类型报表
+ * @author Hao
+ *
+ */
+
+
+public class TypeReport {
+	// id
+	private Long id;
+	
+	//运营商id
+	private Long operatorId;
+	
+	//日期
+	private Date date;
+	
+	//类型,1-网页 , 2-app
+	private Integer device;
+	
+	//PV
+	private Long pv;
+	//uv
+	private Long uv;
+	
+	//曝光
+	private Long impression;
+	
+	//点击
+	private Long click;
+	
+	//ecpm
+	private Float ecpm;
+	//收入
+	private Long income;
+	
+	//广告填充率
+	private Float fillRate;
+	//点击率
+	private Float clickRate;
+	//浏览量占比
+	private Float pageviewsPercent;
+	public Long getId() {
+		return id;
+	}
+	public void setId(Long id) {
+		this.id = id;
+	}
+	public Long getOperatorId() {
+		return operatorId;
+	}
+	public void setOperatorId(Long operatorId) {
+		this.operatorId = operatorId;
+	}
+	public Date getDate() {
+		return date;
+	}
+	public void setDate(Date date) {
+		this.date = date;
+	}
+	public Integer getDevice() {
+		return device;
+	}
+	public void setDevice(Integer device) {
+		this.device = device;
+	}
+	public Long getPv() {
+		return pv;
+	}
+	public void setPv(Long pv) {
+		this.pv = pv;
+	}
+	public Long getUv() {
+		return uv;
+	}
+	public void setUv(Long uv) {
+		this.uv = uv;
+	}
+	public Long getImpression() {
+		return impression;
+	}
+	public void setImpression(Long impression) {
+		this.impression = impression;
+	}
+	public Long getClick() {
+		return click;
+	}
+	public void setClick(Long click) {
+		this.click = click;
+	}
+	public Float getEcpm() {
+		return ecpm;
+	}
+	public void setEcpm(Float ecpm) {
+		this.ecpm = ecpm;
+	}
+	public Long getIncome() {
+		return income;
+	}
+	public void setIncome(Long income) {
+		this.income = income;
+	}
+	public Float getFillRate() {
+		return fillRate;
+	}
+	public void setFillRate(Float fillRate) {
+		this.fillRate = fillRate;
+	}
+	public Float getClickRate() {
+		return clickRate;
+	}
+	public void setClickRate(Float clickRate) {
+		this.clickRate = clickRate;
+	}
+	public Float getPageviewsPercent() {
+		return pageviewsPercent;
+	}
+	public void setPageviewsPercent(Float pageviewsPercent) {
+		this.pageviewsPercent = pageviewsPercent;
+	}
+	
+	@Override
+	public String toString() {
+		return "TypeReport [id=" + id + ", operatorId=" + operatorId + ", date=" + date + ", device=" + device + ", pv="
+				+ pv + ", uv=" + uv + ", impression=" + impression + ", click=" + click + ", ecpm=" + ecpm + ", income="
+				+ income + ", fillRate=" + fillRate + ", clickRate=" + clickRate + ", pageviewsPercent="
+				+ pageviewsPercent + "]";
+	}
+	
+	
+	
+	
+
+}

+ 155 - 0
src/main/java/com/cloudcross/ssp/model/User.java

@@ -0,0 +1,155 @@
+package com.cloudcross.ssp.model;
+
+import java.util.Date;
+
+import com.cloudcross.ssp.web.widget.SelectorController.ISelector;
+
+
+/**
+ * 用户表
+ * <p/>
+ * 与rv_users表相关。
+ */
+public final class User implements ISelector {
+	// 主键
+	private Long id;
+	// 邮箱地址
+	private String email;
+	// 用户组ID
+	private Long userGroupId;
+	// 登录用户
+	private String username;
+	// 登录密码
+	private String password;
+	// 联系姓名
+	private String contactName;
+	// 联系电话
+	private String phone;
+	// 状态:活跃还是不活跃
+	private Integer status;
+	// 创建日期
+	private Date createDate;
+	// 更新日期
+	private Date modifyDate;
+	
+	/**
+	 * @return the id
+	 */
+	public Long getId() {
+		return id;
+	}
+	/**
+	 * @param id the id to set
+	 */
+	public void setId(Long id) {
+		this.id = id;
+	}
+	/**
+	 * @return the email
+	 */
+	public String getEmail() {
+		return email;
+	}
+	/**
+	 * @param email the email to set
+	 */
+	public void setEmail(String email) {
+		this.email = email;
+	}
+	/**
+	 * @return the username
+	 */
+	public String getUsername() {
+		return username;
+	}
+	/**
+	 * @param username the username to set
+	 */
+	public void setUsername(String username) {
+		this.username = username;
+	}
+	/**
+	 * @return the password
+	 */
+	public String getPassword() {
+		return password;
+	}
+	/**
+	 * @param password the password to set
+	 */
+	public void setPassword(String password) {
+		this.password = password;
+	}
+	/**
+	 * @return the status
+	 */
+	public Integer getStatus() {
+		return status;
+	}
+	/**
+	 * @param status the status to set
+	 */
+	public void setStatus(Integer status) {
+		this.status = status;
+	}
+	/**
+	 * @return the createDate
+	 */
+	public Date getCreateDate() {
+		return createDate;
+	}
+	/**
+	 * @param createDate the createDate to set
+	 */
+	public void setCreateDate(Date createDate) {
+		this.createDate = createDate;
+	}
+	/**
+	 * @return the modifyDate
+	 */
+	public Date getModifyDate() {
+		return modifyDate;
+	}
+	/**
+	 * @param modifyDate the modifyDate to set
+	 */
+	public void setModifyDate(Date modifyDate) {
+		this.modifyDate = modifyDate;
+	}
+	
+	public Long getUserGroupId() {
+		return userGroupId;
+	}
+	public void setUserGroupId(Long userGroupId) {
+		this.userGroupId = userGroupId;
+	}
+	public String getPhone() {
+		return phone;
+	}
+	public void setPhone(String phone) {
+		this.phone = phone;
+	}
+	public String getContactName() {
+		return contactName;
+	}
+	public void setContactName(String contactName) {
+		this.contactName = contactName;
+	}
+	@Override
+	public String toString() {
+		return "User [id=" + id + ", email=" + email + ", userGroupId="
+				+ userGroupId + ", username=" + username + ", password="
+				+ password + ", phone=" + phone + ", status=" + status
+				+ ", createDate=" + createDate + ", modifyDate=" + modifyDate
+				+ "]";
+	}
+	@Override
+	public String getLabel() {
+		return this.username;
+	}
+	@Override
+	public String getValue() {
+		return String.valueOf(this.id);
+	}
+	
+}

+ 45 - 0
src/main/java/com/cloudcross/ssp/model/UserGroup.java

@@ -0,0 +1,45 @@
+package com.cloudcross.ssp.model;
+
+/**
+ * 用户分组表。
+ * <p/>
+ * 与rv_accounts表内容相关。
+ *  
+ * @author qaohao
+ */
+public final class UserGroup {
+	private Long id;
+	private String userGroup;
+	private String userGroupType;
+	private String status;
+	public Long getId() {
+		return id;
+	}
+	public void setId(Long id) {
+		this.id = id;
+	}
+	public String getUserGroup() {
+		return userGroup;
+	}
+	public void setUserGroup(String userGroup) {
+		this.userGroup = userGroup;
+	}
+	public String getUserGroupType() {
+		return userGroupType;
+	}
+	public void setUserGroupType(String userGroupType) {
+		this.userGroupType = userGroupType;
+	}
+	public String getStatus() {
+		return status;
+	}
+	public void setStatus(String status) {
+		this.status = status;
+	}
+	@Override
+	public String toString() {
+		return "UserGroup [id=" + id + ", userGroup=" + userGroup
+				+ ", userGroupType=" + userGroupType + ", status=" + status
+				+ "]";
+	}
+}

+ 58 - 0
src/main/java/com/cloudcross/ssp/model/UserLogin.java

@@ -0,0 +1,58 @@
+package com.cloudcross.ssp.model;
+
+import java.util.Date;
+
+
+
+public class UserLogin implements java.io.Serializable  {
+ /**
+	 * 
+	 */
+	private static final long serialVersionUID = 4999821408224216189L;
+private Integer userId;
+private String userName;
+ private Date loginTime;
+ private String loginIP;
+ 
+ public void setUserId (Integer userId)
+ {
+	    this.userId = userId;
+ }
+ 
+ public Integer getUserId(){
+	 return userId;
+ }
+ 
+ public void setUserName (String userName)
+ {
+	    this.userName = userName;
+ }
+ 
+ public String getUserName(){
+	 return userName;
+ }
+ 
+ public void setLoginTime (Date loginTime)
+ {
+	    this.loginTime = loginTime;
+ }
+
+ public Date getLoginTime(){
+	 return loginTime;
+ }
+  
+ public void setloginIP (String loginIP)
+ {
+	    this.loginIP = loginIP;
+ }
+ 
+ public String getLoginIP(){
+	 return loginIP;
+ }
+ 
+ @Override
+	public String toString() {
+		return "Menu [userId=" + userId + ",userName=" + userName + ", loginTime=" + loginTime + ", loginIP=" + loginIP + "]";
+	}
+ 
+}

+ 147 - 0
src/main/java/com/cloudcross/ssp/model/Wifi.java

@@ -0,0 +1,147 @@
+package com.cloudcross.ssp.model;
+
+import java.util.Date;
+
+/**
+ * Wifi,对应数据库里面的表t_wifi
+ * @author chenyou
+ */
+
+public class Wifi {
+
+	private Long id;
+	//热点名称
+	private String name;
+	private String SSID;
+	private String location;
+	//省的名称,在联表查询时使用
+	private String cn;
+	//市的名称,在联表查询时使用
+	private String cnCity;
+	private String apmac;
+	private String address;
+	private Float longitude;
+	private Float latitude;
+	//运营商场景
+	private String place;
+	//场景id,这是云联自己定义的场景名称对应的id
+	private Long placeId;
+	//场景名称,这是云联自己定义的场景名称,在联表查询时使用
+	private String placeName;
+	//运营商id
+	private Long operatorId;
+	//状态,0-开启,1-暂停,-1-删除
+	private Integer status;
+	//更新时间
+	private Date updated;
+	
+	public String getCn() {
+		return cn;
+	}
+	public void setCn(String cn) {
+		this.cn = cn;
+	}
+	public String getCnCity() {
+		return cnCity;
+	}
+	public void setCnCity(String cnCity) {
+		this.cnCity = cnCity;
+	}
+	public String getPlaceName() {
+		return placeName;
+	}
+	public void setPlaceName(String placeName) {
+		this.placeName = placeName;
+	}
+	public String getName() {
+		return name;
+	}
+	public void setName(String name) {
+		this.name = name;
+	}
+	public String getSSID() {
+		return SSID;
+	}
+	public void setSSID(String sSID) {
+		SSID = sSID;
+	}
+	public String getApmac() {
+		return apmac;
+	}
+	public void setApmac(String apmac) {
+		this.apmac = apmac;
+	}
+	public String getPlace() {
+		return place;
+	}
+	public void setPlace(String place) {
+		this.place = place;
+	}
+	public Long getPlaceId() {
+		return placeId;
+	}
+	public void setPlaceId(Long placeId) {
+		this.placeId = placeId;
+	}
+	public Long getOperatorId() {
+		return operatorId;
+	}
+	public void setOperatorId(Long operatorId) {
+		this.operatorId = operatorId;
+	}
+	public Integer getStatus() {
+		return status;
+	}
+	public void setStatus(Integer status) {
+		this.status = status;
+	}
+	public Date getUpdated() {
+		return updated;
+	}
+	public void setUpdated(Date updated) {
+		this.updated = updated;
+	}
+	public Long getId() {
+		return id;
+	}
+	public void setId(Long id) {
+		this.id = id;
+	}
+	public String getLocation() {
+		return location;
+	}
+	public void setLocation(String location) {
+		this.location = location;
+	}
+	public String getAddress() {
+		return address;
+	}
+	public void setAddress(String address) {
+		this.address = address;
+	}	
+	public Float getLongitude() {
+		return longitude;
+	}
+	public void setLongitude(Float longitude) {
+		this.longitude = longitude;
+	}
+	public Float getLatitude() {
+		return latitude;
+	}
+	public void setLatitude(Float latitude) {
+		this.latitude = latitude;
+	}
+	
+	@Override
+	public String toString() {
+		return "Wifi [id=" + id + ", name=" + name + ", SSID=" + SSID
+				+ ", location=" + location + ", cn=" + cn + ", cnCity="
+				+ cnCity + ", apmac=" + apmac + ", address=" + address
+				+ ", longitude=" + longitude + ", latitude=" + latitude
+				+ ", place=" + place + ", placeId=" + placeId + ", placeName="
+				+ placeName + ", operatorId=" + operatorId + ", status="
+				+ status + ", updated=" + updated + "]";
+	}
+	
+	
+}

+ 176 - 0
src/main/java/com/cloudcross/ssp/model/Zone.java

@@ -0,0 +1,176 @@
+package com.cloudcross.ssp.model;
+
+import java.util.Arrays;
+import java.util.Date;
+import java.util.List;
+
+import com.cloudcross.ssp.web.widget.SelectorController.ISelector;
+
+public class Zone implements ISelector{
+	private Long id;
+	private Long operator_id;
+	private String name;
+	private Long width;
+	private Long height;
+	private Integer device;
+	private Integer position;
+	private String domain;
+	private Integer status;
+	private Date updated;
+	private Date supdated;
+	private Integer recheck;
+	private String default_path;
+	private String default_url;
+	private Long sizeId;
+	private List<Industry> industryList;
+	private String industry;
+	private String default_path_small;
+	
+	public Date getSupdated() {
+		return supdated;
+	}
+	public void setSupdated(Date supdated) {
+		this.supdated = supdated;
+	}
+	public Long getSizeId() {
+		return sizeId;
+	}
+	public void setSizeId(Long sizeId) {
+		this.sizeId = sizeId;
+	}
+	public String getDefault_path() {
+		return default_path;
+	}
+	public void setDefault_path(String default_path) {
+		this.default_path = default_path;
+	}
+	public String getDefault_url() {
+		return default_url;
+	}
+	public void setDefault_url(String default_url) {
+		this.default_url = default_url;
+	}
+	public Integer getRecheck() {
+		return recheck;
+	}
+	public void setRecheck(Integer recheck) {
+		this.recheck = recheck;
+	}
+	public List<Industry> getIndustryList() {
+		return industryList;
+	}
+	public void setIndustryList(List<Industry> industryList) {
+		this.industryList = industryList;
+	}
+	public String getIndustry() {
+		return industry;
+	}
+	public void setIndustry(String industry) {
+		this.industry = industry;
+	}
+	public Long getId() {
+		return id;
+	}
+	public void setId(Long id) {
+		this.id = id;
+	}
+	public Long getOperator_id() {
+		return operator_id;
+	}
+	public void setOperator_id(Long operator_id) {
+		this.operator_id = operator_id;
+	}
+	public String getName() {
+		return name;
+	}
+	public void setName(String name) {
+		this.name = name;
+	}
+	
+	public Long getWidth() {
+		return width;
+	}
+	public void setWidth(Long width) {
+		this.width = width;
+	}
+	public Long getHeight() {
+		return height;
+	}
+	public void setHeight(Long height) {
+		this.height = height;
+	}
+	public Integer getStatus() {
+		return status;
+	}
+	
+	public Integer getDevice() {
+		return device;
+	}
+	public void setDevice(Integer device) {
+		this.device = device;
+	}
+	public Integer getPosition() {
+		return position;
+	}
+	public void setPosition(Integer position) {
+		this.position = position;
+	}
+	public void setStatus(Integer status) {
+		this.status = status;
+	}
+	public Date getUpdated() {
+		return updated;
+	}
+	public void setUpdated(Date updated) {
+		this.updated = updated;
+	}
+
+
+	
+
+
+
+	public String getDomain() {
+		return domain;
+	}
+	public void setDomain(String domain) {
+		this.domain = domain;
+	}
+	
+	
+	
+	
+	
+	
+	@Override
+	public String toString() {
+		return "Zone [id=" + id + ", operator_id=" + operator_id + ", name="
+				+ name + ", width=" + width + ", height=" + height
+				+ ", device=" + device + ", position=" + position + ", domain="
+				+ domain + ", status=" + status + ", updated=" + updated
+				+ ", supdated=" + supdated + ", recheck=" + recheck
+				+ ", default_path=" + default_path + ", default_url="
+				+ default_url + ", sizeId=" + sizeId + ", industryList="
+				+ industryList + ", industry=" + industry
+				+ ", default_path_small=" + default_path_small + "]";
+	}
+	public String getDefault_path_small() {
+		return default_path_small;
+	}
+	public void setDefault_path_small(String default_path_small) {
+		this.default_path_small = default_path_small;
+	}
+	@Override
+	public String getLabel() {
+		// TODO Auto-generated method stub
+		return this.getName();
+	}
+	@Override
+	public String getValue() {
+		// TODO Auto-generated method stub
+		return String.valueOf(this.getId());
+	}
+	
+	
+
+}

+ 54 - 0
src/main/java/com/cloudcross/ssp/model/ZoneDomain.java

@@ -0,0 +1,54 @@
+package com.cloudcross.ssp.model;
+
+import java.util.Date;
+import java.util.List;
+
+public class ZoneDomain {
+	private Long id;
+	private Long zoneId;
+	private String domain;
+	private Date supdated;
+	private Integer status;
+	public Date getSupdated() {
+		return supdated;
+	}
+	public void setSupdated(Date supdated) {
+		this.supdated = supdated;
+	}
+	public Integer getStatus() {
+		return status;
+	}
+	public void setStatus(Integer status) {
+		this.status = status;
+	}
+	
+	public Long getZoneId() {
+		return zoneId;
+	}
+	public void setZoneId(Long zoneId) {
+		this.zoneId = zoneId;
+	}
+	public String getDomain() {
+		return domain;
+	}
+	public void setDomain(String domain) {
+		this.domain = domain;
+	}
+	public Long getId() {
+		return id;
+	}
+	public void setId(Long id) {
+		this.id = id;
+	}
+	@Override
+	public String toString() {
+		return "ZoneDomain [id=" + id + ", zoneId=" + zoneId + ", domain="
+				+ domain + ", supdated=" + supdated + ", status=" + status
+				+ "]";
+	}
+	
+	
+
+	
+
+}

+ 51 - 0
src/main/java/com/cloudcross/ssp/model/ZoneIndustry.java

@@ -0,0 +1,51 @@
+package com.cloudcross.ssp.model;
+
+import java.util.Date;
+import java.util.List;
+
+public class ZoneIndustry {
+	private Long id;
+	private Long zoneId;
+	private Long industryId;
+	private Date supdated;
+	private Integer status;
+	
+	public Long getId() {
+		return id;
+	}
+	public void setId(Long id) {
+		this.id = id;
+	}
+	public Long getZoneId() {
+		return zoneId;
+	}
+	public void setZoneId(Long zoneId) {
+		this.zoneId = zoneId;
+	}
+	public Long getIndustryId() {
+		return industryId;
+	}
+	public void setIndustryId(Long industryId) {
+		this.industryId = industryId;
+	}
+	public Date getSupdated() {
+		return supdated;
+	}
+	public void setSupdated(Date supdated) {
+		this.supdated = supdated;
+	}
+	public Integer getStatus() {
+		return status;
+	}
+	public void setStatus(Integer status) {
+		this.status = status;
+	}
+	@Override
+	public String toString() {
+		return "ZoneIndustry [id=" + id + ", zoneId=" + zoneId
+				+ ", industryId=" + industryId + ", supdated=" + supdated
+				+ ", status=" + status + "]";
+	}
+	
+	
+}

+ 0 - 12
src/main/java/com/cloudcross/ssp/pojo/TestPojo.java

@@ -1,12 +0,0 @@
-package com.cloudcross.ssp.pojo;
-
-import com.cloudcross.ssp.model.Test;
-
-/**
- * 辅助显示类
- * @author xingzhe
- *
- */
-public class TestPojo extends Test{
-
-}

+ 0 - 9
src/main/java/com/cloudcross/ssp/service/ITestService.java

@@ -1,9 +0,0 @@
-package com.cloudcross.ssp.service;
-/**
- * 写共有service接口
- * @author xingzhe
- *
- */
-public class ITestService {
-
-}

+ 0 - 9
src/main/java/com/cloudcross/ssp/service/impl/TestService.java

@@ -1,9 +0,0 @@
-package com.cloudcross.ssp.service.impl;
-/**
- * 接口实现类
- * @author xingzhe
- *
- */
-public class TestService {
-
-}