Browse Source

t_wifi_group修改supdated字段

jun.zhou 9 years ago
parent
commit
dff0179b84

+ 3 - 3
src/main/java/com/cloudcross/ssp/model/WifiGroup.java

@@ -19,7 +19,7 @@ public class WifiGroup {
 	private Long wifiId;//热点ID
 	private Long groupId;//分组ID
 	private Integer status;//状态
-	private Date supdated;//更新时间
+	private Long supdated;//更新时间
 	public Long getId() {
 		return id;
 	}
@@ -44,10 +44,10 @@ public class WifiGroup {
 	public void setStatus(Integer status) {
 		this.status = status;
 	}
-	public Date getSupdated() {
+	public Long getSupdated() {
 		return supdated;
 	}
-	public void setSupdated(Date supdated) {
+	public void setSupdated(Long supdated) {
 		this.supdated = supdated;
 	}
 	@Override

+ 1 - 1
src/main/java/com/cloudcross/ssp/web/operator/main/ap/ApgroupController.java

@@ -306,7 +306,7 @@ public class ApgroupController extends SimpleController{
 		wifiGroup.setGroupId(groupId);
 		wifiGroup.setWifiId(wifiId);
 		wifiGroup.setStatus(0);
-		wifiGroup.setSupdated(new Date());
+		wifiGroup.setSupdated(new Date().getTime()/1000);
 		flag = this.wifiGroupService.add(wifiGroup);
 		if(flag){
 			result = "成功";