<이슈처리 - 성적처리(전체)_진도율 팝업>
1. 진도율 클릭 > 개인별 출결 이력 1) 운영에서 속도저하로 인한 404 오류 해결방안 : 10개 단위 페이징 처리 # 커밋 파일 BO\Controllers\croomController.cs BO\Views\croom/atts.cshtml Dao\Mybatis\Maps\Lect.xml # 테스트 결과 - 이상없음 # 특이사항 및 이슈사항 - 이상없음
This commit is contained in:
parent
50aef2caf8
commit
a84f655124
|
|
@ -759,12 +759,25 @@ namespace NP.BO.Controllers
|
||||||
|
|
||||||
public ActionResult atts(VMLect vm)
|
public ActionResult atts(VMLect vm)
|
||||||
{
|
{
|
||||||
|
vm.pagerowcount = 10; // 한 페이지에 보이는 로우 수
|
||||||
|
|
||||||
|
var ht = SetHash(vm);
|
||||||
|
|
||||||
vm.Lect = Dao.Get<Lect>("lect.lects", new System.Collections.Hashtable() { { "lectno", vm.longval } }).First();
|
vm.Lect = Dao.Get<Lect>("lect.lects", new System.Collections.Hashtable() { { "lectno", vm.longval } }).First();
|
||||||
vm.LectInningPages = Dao.Get<LectInningPage>("lect.lectinningpages", new System.Collections.Hashtable() { { "lectno", vm.Lect.lectno },{"isscd", 0} });
|
|
||||||
|
ht.Add("lectno", vm.Lect.lectno);
|
||||||
|
ht.Add("isscd", 0);
|
||||||
|
|
||||||
|
//vm.LectInningPages = Dao.Get<LectInningPage>("lect.lectinningpages", new System.Collections.Hashtable() { { "lectno", vm.Lect.lectno },{"isscd", 0} });
|
||||||
|
vm.LectInningPages = Dao.Get<LectInningPage>("lect.lectinningpages", ht);
|
||||||
|
|
||||||
|
vm.pagetotalcount = GetCount(vm.LectInningPages.FirstOrDefault());
|
||||||
|
|
||||||
// [이슈_602 / 박상완] 활동이력 탭에서 '검색' 시 데이터 로드 할 수 있도록 변경
|
// [이슈_602 / 박상완] 활동이력 탭에서 '검색' 시 데이터 로드 할 수 있도록 변경
|
||||||
// 파라미터 userno 를 -1으로 변경
|
// 파라미터 userno 를 -1으로 변경
|
||||||
vm.PageLogs = Dao.Get<PageLog>("lect.pagelogs", new System.Collections.Hashtable() { { "start", vm.Lect.sstime }, { "end", vm.Lect.setime.Value.ToString("yyyy-MM-dd 23:59:59") }, { "userno", -1 }, { "logsite", 1 } });
|
vm.PageLogs = Dao.Get<PageLog>("lect.pagelogs", new System.Collections.Hashtable() { { "start", vm.Lect.sstime }, { "end", vm.Lect.setime.Value.ToString("yyyy-MM-dd 23:59:59") }, { "userno", -1 }, { "logsite", 1 } });
|
||||||
|
|
||||||
|
|
||||||
// [이슈_602 / 박상완] YYYY-MM-DD 로 검색하는 부분을 조회일 하루로 기본값 부탁드립니다. 예) 오늘 조회 시 : 2021-12-27 ~ 2021-12-27
|
// [이슈_602 / 박상완] YYYY-MM-DD 로 검색하는 부분을 조회일 하루로 기본값 부탁드립니다. 예) 오늘 조회 시 : 2021-12-27 ~ 2021-12-27
|
||||||
vm.Lect.sstime = DateTime.Now; // (검색) 시작일 - 현재시간
|
vm.Lect.sstime = DateTime.Now; // (검색) 시작일 - 현재시간
|
||||||
vm.Lect.setime = DateTime.Now.AddHours(1); // (검색) 종료일 - 현재시간 + 1시간
|
vm.Lect.setime = DateTime.Now.AddHours(1); // (검색) 종료일 - 현재시간 + 1시간
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,7 @@
|
||||||
}
|
}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
if (inning.isonline == 1 && inning.istatus != null/* && inning.cpno > 0*/)
|
if (inning.isonline == 1 && inning.istatus != null/* && inning.cpno > 0*/)
|
||||||
{
|
{
|
||||||
var innings = Model.LectInningPages.Where(w => w.iseq == iseq);
|
var innings = Model.LectInningPages.Where(w => w.iseq == iseq);
|
||||||
|
|
@ -93,6 +94,9 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
<form id="mform" method="post">
|
||||||
|
@Html.Pager((int)Model.pagenum, 10, Model.pagerowcount, Model.pagetotalcount)
|
||||||
|
</form>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
<div id="tab1" style="display: none;">
|
<div id="tab1" style="display: none;">
|
||||||
|
|
|
||||||
|
|
@ -759,12 +759,16 @@
|
||||||
order by u.username
|
order by u.username
|
||||||
</select>
|
</select>
|
||||||
<select id="lect.lectinningpages" parameterClass="hashtable" resultClass="lectinningpage">
|
<select id="lect.lectinningpages" parameterClass="hashtable" resultClass="lectinningpage">
|
||||||
|
select *
|
||||||
|
from (
|
||||||
select a.lectno,b.cmino,d.logno,f.sstime,f.setime
|
select a.lectno,b.cmino,d.logno,f.sstime,f.setime
|
||||||
,b.iseq,b.isonline,b.ititle,b.atime
|
,b.iseq,b.isonline,b.ititle,b.atime
|
||||||
,c.istatus,c.totstudy litotstudy,c.stime listime,c.etime lietime,c.sip lisip,c.eip lieip,c.ispcs liispcs,c.ispce liispce
|
,c.istatus,c.totstudy litotstudy,c.stime listime,c.etime lietime,c.sip lisip,c.eip lieip,c.ispcs liispcs,c.ispce liispce
|
||||||
,c.statustime,c.statusreason,c.statususerno,cu.username statususername,cu.userid statususerid
|
,c.statustime,c.statusreason,c.statususerno,cu.username statususername,cu.userid statususerid
|
||||||
,d.totstudy,d.stime,d.etime,d.sip,d.eip,d.ispc,d.ispc ispcs,d.webkitinfo
|
,d.totstudy,d.stime,d.etime,d.sip,d.eip,d.ispc,d.ispc ispcs,d.webkitinfo
|
||||||
,e.pseq,e.cpno
|
,e.pseq,e.cpno
|
||||||
|
,row_number() over(order by <isNotNull property="orderby">$orderby$</isNotNull><isNull property="orderby">b.iseq,d.stime</isNull>) rno
|
||||||
|
,count(b.cmino) over() pagetotalcount
|
||||||
from lect a
|
from lect a
|
||||||
inner join cminning b on b.cmno=a.cmno
|
inner join cminning b on b.cmno=a.cmno
|
||||||
inner join cm f on f.cmno=a.cmno
|
inner join cm f on f.cmno=a.cmno
|
||||||
|
|
@ -778,6 +782,9 @@
|
||||||
<isNotNull property="isscd" prepend="and">ifnull(b.isscd,0)=#isscd#</isNotNull>
|
<isNotNull property="isscd" prepend="and">ifnull(b.isscd,0)=#isscd#</isNotNull>
|
||||||
</dynamic>
|
</dynamic>
|
||||||
order by b.iseq,d.stime
|
order by b.iseq,d.stime
|
||||||
|
) gp
|
||||||
|
<include refid="sql.pagedynamic"></include>
|
||||||
|
order by gp.rno
|
||||||
</select>
|
</select>
|
||||||
<select id="lect.pagelogs" parameterClass="hashtable" resultClass="pagelog">
|
<select id="lect.pagelogs" parameterClass="hashtable" resultClass="pagelog">
|
||||||
select a.cdt,a.uip,b.pagename,a.loginfo
|
select a.cdt,a.uip,b.pagename,a.loginfo
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue