โครงการ

ทั่วๆ ไป

Profile

Defect #292 » เหตุผลการ การReject และCancel.sql

Anonymous, 12/05/2021 02:06

 
1
select a.appState, b.prmcde,b.thDesc,b.enDesc,b.prmRef1
2
	from CBTBCAP024 a,( select prmCde,thDesc,enDesc,prmFlg1,prmFlg2,prmFlg3,prmRef1,prmInt1
3
						from CBTBGNP901
4
						where prmtyp = 'APPCASE'
5
						and recsts = 'A') b
6
	where a.appCase = b.prmCde 
7
	--and a.appState = 110
8
	and a.recsts = 'A'
9
	and prmRef1<>'Approved'
10

    
11

    
12
	 
13

    
14
	--select * from CBMSAPP210 where appState=150 and endTime is null
15

    
16

    
17
	--select * from  CBTBCAP024 where  appState>30 and appCase='C13'
18

    
19
	--update CBTBCAP024 set appCase='C17' where appState>30 and appCase='C13'
20

    
21
	--update CBMSAPP010 set appSts='C17' where appstate=997 and appSts='C13'
22

    
23
	select appCase,appSts,* from CBMSAPP010 where  appstate=997 and appSts='C13'
    (1-1/1)