<기능개선>

통합테스트 . 626
교육일정회차의 경우 목록출력제외로 변경
This commit is contained in:
kdh0120 2021-12-10 01:11:56 +00:00
parent bf5d3ee5ca
commit 43cd39b24c
2 changed files with 17 additions and 24 deletions

View File

@ -1274,7 +1274,7 @@
values (#etype#,#userno#,#edate#,#esubject#,#etarget#,#ecount#,#eplace#,#ecomment#,#compname#,#ceoname#,#brno#,#addr#,#btype#,#bkind#,#manname#,HEX(AES_ENCRYPT(#email#, <include refid="sql.digest"></include>)),HEX(AES_ENCRYPT(#telno#, <include refid="sql.digest"></include>)),#fgno#,<include refid="sql.inv"></include>) values (#etype#,#userno#,#edate#,#esubject#,#etarget#,#ecount#,#eplace#,#ecomment#,#compname#,#ceoname#,#brno#,#addr#,#btype#,#bkind#,#manname#,HEX(AES_ENCRYPT(#email#, <include refid="sql.digest"></include>)),HEX(AES_ENCRYPT(#telno#, <include refid="sql.digest"></include>)),#fgno#,<include refid="sql.inv"></include>)
</update> </update>
<select id="lect.mydata" parameterClass="int" resultClass="data"> <select id="lect.mydata" parameterClass="int" resultClass="data">
select a.dtype,a.intval,a.intval2,a.intval3,a.intval4,a.intval5,a.intval6,a.intval7,a.intval8,a.intval9,a.intval10 select a.dtype,a.intval,a.intval2,a.intval3,a.intval4,a.intval5,a.intval6,a.intval7,a.intval8,a.intval9
,a.longval,a.longval2 ,a.longval,a.longval2
,a.strval,a.strval2,a.strval3 ,a.strval,a.strval2,a.strval3
,a.time,a.time2 ,a.time,a.time2
@ -1285,7 +1285,7 @@
select 1 dtype select 1 dtype
,d.tyear intval,d.tseq intval2,c.cshape intval3,a.pstatus intval4,case when e.rfdno is null then 0 else 1 end intval5,a.isrebate intval6,a.itemno intval7 ,d.tyear intval,d.tseq intval2,c.cshape intval3,a.pstatus intval4,case when e.rfdno is null then 0 else 1 end intval5,a.isrebate intval6,a.itemno intval7
,case when (case when l.sdate is null then c.sstime else l.sdate end) &lt; now() and (case when l.edate is null then c.setime else l.edate end) &gt; now() then 1 else 0 end intval8 ,case when (case when l.sdate is null then c.sstime else l.sdate end) &lt; now() and (case when l.edate is null then c.setime else l.edate end) &gt; now() then 1 else 0 end intval8
,c.studydays intval9,0 intval10 ,c.studydays intval9
,l.lectno longval,a.payno longval2 ,l.lectno longval,a.payno longval2
,c.cname strval,null strval2,null strval3 ,c.cname strval,null strval2,null strval3
,c.rstime time,c.retime time2 ,c.rstime time,c.retime time2
@ -1305,7 +1305,7 @@
order by sortpstatus, c.retime, b.payno,a.pino order by sortpstatus, c.retime, b.payno,a.pino
) a ) a
union all union all
select a.dtype,a.intval,a.intval2,a.intval3,a.intval4,a.intval5,a.intval6,a.intval7,a.intval8,0 intval9,0 intval10 select a.dtype,a.intval,a.intval2,a.intval3,a.intval4,a.intval5,a.intval6,a.intval7,a.intval8,0 intval9
,a.longval,0 longval2 ,a.longval,0 longval2
,a.strval,a.strval2,a.strval3 ,a.strval,a.strval2,a.strval3
,a.time,a.time2 ,a.time,a.time2
@ -1333,7 +1333,7 @@
order by case when time2 > now() then 1 else 0 end desc ,sortedate desc, time2 desc order by case when time2 > now() then 1 else 0 end desc ,sortedate desc, time2 desc
) a ) a
union all union all
select a.dtype,a.intval,a.intval2,a.intval3,a.intval4,a.intval5,a.intval6,a.intval7,a.intval8,0 intval9,a.intval10 select a.dtype,a.intval,a.intval2,a.intval3,a.intval4,a.intval5,a.intval6,a.intval7,a.intval8,0 intval9
,a.longval,0 longval2 ,a.longval,0 longval2
,a.strval,a.strval2,a.strval3 ,a.strval,a.strval2,a.strval3
,a.time,a.time2 ,a.time,a.time2
@ -1342,7 +1342,7 @@
,a.rno ,a.rno
from ( from (
select 3 dtype select 3 dtype
,1 intval,c.iseq intval2,b.classno intval3,0 intval4,0 intval5,0 intval6,a.cmno intval7,0 intval8,c.isscd intval10 ,1 intval,c.iseq intval2,b.classno intval3,0 intval4,0 intval5,0 intval6,a.cmno intval7,0 intval8
,a.lectno longval ,a.lectno longval
,b.cname strval,null strval2,null strval3 ,b.cname strval,null strval2,null strval3
,case when a.sdate is null then b.sstime else a.sdate end as time ,case when a.sdate is null then b.sstime else a.sdate end as time
@ -1351,14 +1351,14 @@
,row_number() over(order by b.setime) rno ,row_number() over(order by b.setime) rno
from lect a from lect a
inner join cm b on b.cmno=a.cmno <!--and b.sstime &lt; <include refid="sql.now"></include> and b.setime &gt; <include refid="sql.now"></include>--> inner join cm b on b.cmno=a.cmno <!--and b.sstime &lt; <include refid="sql.now"></include> and b.setime &gt; <include refid="sql.now"></include>-->
inner join cminning c on c.cmno=b.cmno and c.isonline=1 inner join cminning c on c.cmno=b.cmno and c.isonline=1 and c.isscd = 0
left outer join lectinning d on d.lectno=a.lectno and d.cmino=c.cmino and d.istatus=2 left outer join lectinning d on d.lectno=a.lectno and d.cmino=c.cmino and d.istatus=2
where a.userno=#userno# and a.status=1 and a.ischanged=0 and d.lectno is null where a.userno=#userno# and a.status=1 and a.ischanged=0 and d.lectno is null
and a.sdate &lt; <include refid="sql.now"></include> and a.edate &gt; <include refid="sql.now"></include> and a.sdate &lt; <include refid="sql.now"></include> and a.edate &gt; <include refid="sql.now"></include>
) a ) a
where a.rno2=1 where a.rno2=1
union all union all
select a.dtype,a.intval,a.intval2,a.intval3,a.intval4,a.intval5,a.intval6,a.intval7,a.intval8,0 intval9,a.intval10 select a.dtype,a.intval,a.intval2,a.intval3,a.intval4,a.intval5,a.intval6,a.intval7,a.intval8,0 intval9
,a.longval,0 longval2 ,a.longval,0 longval2
,a.strval,a.strval2,a.strval3 ,a.strval,a.strval2,a.strval3
,a.time,a.time2 ,a.time,a.time2
@ -1367,7 +1367,7 @@
,a.rno ,a.rno
from ( from (
select 3 dtype select 3 dtype
,2 intval,c.iseq intval2,b.classno intval3,0 intval4,0 intval5,0 intval6,a.cmno intval7,0 intval8,c.isscd intval10 ,2 intval,c.iseq intval2,b.classno intval3,0 intval4,0 intval5,0 intval6,a.cmno intval7,0 intval8
,a.lectno longval ,a.lectno longval
,b.cname strval,bc.cname strval2,concat(date_format(c.idate,'%m/%d'),' ',left(c.ist,2),':',right(c.ist,2),' ~ ',left(c.iet,2),':',right(c.iet,2)) strval3 ,b.cname strval,bc.cname strval2,concat(date_format(c.idate,'%m/%d'),' ',left(c.ist,2),':',right(c.ist,2),' ~ ',left(c.iet,2),':',right(c.iet,2)) strval3
,case when a.sdate is null then b.sstime else a.sdate end as time ,case when a.sdate is null then b.sstime else a.sdate end as time
@ -1377,14 +1377,14 @@
from lect a from lect a
inner join cm b on b.cmno=a.cmno <!--and b.sstime &lt; <include refid="sql.now"></include> and b.setime &gt; <include refid="sql.now"></include> and b.cshape=1--> inner join cm b on b.cmno=a.cmno <!--and b.sstime &lt; <include refid="sql.now"></include> and b.setime &gt; <include refid="sql.now"></include> and b.cshape=1-->
left outer join comcode bc on bc.ccode=b.studyplace left outer join comcode bc on bc.ccode=b.studyplace
inner join cminning c on c.cmno=b.cmno and c.isonline=0 inner join cminning c on c.cmno=b.cmno and c.isonline=0 and c.isscd = 0
<!--left outer join lectinning d on d.lectno=a.lectno and d.cmino=c.cmino and d.istatus=2--> <!--left outer join lectinning d on d.lectno=a.lectno and d.cmino=c.cmino and d.istatus=2-->
where a.userno=#userno# and a.status=1 and a.ischanged=0 <!--and d.lectno is null--> where a.userno=#userno# and a.status=1 and a.ischanged=0 <!--and d.lectno is null-->
and a.sdate &lt; <include refid="sql.now"></include> and a.edate &gt; <include refid="sql.now"></include> and a.sdate &lt; <include refid="sql.now"></include> and a.edate &gt; <include refid="sql.now"></include>
) a ) a
where a.rno2=1 where a.rno2=1
union all union all
select a.dtype,a.intval,a.intval2,a.intval3,a.intval4,a.intval5,a.intval6,a.intval7,a.intval8,0 intval9,0 intval10 select a.dtype,a.intval,a.intval2,a.intval3,a.intval4,a.intval5,a.intval6,a.intval7,a.intval8,0 intval9
,a.longval,0 longval2 ,a.longval,0 longval2
,a.strval,a.strval2,a.strval3 ,a.strval,a.strval2,a.strval3
,a.time,a.time2 ,a.time,a.time2
@ -1410,7 +1410,7 @@
) a ) a
where a.rno2=1 where a.rno2=1
union all union all
select a.dtype,a.intval,a.intval2,a.intval3,a.intval4,a.intval5,a.intval6,a.intval7,a.intval8,0 intval9,0 intval10 select a.dtype,a.intval,a.intval2,a.intval3,a.intval4,a.intval5,a.intval6,a.intval7,a.intval8,0 intval9
,a.longval,0 longval2 ,a.longval,0 longval2
,a.strval,a.strval2,a.strval3 ,a.strval,a.strval2,a.strval3
,a.time,a.time2 ,a.time,a.time2
@ -1436,7 +1436,7 @@
) a ) a
where a.rno2=1 where a.rno2=1
union all union all
select a.dtype,a.intval,a.intval2,a.intval3,a.intval4,a.intval5,a.intval6,a.intval7,a.intval8,0 intval9,0 intval10 select a.dtype,a.intval,a.intval2,a.intval3,a.intval4,a.intval5,a.intval6,a.intval7,a.intval8,0 intval9
,a.longval,0 longval2 ,a.longval,0 longval2
,a.strval,a.strval2,a.strval3 ,a.strval,a.strval2,a.strval3
,a.time,a.time2 ,a.time,a.time2
@ -1462,7 +1462,7 @@
) a ) a
where a.rno2=1 where a.rno2=1
union all union all
select a.dtype,a.intval,a.intval2,a.intval3,a.intval4,a.intval5,a.intval6,a.intval7,a.intval8,0 intval9,0 intval10 select a.dtype,a.intval,a.intval2,a.intval3,a.intval4,a.intval5,a.intval6,a.intval7,a.intval8,0 intval9
,a.longval,a.longval2 ,a.longval,a.longval2
,a.strval,a.strval2,a.strval3 ,a.strval,a.strval2,a.strval3
,a.time,a.time2 ,a.time,a.time2

View File

@ -181,22 +181,15 @@
@if (d.intval == 1) @if (d.intval == 1)
{ {
<h5><span>[학습]</span>@d.strval (@(d.intval3)반)</h5> <h5><span>[학습]</span>@d.strval (@(d.intval3)반)</h5>
if(d.intval10 == 0)
{
<h6>@(d.intval2)차시</h6> <h6>@(d.intval2)차시</h6>
<p>@d.time.ToString("MM/dd") 00:00 ~ <span style="color:#ff0000;">@d.time2.ToString("MM/dd") 23:59</span></p> <p>@d.time.ToString("MM/dd") 00:00 ~ <span style="color:#ff0000;">@d.time2.ToString("MM/dd") 23:59</span></p>
}
} }
else if (d.intval == 2) else if (d.intval == 2)
{ {
<h5><span>[출석]</span>@d.strval (@(d.intval3)반)</h5> <h5><span>[출석]</span>@d.strval (@(d.intval3)반)</h5>
if(d.intval10 == 0)
{
<h6>@(d.intval2)차시</h6> <h6>@(d.intval2)차시</h6>
<p>일시: @d.strval3</p> <p>일시: @d.strval3</p>
} }
}
else if (d.intval == 3) else if (d.intval == 3)
{ {
<h5><span>[시험]</span>@d.strval (@(d.intval3)반)</h5> <h5><span>[시험]</span>@d.strval (@(d.intval3)반)</h5>