From 46e0e996d2f15d053e82123268e9a51dd5ef5f49 Mon Sep 17 00:00:00 2001 From: hyunho Date: Mon, 2 Nov 2020 01:27:11 +0000 Subject: [PATCH] --- BO/Controllers/cmController.cs | 2 +- Dao/MyBatis/Maps/CM.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/BO/Controllers/cmController.cs b/BO/Controllers/cmController.cs index 3b63c76..1b32f74 100644 --- a/BO/Controllers/cmController.cs +++ b/BO/Controllers/cmController.cs @@ -65,7 +65,7 @@ namespace NP.BO.Controllers } if (vm.viewidx == 0 && !IsPost() && string.IsNullOrEmpty(vm.stringval10)) { - vm.stringval10 = vm.stringval10 ?? DateTime.Now.ToString("yyyy-MM-01"); + vm.stringval10 = vm.stringval10 ?? DateTime.Now.AddMonths(-1).ToString("yyyy-MM-01"); } if (vm.viewidx == 0 && !IsPost() && string.IsNullOrEmpty(vm.stringval11)) { diff --git a/Dao/MyBatis/Maps/CM.xml b/Dao/MyBatis/Maps/CM.xml index 8107970..8660415 100644 --- a/Dao/MyBatis/Maps/CM.xml +++ b/Dao/MyBatis/Maps/CM.xml @@ -158,8 +158,8 @@ t.tseq=#tseq# a.tmno=#tmno# a.setime > now() - t.sstime >= #sstime# - t.setime <= #setime# + a.sstime >= #sstime# + a.setime <= #setime# ) a order by a.rno