From c46f5585efb60ada825ba70ead3d1dde0f25d06d Mon Sep 17 00:00:00 2001 From: jity7777 Date: Mon, 13 Mar 2023 06:05:20 +0000 Subject: [PATCH] =?UTF-8?q?<=EC=98=A4=EB=A5=98=EC=88=98=EC=A0=95>=201.=20P?= =?UTF-8?q?MS=20NO=20:=207539=202.=20(=EC=A3=BC=EC=9A=94)=EC=9E=91?= =?UTF-8?q?=EC=97=85=EB=82=B4=EC=9A=A9=20(1)=20Dao/MyBatis/Maps/Grade.xml?= =?UTF-8?q?=20=20-=20=EC=88=98=EB=A3=8C=EC=B2=98=EB=A6=AC=EC=8B=9C=20?= =?UTF-8?q?=EA=B5=90=EC=9C=A1=EC=9E=A5=20=EA=B5=90=EC=9C=A1=EC=9D=98=20?= =?UTF-8?q?=EC=88=98=EB=A3=8C=EC=9D=BC=EC=9E=90=EB=A5=BC=20lect.edate?= =?UTF-8?q?=EB=A1=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dao/MyBatis/Maps/Grade.xml | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/Dao/MyBatis/Maps/Grade.xml b/Dao/MyBatis/Maps/Grade.xml index 699aac0..618d741 100644 --- a/Dao/MyBatis/Maps/Grade.xml +++ b/Dao/MyBatis/Maps/Grade.xml @@ -1656,22 +1656,22 @@ having ifnull(max(a.iscomplete),0) <>1 - update lect l - inner join ( - select c.lectno,c.completeno,c.completetime - from ( - select t1.* - ,concat('제 ',t1.cyear,t1.code1,lpad(ifnull(t2.seqNo,0) + t1.rno , 6, 0), ' 호') as completeno - from ( - select l.lectno - ,date_format(l.edate,'%Y') cyear - ,pcg.cgcode code2 - ,case when cm.cshape = 1 then 'F' else 'N' end code1 - ,case when te.cremark = '1' then te.refcode - when tm.cremark in ('1','2','3','4') then tm.refcode - else '05' end code3 - ,case when cm.cshape = 0 then now() - when cm.cshape = 1 then cm.setime + update lect l + inner join ( + select c.lectno,c.completeno,c.completetime + from ( + select t1.* + ,concat('제 ',t1.cyear,t1.code1,lpad(ifnull(t2.seqNo,0) + t1.rno , 6, 0), ' 호') as completeno + from ( + select l.lectno + ,date_format(l.edate,'%Y') cyear + ,pcg.cgcode code2 + ,case when cm.cshape = 1 then 'F' else 'N' end code1 + ,case when te.cremark = '1' then te.refcode + when tm.cremark in ('1','2','3','4') then tm.refcode + else '05' end code3 + ,case when cm.cshape = 0 then now() + when cm.cshape = 1 then l.edate else cs.eend end completetime ,row_number() over(partition by date_format(l.cdt,'%Y') order by l.cdt) rno from lect l @@ -1723,7 +1723,7 @@ when tm.cremark in ('1','2','3','4') then tm.refcode else '05' end code3 ,case when cm.cshape = 0 then now() - when cm.cshape = 1 then cm.setime + when cm.cshape = 1 then l.edate else cs.eend end completetime , l.iscomplete ,row_number() over(partition by date_format(l.cdt,'%Y') order by l.cdt) rno