This commit is contained in:
kdh0120 2020-11-25 01:30:03 +00:00
parent 097d8eabf3
commit a07a4f7f81
1 changed files with 11 additions and 9 deletions

View File

@ -138,7 +138,7 @@
</select> </select>
<select id="lect.lects" parameterClass="hashtable" resultClass="lect"> <select id="lect.lects" parameterClass="hashtable" resultClass="lect">
select a.lectno,a.cdt,a.status,a.userno select a.lectno,a.cdt,a.status,a.userno,a.oktime
,af.fileurl,af.fileno,af.orgname ,af.fileurl,af.fileno,af.orgname
,f.asname ,f.asname
,d.username cnoname,d.userid cnoid ,d.username cnoname,d.userid cnoid
@ -218,8 +218,9 @@
</isGreaterThan> </isGreaterThan>
</update> </update>
<update id="lect.status3" parameterClass="hashtable"> <update id="lect.status3" parameterClass="hashtable">
update lect set <include refid="sql.up"></include>,status=#status#,oktime=case when oktime is null and #status# = 4 and status&lt;&gt;4 then now() else oktime end where lectno=#lectno# and status in (3,4,5); update lect set <include refid="sql.up"></include>,status=#status#,oktime=case when oktime is null and #status# = 4 and status=6 then now() else oktime end where lectno=#lectno# and status in (4,5,6);
<isGreaterThan property="status" compareValue="3"> <isGreaterThan property="status" compareValue="3">
<isLessThan property="status" compareValue="6">
update pay a update pay a
inner join lect b on b.lectno=#lectno# and b.payno=a.payno and b.status in (4,5) inner join lect b on b.lectno=#lectno# and b.payno=a.payno and b.status in (4,5)
set a.pstatus=case when b.status = 4 then 21 else 52 end set a.pstatus=case when b.status = 4 then 21 else 52 end
@ -229,22 +230,23 @@
inner join lect b on b.lectno=#lectno# and b.pino=a.pino and b.status in (4,5) inner join lect b on b.lectno=#lectno# and b.pino=a.pino and b.status in (4,5)
set a.pstatus=case when b.status=4 then 21 else 52 end set a.pstatus=case when b.status=4 then 21 else 52 end
where a.pstatus=55 where a.pstatus=55
</isLessThan>
</isGreaterThan> </isGreaterThan>
</update> </update>
<update id="lect.status2" parameterClass="hashtable"> <update id="lect.status2" parameterClass="hashtable">
update lect set <include refid="sql.up"></include> update lect set <include refid="sql.up"></include>
, status = #status# ,status = #status#
, oktime = now() ,oktime = now()
where lectno in ($lectnos$) and status in (3,4,5); where lectno in ($lectnos$) and status in (4,5,6);
update pay a update pay a
inner join lect b on b.lectno in ($lectnos$) and b.payno=a.payno and b.status in (3,4,5) inner join lect b on b.lectno in ($lectnos$) and b.payno=a.payno and b.status in (4,5,6)
set a.pstatus=case when b.status = 3 then 55 when b.status = 4 then 21 else 52 end set a.pstatus=case when b.status = 6 then 55 when b.status = 4 then 21 else 52 end
where a.pstatus in (55, 21, 52); where a.pstatus in (55, 21, 52);
update payitem a update payitem a
inner join lect b on b.lectno in ($lectnos$) and b.pino=a.pino and b.status in (3,4,5) inner join lect b on b.lectno in ($lectnos$) and b.pino=a.pino and b.status in (4,5,6)
set a.pstatus=case when b.status = 3 then 55 when b.status = 4 then 21 else 52 end set a.pstatus=case when b.status = 6 then 55 when b.status = 4 then 21 else 52 end
where a.pstatus in (55, 21, 52) where a.pstatus in (55, 21, 52)
</update> </update>
<select id="lect.cmforchange" parameterClass="int" resultClass="cm"> <select id="lect.cmforchange" parameterClass="int" resultClass="cm">