查询单位
  • tbl_handlelog
  1. select * from tbl_handlelog where keyid in (select hiscompanycode from tbl_inv_company ) and buscode ='COMPANYADD'
  2. and status = 0
  • tbl_errorlog
查询套餐
  • tbl_handlelog
  1. select * from tbl_handlelog where keyid in (select hisgroupcode from tbl_inv_meal ) and buscode ='MEALCHANGE'
  2. and status = 0
  1. select * from tbl_handlelog where keyid in (select to_char(rwfzid) from HM_YW_TTRWFZ where rwid00 ='1202' ) and buscode ='MEALCHANGE'
  2. and status = 0
  • tbl_errorlog
  1. select * from tbl_errorlog where relatedid in (
  2. select to_char(rwfzid) from HM_YW_TTRWFZ where rwid00 ='1202'
  3. )
查询订单
  • tbl_handlelog

  • tbl_errorlog

    1. select * from tbl_errorlog where relatedid in (
    2. select hisexamineenum from tbl_inv_group_person where upload = 0 and hiscompanycode ='1742' )
文档更新时间: 2023-07-21 17:02