This commit is contained in:
parent
097d8eabf3
commit
a07a4f7f81
|
|
@ -138,7 +138,7 @@
|
|||
</select>
|
||||
|
||||
<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
|
||||
,f.asname
|
||||
,d.username cnoname,d.userid cnoid
|
||||
|
|
@ -218,8 +218,9 @@
|
|||
</isGreaterThan>
|
||||
</update>
|
||||
<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<>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">
|
||||
<isLessThan property="status" compareValue="6">
|
||||
update pay a
|
||||
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
|
||||
|
|
@ -229,22 +230,23 @@
|
|||
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
|
||||
where a.pstatus=55
|
||||
</isLessThan>
|
||||
</isGreaterThan>
|
||||
</update>
|
||||
<update id="lect.status2" parameterClass="hashtable">
|
||||
update lect set <include refid="sql.up"></include>
|
||||
, status = #status#
|
||||
, oktime = now()
|
||||
where lectno in ($lectnos$) and status in (3,4,5);
|
||||
,status = #status#
|
||||
,oktime = now()
|
||||
where lectno in ($lectnos$) and status in (4,5,6);
|
||||
|
||||
update pay a
|
||||
inner join lect b on b.lectno in ($lectnos$) and b.payno=a.payno and b.status in (3,4,5)
|
||||
set a.pstatus=case when b.status = 3 then 55 when b.status = 4 then 21 else 52 end
|
||||
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 = 6 then 55 when b.status = 4 then 21 else 52 end
|
||||
where a.pstatus in (55, 21, 52);
|
||||
|
||||
update payitem a
|
||||
inner join lect b on b.lectno in ($lectnos$) and b.pino=a.pino and b.status in (3,4,5)
|
||||
set a.pstatus=case when b.status = 3 then 55 when b.status = 4 then 21 else 52 end
|
||||
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 = 6 then 55 when b.status = 4 then 21 else 52 end
|
||||
where a.pstatus in (55, 21, 52)
|
||||
</update>
|
||||
<select id="lect.cmforchange" parameterClass="int" resultClass="cm">
|
||||
|
|
|
|||
Loading…
Reference in New Issue