From 38788db27864591e0acef37d670b21dff587544c Mon Sep 17 00:00:00 2001 From: wangliwen Date: Mon, 16 Jan 2023 16:03:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=83=BD=E5=8A=9B=E4=BD=BF=E7=94=A8=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E5=AF=BC=E5=87=BA=E5=A2=9E=E5=8A=A0=E4=BA=91=E8=B5=84?= =?UTF-8?q?=E6=BA=90=E3=80=81=E4=BA=91=E8=A7=86=E9=A2=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/controller/CensusController.java | 2 ++ ...lectApplyDeptDetailTypeCountListExcel.java | 30 +++++++++++++++++-- 2 files changed, 29 insertions(+), 3 deletions(-) diff --git a/renren-admin/src/main/java/io/renren/common/controller/CensusController.java b/renren-admin/src/main/java/io/renren/common/controller/CensusController.java index 6eb94bcc..119bdf09 100644 --- a/renren-admin/src/main/java/io/renren/common/controller/CensusController.java +++ b/renren-admin/src/main/java/io/renren/common/controller/CensusController.java @@ -416,6 +416,8 @@ public class CensusController { Integer.valueOf(index.getOrDefault("ywzy", "0").toString()), Integer.valueOf(index.getOrDefault("yyzy", "0").toString()), Integer.valueOf(index.getOrDefault("hys", "0").toString()), + Integer.valueOf(index.getOrDefault("yzy", "0").toString()), + Integer.valueOf(index.getOrDefault("ysp", "0").toString()), Integer.valueOf(index.getOrDefault("count", "0").toString())); return temp; }).collect(Collectors.toList()); diff --git a/renren-admin/src/main/java/io/renren/modules/resource/excel/census/SelectApplyDeptDetailTypeCountListExcel.java b/renren-admin/src/main/java/io/renren/modules/resource/excel/census/SelectApplyDeptDetailTypeCountListExcel.java index e07b3287..16660865 100644 --- a/renren-admin/src/main/java/io/renren/modules/resource/excel/census/SelectApplyDeptDetailTypeCountListExcel.java +++ b/renren-admin/src/main/java/io/renren/modules/resource/excel/census/SelectApplyDeptDetailTypeCountListExcel.java @@ -19,10 +19,16 @@ public class SelectApplyDeptDetailTypeCountListExcel { private Integer yyzy; @ExcelProperty({"会客厅"}) private Integer hys; + + @ExcelProperty({"云资源"}) + private Integer yzy; + + @ExcelProperty({"云视频"}) + private Integer ysp; @ExcelProperty({"总计"}) private Integer count; - public SelectApplyDeptDetailTypeCountListExcel(String name, Integer znsf, Integer tcfw, Integer kfzj, Integer ywzj, Integer yyzy, Integer hys, Integer count) { + public SelectApplyDeptDetailTypeCountListExcel(String name, Integer znsf, Integer tcfw, Integer kfzj, Integer ywzj, Integer yyzy, Integer hys, Integer yzy, Integer ysp, Integer count) { this.name = name; this.znsf = znsf; this.tcfw = tcfw; @@ -30,6 +36,8 @@ public class SelectApplyDeptDetailTypeCountListExcel { this.ywzj = ywzj; this.yyzy = yyzy; this.hys = hys; + this.yzy = yzy; + this.ysp = ysp; this.count = count; } @@ -97,16 +105,32 @@ public class SelectApplyDeptDetailTypeCountListExcel { this.count = count; } + public Integer getYzy() { + return yzy; + } + + public void setYzy(Integer yzy) { + this.yzy = yzy; + } + + public Integer getYsp() { + return ysp; + } + + public void setYsp(Integer ysp) { + this.ysp = ysp; + } + @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; SelectApplyDeptDetailTypeCountListExcel that = (SelectApplyDeptDetailTypeCountListExcel) o; - return name.equals(that.name) && znsf.equals(that.znsf) && tcfw.equals(that.tcfw) && kfzj.equals(that.kfzj) && ywzj.equals(that.ywzj) && yyzy.equals(that.yyzy) && hys.equals(that.hys) && count.equals(that.count); + return Objects.equals(name, that.name) && Objects.equals(znsf, that.znsf) && Objects.equals(tcfw, that.tcfw) && Objects.equals(kfzj, that.kfzj) && Objects.equals(ywzj, that.ywzj) && Objects.equals(yyzy, that.yyzy) && Objects.equals(hys, that.hys) && Objects.equals(yzy, that.yzy) && Objects.equals(ysp, that.ysp) && Objects.equals(count, that.count); } @Override public int hashCode() { - return Objects.hash(name, znsf, tcfw, kfzj, ywzj, yyzy, hys, count); + return Objects.hash(name, znsf, tcfw, kfzj, ywzj, yyzy, hys, yzy, ysp, count); } }