From 253fadb97c37448b401174a0e4414ed720b0f3e3 Mon Sep 17 00:00:00 2001 From: xd <844539747@qq.com> Date: Thu, 8 Aug 2024 08:04:44 +0800 Subject: [PATCH] '123' --- .idea/workspace.xml | 34 +++++++-------- .../main/resources/mapper/quot/QuotMapper.xml | 43 +++++++++++++------ ruoyi-ui/src/views/quot/quot/index.vue | 2 +- 3 files changed, 47 insertions(+), 32 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 823247e..67ac235 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -97,7 +97,7 @@ - + @@ -128,46 +128,46 @@ - + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - + diff --git a/ruoyi-system/src/main/resources/mapper/quot/QuotMapper.xml b/ruoyi-system/src/main/resources/mapper/quot/QuotMapper.xml index 2f7c66a..fa0e999 100644 --- a/ruoyi-system/src/main/resources/mapper/quot/QuotMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/quot/QuotMapper.xml @@ -587,26 +587,41 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" select ROUND(sum(secDiff)/ 3600.00 /count(1), 2) diff from ( - select case when a.dayDiff = 0 then a.secDiff + select a.quot_code, + + case when a.dayDiff = 0 and a.secDiff1 =]]> 0 and a.secDiff2 =]]> 0 then a.secDiff1+a.secDiff2 + + when a.dayDiff = 0 and a.secDiff1 0 and a.secDiff3 0 and a.secDiff2 =]]> 0 then a.secDiff2 + + + when a.dayDiff = 0 then a.secDiff + when a.dayDiff = 1 then a.secDiff-14*3600 - when a.dayDiff > 1 then a.secDiff-(a.dayDiff-1)*24*3600 + + when a.dayDiff ]]> 1 then a.secDiff-(a.dayDiff-1)*24*3600 else 0 end secDiff from ( - select quot_inquiry_date, quot_quotation_date, + select quot_code,quot_inquiry_date, quot_quotation_date, + + datediff(second,quot_inquiry_date,CONVERT(DATETIME, CONVERT(VARCHAR(10),quot_inquiry_date,111) + ' ' + '11:30:00')) secDiff1, + + datediff(second,CONVERT(DATETIME, CONVERT(VARCHAR(10),quot_quotation_date,111) + ' ' + '13:00:00'),quot_quotation_date) secDiff2, + + datediff(second,CONVERT(DATETIME, CONVERT(VARCHAR(10),quot_inquiry_date,111) + ' ' + '13:00:00'),quot_inquiry_date) secDiff3, datediff(day,quot_inquiry_date,quot_quotation_date) dayDiff, datediff(second,quot_inquiry_date,quot_quotation_date) secDiff - from quot a - - and quot_approval_status = '2' and quot_jsxz_approval_status='0' - - and datediff(d, quot_quotation_date, #{params.beginTime}) 0 - - - and datediff(d, quot_quotation_date, #{params.endTime}) =]]> 0 - - + from quot a + + and quot_approval_status = '2' and quot_jsxz_approval_status='0' + + and datediff(d, quot_quotation_date, #{params.beginTime}) 0 + + + and datediff(d, quot_quotation_date, #{params.endTime}) =]]> 0 + + + )a )a - )a diff --git a/ruoyi-ui/src/views/quot/quot/index.vue b/ruoyi-ui/src/views/quot/quot/index.vue index dfd80c8..d20f9cf 100644 --- a/ruoyi-ui/src/views/quot/quot/index.vue +++ b/ruoyi-ui/src/views/quot/quot/index.vue @@ -249,7 +249,7 @@ - 询价单信息(注:1、如厂价金额低于10万,不得特批; 2、此报价单数据,型号规格电压等如需下单或签订合同引用,请再次自行核对,责任自负) + 询价单信息(注:1、如特批金额低于10万,不得特批; 2、此报价单数据,型号规格电压等如需下单或签订合同引用,请再次自行核对,责任自负) 当前协助情况