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