<오류수정>

1. PMS NO : 7539
2. (주요)작업내용 
(1) Dao/MyBatis/Maps/Grade.xml
 - 수료처리시 교육장 교육의 수료일자를 lect.edate로 수정
This commit is contained in:
jity7777 2023-03-13 06:05:20 +00:00
parent 1721df28fb
commit c46f5585ef
1 changed files with 17 additions and 17 deletions

View File

@ -1656,22 +1656,22 @@
having ifnull(max(a.iscomplete),0) &lt;&gt;1
</select>
<update id="grade.lectcomplete.abs2" parameterClass="lect">
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 <!--cm.setime-->
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 <!--cm.setime-->
else cs.eend end completetime
, l.iscomplete
,row_number() over(partition by date_format(l.cdt,'%Y') order by l.cdt) rno