审核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