From 289cc4777c2c8bc0d3c404a70df3ab9ccba66769 Mon Sep 17 00:00:00 2001 From: liupopo Date: Wed, 26 Apr 2023 11:07:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E9=94=80=E5=94=AE=E6=B1=87=E6=80=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/industry/industryAdd.vue | 24 ++- .../src/views/industry/industryInfo.vue | 30 ++-- .../src/views/projectType/projectTypeAdd.vue | 25 ++- .../src/views/projectType/projectTypeInfo.vue | 2 +- .../src/api/report/salesstatisticsday.js | 21 +++ .../src/views/kucun/zhsj/index.vue | 154 ++++++++++++------ yxt-portal-ui/src/views/Home/Home.vue | 4 +- .../ReportSalesStatisticsDayRest.java | 4 +- 8 files changed, 173 insertions(+), 91 deletions(-) create mode 100644 supervise-customer-ui/src/api/report/salesstatisticsday.js diff --git a/supervise-crm-ui/src/views/industry/industryAdd.vue b/supervise-crm-ui/src/views/industry/industryAdd.vue index 0df6459c..924468f5 100644 --- a/supervise-crm-ui/src/views/industry/industryAdd.vue +++ b/supervise-crm-ui/src/views/industry/industryAdd.vue @@ -33,21 +33,21 @@ diff --git a/yxt-portal-ui/src/views/Home/Home.vue b/yxt-portal-ui/src/views/Home/Home.vue index 697124dd..a6910b05 100644 --- a/yxt-portal-ui/src/views/Home/Home.vue +++ b/yxt-portal-ui/src/views/Home/Home.vue @@ -436,8 +436,8 @@ if (index === 10) { window.open('/#/index', '_blank') } else if (index === 0) { - // window.open('http://192.168.3.8:9532/#/' + '?token=' + getStorage(), '_blank') - window.open('http://jianguan.yyundong.com/customer/#/' + '?token=' + getStorage(), '_blank') + window.open('http://127.0.0.1:9531/#/' + '?token=' + getStorage(), '_blank') + // window.open('http://jianguan.yyundong.com/customer/#/' + '?token=' + getStorage(), '_blank') } else if (index === 1) { // window.open('http://192.168.3.8:9531#/' + '?token=' + getStorage(), '_blank') window.open('http://jianguan.yyundong.com/report/#/' + '?token=' + getStorage(), '_blank') diff --git a/yxt_supervise/supervise-report/supervise-report-biz/src/main/java/com/yxt/supervise/report/biz/salesstatisticsday/ReportSalesStatisticsDayRest.java b/yxt_supervise/supervise-report/supervise-report-biz/src/main/java/com/yxt/supervise/report/biz/salesstatisticsday/ReportSalesStatisticsDayRest.java index 136fc8a3..125709eb 100644 --- a/yxt_supervise/supervise-report/supervise-report-biz/src/main/java/com/yxt/supervise/report/biz/salesstatisticsday/ReportSalesStatisticsDayRest.java +++ b/yxt_supervise/supervise-report/supervise-report-biz/src/main/java/com/yxt/supervise/report/biz/salesstatisticsday/ReportSalesStatisticsDayRest.java @@ -26,8 +26,8 @@ public class ReportSalesStatisticsDayRest { if (StrUtil.isBlank(day)) return rb.setMsg("必须指定日期"); try { - DateTime parse = DateUtil.parse(day, "yyyy-MM-dd"); - if (parse.isAfterOrEquals(new Date())) { + String currDay = DateUtil.format(new Date(), "yyyy-MM-dd"); + if (day.compareTo(currDay) >= 0) { return rb.setMsg("只能统计之前日期"); } } catch (Exception e) {