lect.lecture.document > isrebate -> payitem.isrebate 에서 가져오게 수정
This commit is contained in:
parent
ddd9a90a91
commit
9f5efed429
|
|
@ -1509,7 +1509,7 @@
|
||||||
<select id="lect.lecture.document" parameterClass="hashtable" resultClass="lect">
|
<select id="lect.lecture.document" parameterClass="hashtable" resultClass="lect">
|
||||||
select a.*
|
select a.*
|
||||||
from (
|
from (
|
||||||
select a.lectno,a.userno,a.isrebate,a.iscomplete,a.sdate,a.edate
|
select a.lectno,a.userno,a.iscomplete,a.sdate,a.edate
|
||||||
,b.cmno,b.cname,b.cshape
|
,b.cmno,b.cname,b.cshape
|
||||||
,b.rstime,b.retime
|
,b.rstime,b.retime
|
||||||
,b.sstime,b.setime
|
,b.sstime,b.setime
|
||||||
|
|
@ -1524,13 +1524,14 @@
|
||||||
,pt.taxno,pt.taxdate taxdate2,pt.mgtkey,pt.iscancel
|
,pt.taxno,pt.taxdate taxdate2,pt.mgtkey,pt.iscancel
|
||||||
,a.cdt
|
,a.cdt
|
||||||
,pv.cshrpgkey
|
,pv.cshrpgkey
|
||||||
,ifnull(e1.isrebate,0) isrebate
|
,ifnull(pi.isrebate,0) isrebate
|
||||||
,row_number() over(order by a.cdt desc) rno
|
,row_number() over(order by a.cdt desc) rno
|
||||||
,count(a.lectno) over() pagetotalcount
|
,count(a.lectno) over() pagetotalcount
|
||||||
from lect a
|
from lect a
|
||||||
inner join cm b on b.cmno = a.cmno
|
inner join cm b on b.cmno = a.cmno
|
||||||
inner join term c on c.tmno = b.tmno
|
inner join term c on c.tmno = b.tmno
|
||||||
inner join pay e on e.payno = a.payno
|
inner join pay e on e.payno = a.payno
|
||||||
|
inner join payitem pi on pi.payno = a.payno
|
||||||
left outer join(
|
left outer join(
|
||||||
select c.payno,c.pino,c.payamt
|
select c.payno,c.pino,c.payamt
|
||||||
,case c.ptype when 0 then c0.cname when 2 then c2.bkname when 4 then c0.cname when 3 then c3.exname else '-' end itemname
|
,case c.ptype when 0 then c0.cname when 2 then c2.bkname when 4 then c0.cname when 3 then c3.exname else '-' end itemname
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue