From 408d7968eb07cbdf270d403877ff4b7d7a863a53 Mon Sep 17 00:00:00 2001 From: yangbo Date: Sun, 2 Feb 2020 03:04:14 +0800 Subject: [PATCH] =?UTF-8?q?[hotfix]=20=E4=BF=AE=E5=A4=8D=E6=8A=A5=E8=A1=A8?= =?UTF-8?q?=E6=97=A5=E6=9C=9F=E4=B8=8D=E6=AD=A3=E7=A1=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/d420115/D420115DataController.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gsafety/gemp/wuhanncov/controller/d420115/D420115DataController.java b/src/main/java/com/gsafety/gemp/wuhanncov/controller/d420115/D420115DataController.java index 80d7a73..42f3331 100644 --- a/src/main/java/com/gsafety/gemp/wuhanncov/controller/d420115/D420115DataController.java +++ b/src/main/java/com/gsafety/gemp/wuhanncov/controller/d420115/D420115DataController.java @@ -18,7 +18,6 @@ import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import com.fasterxml.jackson.annotation.JsonProperty; -import com.gsafety.gemp.wuhanncov.contract.dto.ChinaCountStatisticsJSON; import com.gsafety.gemp.wuhanncov.contract.dto2.PatientAreaInfoDailyDTO2; import com.gsafety.gemp.wuhanncov.contract.service.NcovCommonDataService; import com.gsafety.gemp.wuhanncov.contract.service.PatientAreaRuntimeService; @@ -54,6 +53,11 @@ public class D420115DataController { */ private static final DateTimeFormatter DTF_YMD2 = DateTimeFormat.forPattern("yyyy/MM/dd"); + /** + * + */ + private static final DateTimeFormatter DTF_YMD_CN = DateTimeFormat.forPattern("M月d日"); + @Resource private NcovCommonDataService ncovCommonDataService; @@ -197,14 +201,16 @@ public class D420115DataController { @RequestParam(name = "areaCode", required = true) String areaCode) { PatientRuntimeD420115Datav v = new PatientRuntimeD420115Datav(); v.setAreaName("江夏区"); - v.setStasDate("1月31日0时-24时"); + // 取上日 + String date = DateTime.now().minusDays(1).toString(DTF_YMD_CN); + v.setStasDate(date + "0时-24时"); v.setConfirmCase(95); v.setProbableCase(477); v.setSevereCase(98); v.setDangerCase(11); v.setDeadCase(2); v.setCureCase(5); - // new + // new v.setNewCase(19); v.setNewProbable(105); // contact -- Gitee