This commit is contained in:
parent
b0e257feb2
commit
335ee2bd51
551
BO/Logs/log.txt
551
BO/Logs/log.txt
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
|
|
@ -2035,28 +2035,28 @@
|
|||
|
||||
<select id="cm.cminningscds.applyedu.lectno" parameterClass="hashtable" resultClass="cminningscd">
|
||||
select
|
||||
a.cmisno,a.cmino,a.estart,a.eend,a.quota,a.cdt,a.udt,a.studyplace,a.studyplacename,a.startmonth,a.comment
|
||||
,a.studyplace, a.studyplacename,a.remainPeople
|
||||
,a.isselected, a.cmno,a.pcmno,a.cgcode
|
||||
<!--211220.통합테스트목록(644) 이미지난 교육종료일 변경불가-->
|
||||
,case when a.estart < date_add(date_format(now() ,'%Y-%m-%d 00:00:00'),interval -1 second)
|
||||
<!--20220803
|
||||
or a.remainPeople <= 0 -->
|
||||
then 0 else 1 end isend
|
||||
a.cmisno,a.cmino,a.estart,a.eend,a.quota,a.cdt,a.udt,a.studyplace,a.studyplacename,a.startmonth,a.comment
|
||||
,a.studyplace, a.studyplacename,a.remainPeople
|
||||
,a.isselected, a.cmno,a.pcmno,a.cgcode
|
||||
<!--211220.통합테스트목록(644) 이미지난 교육종료일 변경불가-->
|
||||
,case when a.estart < date_add(date_format(now() ,'%Y-%m-%d 00:00:00'),interval -1 second)
|
||||
<!--20220803
|
||||
or a.remainPeople <= 0 -->
|
||||
then 0 else 1 end isend
|
||||
from
|
||||
(
|
||||
select a.cmisno,a.cmino,a.estart,a.eend,a.quota,a.cdt,a.udt,month(a.estart) startmonth
|
||||
,(a.quota - (select count(z.lectno) cnt from lect z where a.cmisno = z.cmisno and z.status in (1,2) and z.ischanged=0)) remainPeople
|
||||
,a.studyplace, e.cname studyplacename
|
||||
,case when f.cmisno = a.cmisno then 1 else 0 end isselected, d.cmno,d.pcmno,cg.cgcode
|
||||
,a.comment
|
||||
from cminningscd a
|
||||
left outer join cminning c on c.cmino = a.cmino
|
||||
left outer join cm d on d.cmno = c.cmno
|
||||
left outer join cg cg on d.cgno = cg.cgno
|
||||
left outer join comcode e on e.ccode = a.studyplace
|
||||
left outer join lect f on f.lectno = #lectno#
|
||||
where DATE_ADD(f.sdate, INTERVAL 1 YEAR) > a.estart
|
||||
select a.cmisno,a.cmino,a.estart,a.eend,a.quota,a.cdt,a.udt,month(a.estart) startmonth
|
||||
,(a.quota - (select count(z.lectno) cnt from lect z where a.cmisno = z.cmisno and z.status in (1,2) and z.ischanged=0)) remainPeople
|
||||
,a.studyplace, e.cname studyplacename
|
||||
,case when f.cmisno = a.cmisno then 1 else 0 end isselected, d.cmno,d.pcmno,cg.cgcode
|
||||
,a.comment
|
||||
from cminningscd a
|
||||
left outer join cminning c on c.cmino = a.cmino
|
||||
left outer join cm d on d.cmno = c.cmno
|
||||
left outer join cg cg on d.cgno = cg.cgno
|
||||
left outer join comcode e on e.ccode = a.studyplace
|
||||
left outer join lect f on f.lectno = #lectno#
|
||||
where DATE_ADD(f.sdate, INTERVAL 1 YEAR) > a.estart
|
||||
<isNotNull property="cmno" prepend="and">c.cmno=#cmno#</isNotNull>
|
||||
)a
|
||||
<dynamic prepend="where">
|
||||
|
|
@ -2232,5 +2232,36 @@
|
|||
<isNotNull property="year">and year(a.sstime)=#year#</isNotNull>
|
||||
order by a.sstime,a.setime
|
||||
</select>
|
||||
|
||||
<select id="cm.cminningscds.applyedu.my" parameterClass="hashtable" resultClass="cminningscd">
|
||||
select
|
||||
a.cmisno,a.cmino,a.estart,a.eend,a.quota,a.cdt,a.udt,a.studyplace,a.studyplacename,a.startmonth,a.comment
|
||||
,a.studyplace, a.studyplacename,a.remainPeople
|
||||
,a.isselected, a.cmno,a.pcmno,a.cgcode
|
||||
<!--211220.통합테스트목록(644) 이미지난 교육종료일 변경불가-->
|
||||
,case WHEN a.estart > date_add(date_format(now(), '%Y-%m-%d 00:00:00'), interval - 1 second)
|
||||
<!--20220803
|
||||
or a.remainPeople <= 0 -->
|
||||
then 0 else 1 end isend
|
||||
from
|
||||
(
|
||||
select a.cmisno,a.cmino,a.estart,a.eend,a.quota,a.cdt,a.udt,month(a.estart) startmonth
|
||||
,(a.quota - (select count(z.lectno) cnt from lect z where a.cmisno = z.cmisno and z.status in (1,2) and z.ischanged=0)) remainPeople
|
||||
,a.studyplace, e.cname studyplacename
|
||||
,case when f.cmisno = a.cmisno then 1 else 0 end isselected, d.cmno,d.pcmno,cg.cgcode
|
||||
,a.comment
|
||||
,f.sdate
|
||||
from cminningscd a
|
||||
left outer join cminning c on c.cmino = a.cmino
|
||||
left outer join cm d on d.cmno = c.cmno
|
||||
left outer join cg cg on d.cgno = cg.cgno
|
||||
left outer join comcode e on e.ccode = a.studyplace
|
||||
left outer join lect f on f.lectno = #lectno#
|
||||
where DATE_ADD(f.sdate, INTERVAL 1 YEAR) > a.estart
|
||||
<isNotNull property="cmno" prepend="and">c.cmno=#cmno#</isNotNull>
|
||||
)a
|
||||
WHERE a.estart > date_add(date_format(a.sdate, '%Y-%m-%d 00:00:00'), interval + 2 DAY)
|
||||
order by isend desc,a.estart
|
||||
</select>
|
||||
</statements>
|
||||
</sqlMap>
|
||||
|
|
@ -2887,7 +2887,7 @@
|
|||
ON b.payno = e.PAYNO
|
||||
INNER JOIN pplog f
|
||||
ON b.USERNO = e.USERNO AND b.CMNO = f.CMNO AND e.PPLNO = f.PPLNO
|
||||
WHERE b.STATUS = 1
|
||||
WHERE b.STATUS IN(1, 2, 3)
|
||||
AND (e.PSTATUS = 1 OR e.PSTATUS = 22)
|
||||
AND b.USERNO = #uno#;
|
||||
]]>
|
||||
|
|
|
|||
|
|
@ -876,15 +876,15 @@ namespace NP.FO.Controllers
|
|||
ViewBag.IsMain = true;
|
||||
|
||||
#region + (사용중) ViewBag.rslt 신청 제약 조건
|
||||
//var fOCommonController = new Base.Controllers.FOCommonController();
|
||||
//fOCommonController.Dao = new Dao.CommonDao();
|
||||
var fOCommonController = new Base.Controllers.FOCommonController();
|
||||
fOCommonController.Dao = new Dao.CommonDao();
|
||||
//ViewBag.rslt = fOCommonController.CheckUserLect(vm.stringval3, vm.stringval21, vm.stringval4, vm.stringval5, int.Parse(vm.stringval17), int.Parse(vm.stringval18), SUserInfo.UserNo);
|
||||
|
||||
#endregion
|
||||
|
||||
#region + 2025-09 (스마트검색 개발 건 미사용으로 주석처리, 필요시 복원)
|
||||
var result = new KeyValuePair<int, string>();
|
||||
result = CheckUserLectInfo(
|
||||
result = fOCommonController.CheckUserLectInfo(
|
||||
cmno: Convert.ToInt16(vm.stringval17),
|
||||
pcmno: Convert.ToInt16(vm.stringval18),
|
||||
userno: SUserInfo.UserNo,
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
|
||||
<ProjectView>ShowAllFiles</ProjectView>
|
||||
<ProjectView>ProjectFiles</ProjectView>
|
||||
<UseIISExpress>false</UseIISExpress>
|
||||
<Use64BitIISExpress />
|
||||
<IISExpressSSLPort />
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue