陈士柏 před 2 roky
rodič
revize
2813313878

+ 50 - 0
mhotel/src/com/happy/Model/app/Around_product.java

@@ -0,0 +1,50 @@
+package com.happy.Model.app;
+
+public class Around_product {
+
+    public Integer id;
+    public Integer aid;
+    public String product_name;
+    public String product_desc;
+    public Double price;
+
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    public Integer getAid() {
+        return aid;
+    }
+
+    public void setAid(Integer aid) {
+        this.aid = aid;
+    }
+
+    public String getProduct_name() {
+        return product_name;
+    }
+
+    public void setProduct_name(String product_name) {
+        this.product_name = product_name;
+    }
+
+    public String getProduct_desc() {
+        return product_desc;
+    }
+
+    public void setProduct_desc(String product_desc) {
+        this.product_desc = product_desc;
+    }
+
+    public Double getPrice() {
+        return DataBliu.getTwo(price);
+    }
+
+    public void setPrice(Double price) {
+        this.price = price;
+    }
+}

+ 113 - 0
mhotel/src/com/happy/Model/app/Arounds.java

@@ -0,0 +1,113 @@
+package com.happy.Model.app;
+
+public class Arounds {
+
+    public Integer id;
+    public String rtype;
+    public String rtown;
+    public String rname;
+    public String rphone;
+    public String radress;
+    public Integer cnum;
+    public String detail;
+    public String first_img;
+    public String show_video;
+    public String detail_img;
+    public String jingwei;
+
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    public String getRtype() {
+        return rtype;
+    }
+
+    public void setRtype(String rtype) {
+        this.rtype = rtype;
+    }
+
+    public String getRtown() {
+        return rtown;
+    }
+
+    public void setRtown(String rtown) {
+        this.rtown = rtown;
+    }
+
+    public String getRname() {
+        return rname;
+    }
+
+    public void setRname(String rname) {
+        this.rname = rname;
+    }
+
+    public String getRphone() {
+        return rphone;
+    }
+
+    public void setRphone(String rphone) {
+        this.rphone = rphone;
+    }
+
+    public String getRadress() {
+        return radress;
+    }
+
+    public void setRadress(String radress) {
+        this.radress = radress;
+    }
+
+    public Integer getCnum() {
+        return cnum;
+    }
+
+    public void setCnum(Integer cnum) {
+        this.cnum = cnum;
+    }
+
+    public String getDetail() {
+        return detail;
+    }
+
+    public void setDetail(String detail) {
+        this.detail = detail;
+    }
+
+    public String getFirst_img() {
+        return first_img;
+    }
+
+    public void setFirst_img(String first_img) {
+        this.first_img = first_img;
+    }
+
+    public String getShow_video() {
+        return show_video;
+    }
+
+    public void setShow_video(String show_video) {
+        this.show_video = show_video;
+    }
+
+    public String getDetail_img() {
+        return detail_img;
+    }
+
+    public void setDetail_img(String detail_img) {
+        this.detail_img = detail_img;
+    }
+
+    public String getJingwei() {
+        return jingwei;
+    }
+
+    public void setJingwei(String jingwei) {
+        this.jingwei = jingwei;
+    }
+}

+ 9 - 0
mhotel/src/com/happy/Model/app/DataBliu.java

@@ -0,0 +1,9 @@
+package com.happy.Model.app;
+
+public class DataBliu {
+
+    public static double getTwo(double d1){
+        return (double) Math.round(d1 * 100) / 100;
+    }
+
+}

+ 123 - 0
mhotel/src/com/happy/Model/app/News.java

@@ -0,0 +1,123 @@
+package com.happy.Model.app;
+
+public class News {
+
+    public int id;
+    public String media_id;
+    public String title;
+    public String author;
+    public String digest;
+    public String content;
+    public String content_source_url;
+    public String url;
+    public String update_time;
+    public String first_img;
+    public Integer state;
+    public Integer is_top;
+    public String top_time;
+
+    public int getId() {
+        return id;
+    }
+
+    public void setId(int id) {
+        this.id = id;
+    }
+
+    public String getMedia_id() {
+        return media_id;
+    }
+
+    public void setMedia_id(String media_id) {
+        this.media_id = media_id;
+    }
+
+    public String getTitle() {
+        return title;
+    }
+
+    public void setTitle(String title) {
+        this.title = title;
+    }
+
+    public String getAuthor() {
+        return author;
+    }
+
+    public void setAuthor(String author) {
+        this.author = author;
+    }
+
+    public String getDigest() {
+        return digest;
+    }
+
+    public void setDigest(String digest) {
+        this.digest = digest;
+    }
+
+    public String getContent() {
+        return content;
+    }
+
+    public void setContent(String content) {
+        this.content = content;
+    }
+
+    public String getContent_source_url() {
+        return content_source_url;
+    }
+
+    public void setContent_source_url(String content_source_url) {
+        this.content_source_url = content_source_url;
+    }
+
+    public String getUrl() {
+        return url;
+    }
+
+    public void setUrl(String url) {
+        this.url = url;
+    }
+
+    public String getUpdate_time() {
+        return update_time;
+    }
+
+    public void setUpdate_time(String update_time) {
+        this.update_time = update_time;
+    }
+
+    public String getFirst_img() {
+        return first_img;
+    }
+
+    public void setFirst_img(String first_img) {
+        this.first_img = first_img;
+    }
+
+    public Integer getState() {
+        return state;
+    }
+
+    public void setState(Integer state) {
+        this.state = state;
+    }
+
+    public Integer getIs_top() {
+        return is_top;
+    }
+
+    public void setIs_top(Integer is_top) {
+        this.is_top = is_top;
+    }
+
+    public String getTop_time() {
+        return top_time;
+    }
+
+    public void setTop_time(String top_time) {
+        this.top_time = top_time;
+    }
+
+}

+ 17 - 0
mhotel/src/com/happy/Model/app/Tongji.java

@@ -0,0 +1,17 @@
+package com.happy.Model.app;
+
+import com.happy.Until.DataBliu;
+
+public class Tongji {
+
+    public Double tj;
+
+    public Double getTj() {
+        return DataBliu.getTwo(tj);
+    }
+
+    public void setTj(Double tj) {
+        this.tj = tj;
+    }
+
+}