From d289e66399d286cf0c39c3059e16ed5887537904 Mon Sep 17 00:00:00 2001 From: guwan Date: Mon, 7 Jun 2021 23:07:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A5=E6=9C=9F=E8=8C=83?= =?UTF-8?q?=E5=9B=B4bug=EF=BC=8C2=E6=9C=88=E6=B2=A1=E6=9C=8931=E5=8F=B7?= =?UTF-8?q?=EF=BC=8C=E4=BC=9A=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper_xml/DepotItemMapperEx.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jshERP-boot/src/main/resources/mapper_xml/DepotItemMapperEx.xml b/jshERP-boot/src/main/resources/mapper_xml/DepotItemMapperEx.xml index a052b9fd..874f2c06 100644 --- a/jshERP-boot/src/main/resources/mapper_xml/DepotItemMapperEx.xml +++ b/jshERP-boot/src/main/resources/mapper_xml/DepotItemMapperEx.xml @@ -213,7 +213,7 @@ and dh.type='${type}' and dh.sub_type='${subType}' and di.material_id =${MId} and dh.oper_time >= '${MonthTime}-01 00:00:00' - and dh.oper_time <= '${MonthTime}-31 23:59:59' + and dh.oper_time < DATE_ADD(STR_TO_DATE('${MonthTime}','%Y-%m'),INTERVAL 1 MONTH ) and ifnull(dh.delete_flag,'0') !='1' and ifnull(di.delete_flag,'0') !='1' @@ -224,7 +224,7 @@ and dh.type='${type}' and dh.sub_type='${subType}' and di.material_id =${MId} and dh.oper_time >= '${MonthTime}-01 00:00:00' - and dh.oper_time <= '${MonthTime}-31 23:59:59' + and dh.oper_time < DATE_ADD(STR_TO_DATE('${MonthTime}','%Y-%m'),INTERVAL 1 MONTH ) and ifnull(dh.delete_flag,'0') !='1' and ifnull(di.delete_flag,'0') !='1' @@ -234,7 +234,7 @@ where 1=1 and dh.type='${type}' and dh.sub_type='${subType}' and dh.oper_time >= '${MonthTime}-01 00:00:00' - and dh.oper_time <= '${MonthTime}-31 23:59:59' + and dh.oper_time < DATE_ADD(STR_TO_DATE('${MonthTime}','%Y-%m'),INTERVAL 1 MONTH ) and ifnull(dh.delete_flag,'0') !='1'