审核view.sql 875 B

1234567891011121314151617181920212223
  1. use wtu
  2. go
  3. --데앴뚤亮깊
  4. if exists (select * from sysobjects where id = object_id('dbo.usp_datamaps') )
  5. drop view dbo.usp_audit
  6. go
  7. Create view usp_audit
  8. as
  9. select '페儉흙욋데' as vouchertype,ccode,ddate from UFDATA_002_2019..rdrecord08 where dnverifytime is null
  10. union
  11. select '페儉놔욋데' as vouchertype,ccode,ddate from UFDATA_002_2019..rdrecord09 where dnverifytime is null
  12. union
  13. select '꽃뭔흙욋데' as vouchertype,ccode,ddate from UFDATA_002_2019..rdrecord01 where dnverifytime is null
  14. union
  15. select '꽃뭔藁새데' as vouchertype,ccode,ddate from UFDATA_002_2019..PU_ArrivalVouch where caudittime is null
  16. union
  17. select '饋簡랙새데' as vouchertype,cDLCode,ddate from UFDATA_002_2019..DispatchList where dverifysystime is null
  18. union
  19. select '꽃뭔땐데' as vouchertype,cPOID,dPODate from UFDATA_002_2019..PO_Pomain where cAuditTime is null
  20. go