From 9fe50de2dec047f4400d8c8747a0c129ad1338c2 Mon Sep 17 00:00:00 2001 From: dimengzhe Date: Tue, 26 Dec 2023 16:10:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../biz/dailyreport/DailyReportMapper.xml | 12 +-- .../biz/dailyreport/DailyReportService.java | 86 +++++++++++++------ 2 files changed, 64 insertions(+), 34 deletions(-) diff --git a/anrui-reportcenter/anrui-reportcenter-biz/src/main/java/com/yxt/anrui/reportcenter/biz/dailyreport/DailyReportMapper.xml b/anrui-reportcenter/anrui-reportcenter-biz/src/main/java/com/yxt/anrui/reportcenter/biz/dailyreport/DailyReportMapper.xml index 30811fd159..c85f7c9fa0 100644 --- a/anrui-reportcenter/anrui-reportcenter-biz/src/main/java/com/yxt/anrui/reportcenter/biz/dailyreport/DailyReportMapper.xml +++ b/anrui-reportcenter/anrui-reportcenter-biz/src/main/java/com/yxt/anrui/reportcenter/biz/dailyreport/DailyReportMapper.xml @@ -132,7 +132,7 @@ select DATE_FORMAT(createTime, '%Y-%m-%d') as date, - sum(saleOfStockRatio) as saleOfStockRatio, + sum(SUBSTRING_INDEX(saleOfStockRatio, ':', 1)/SUBSTRING_INDEX(saleOfStockRatio, ':', -1)) as saleOfStockRatio, sum(stock_subtotal) as stock_subtotal, sum(pcOrder_subtotal) as pcOrder_subtotal, sum(saleOrder_subtotal_day) as saleOrder_subtotal_day, @@ -217,7 +217,7 @@