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