<기능개선>

1. PMS NO :
2. (주요)작업내용 
(1) D:/Project/NEW_LMS/2020LMSYNICTE/Dao/MyBatis/Maps/Grade.xml
 - 최대값을 구하년 년도와 수료번호에 붙는 년도 일치시킴, 수료검사시 기존 수료번호 사용하는 것 제거(무조건 새로 번호 부여)
This commit is contained in:
jity7777 2022-07-11 00:36:09 +00:00
parent ebcbc0ac7f
commit 91597d906f
1 changed files with 5 additions and 5 deletions

View File

@ -389,10 +389,10 @@
where l.lectno in ($lectnos$) where l.lectno in ($lectnos$)
) t1 ) t1
left outer join ( left outer join (
select date_format(l.cdt, '%Y') cyear select date_format(l.edate, '%Y') cyear
,max(substring(replace(replace(l.completeno, ' - N105 - ','N'), '호',''), -6)) seqNo ,max(substring(replace(replace(l.completeno, ' - N105 - ','N'), '호',''), -6)) seqNo
from lect l from lect l
group by date_format(l.cdt, '%Y') group by date_format(l.edate, '%Y')
) t2 on t2.cyear = t1.cyear ) t2 on t2.cyear = t1.cyear
) c ) c
) b ) b
@ -442,10 +442,10 @@
<isNotNull property="lectno">and l.lectno =#lectno#</isNotNull> <isNotNull property="lectno">and l.lectno =#lectno#</isNotNull>
) t1 ) t1
left outer join ( left outer join (
select date_format(l.cdt, '%Y') cyear select date_format(l.edate, '%Y') cyear
,max(substring(replace(replace(l.completeno, ' - N105 - ','N'), '호',''), -6)) seqNo ,max(substring(replace(replace(l.completeno, ' - N105 - ','N'), '호',''), -6)) seqNo
from lect l from lect l
group by date_format(l.cdt, '%Y') group by date_format(l.edate, '%Y')
) t2 on t2.cyear = t1.cyear ) t2 on t2.cyear = t1.cyear
) c ) c
) c on c.lectno = a.lectno ) c on c.lectno = a.lectno
@ -459,7 +459,7 @@
,a.dpoint=b.dpoint ,a.dpoint=b.dpoint
,a.tpoint=b.apoint+b.mpoint+b.fpoint+b.spoint+b.dpoint ,a.tpoint=b.apoint+b.mpoint+b.fpoint+b.spoint+b.dpoint
,a.completetime = case when b.ispass = 1 then c.completetime else null end ,a.completetime = case when b.ispass = 1 then c.completetime else null end
,a.completeno = case when a.completeno is not null then a.completeno else case when b.ispass = 1 then c.completeno else null end end ,a.completeno = c.completeno
where a.status=1 and a.ischanged=0 and a.lectno = c.lectno where a.status=1 and a.ischanged=0 and a.lectno = c.lectno
<isNotNull property="cmno">and a.cmno = #cmno#</isNotNull> <isNotNull property="cmno">and a.cmno = #cmno#</isNotNull>