<오류수정>
1. PMS NO : 7539 2. (주요)작업내용 (1) Dao/MyBatis/Maps/Grade.xml - 수료처리시 교육장 교육의 수료일자를 lect.edate로 수정
This commit is contained in:
parent
1721df28fb
commit
c46f5585ef
|
|
@ -1656,22 +1656,22 @@
|
||||||
having ifnull(max(a.iscomplete),0) <>1
|
having ifnull(max(a.iscomplete),0) <>1
|
||||||
</select>
|
</select>
|
||||||
<update id="grade.lectcomplete.abs2" parameterClass="lect">
|
<update id="grade.lectcomplete.abs2" parameterClass="lect">
|
||||||
update lect l
|
update lect l
|
||||||
inner join (
|
inner join (
|
||||||
select c.lectno,c.completeno,c.completetime
|
select c.lectno,c.completeno,c.completetime
|
||||||
from (
|
from (
|
||||||
select t1.*
|
select t1.*
|
||||||
,concat('제 ',t1.cyear,t1.code1,lpad(ifnull(t2.seqNo,0) + t1.rno , 6, 0), ' 호') as completeno
|
,concat('제 ',t1.cyear,t1.code1,lpad(ifnull(t2.seqNo,0) + t1.rno , 6, 0), ' 호') as completeno
|
||||||
from (
|
from (
|
||||||
select l.lectno
|
select l.lectno
|
||||||
,date_format(l.edate,'%Y') cyear
|
,date_format(l.edate,'%Y') cyear
|
||||||
,pcg.cgcode code2
|
,pcg.cgcode code2
|
||||||
,case when cm.cshape = 1 then 'F' else 'N' end code1
|
,case when cm.cshape = 1 then 'F' else 'N' end code1
|
||||||
,case when te.cremark = '1' then te.refcode
|
,case when te.cremark = '1' then te.refcode
|
||||||
when tm.cremark in ('1','2','3','4') then tm.refcode
|
when tm.cremark in ('1','2','3','4') then tm.refcode
|
||||||
else '05' end code3
|
else '05' end code3
|
||||||
,case when cm.cshape = 0 then now()
|
,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
|
else cs.eend end completetime
|
||||||
,row_number() over(partition by date_format(l.cdt,'%Y') order by l.cdt) rno
|
,row_number() over(partition by date_format(l.cdt,'%Y') order by l.cdt) rno
|
||||||
from lect l
|
from lect l
|
||||||
|
|
@ -1723,7 +1723,7 @@
|
||||||
when tm.cremark in ('1','2','3','4') then tm.refcode
|
when tm.cremark in ('1','2','3','4') then tm.refcode
|
||||||
else '05' end code3
|
else '05' end code3
|
||||||
,case when cm.cshape = 0 then now()
|
,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
|
else cs.eend end completetime
|
||||||
, l.iscomplete
|
, l.iscomplete
|
||||||
,row_number() over(partition by date_format(l.cdt,'%Y') order by l.cdt) rno
|
,row_number() over(partition by date_format(l.cdt,'%Y') order by l.cdt) rno
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue