修改上报时间

日报
select * from g_sycompany where sycompname like '%南昌%'

select * from o_dailyreport where report_date = '2111-01-01' and sycompany_id in (99999)

把2111-01-01公司id为99999的日报上报时间提前1小时
上报时间晚于次日9时算 迟报
update o_dailyreport
set inputtime=inputtime - 1 hours --把上报时间提前1小时
where
report_date = '2111-01-01'--上报日期
and sycompany_id in (99999)--公司id
旬报
--select * from info_report_master where year=2011 and month=4 and channelid=61 and areacode in ('1','1640') and day=21
update info_report_master set inputdate=inputdate- 1 days where year=2011 and month=4 and channelid=61 and areacode in ('1','1640') and day=21
旬运行分析
--select * from info_report_master where year=2011 and month=4 and channelid=181 and day=21 and areacode in ('110000')
update info_report_master set inputdate=inputdate- 1 days where year=2011 and month=4 and channelid=181 and day=21 and areacode in ('110000')
月运行分析
--select * from info_report_master where year=2011 and month=4 and channelid=42  and areacode in ('110000') --and day=21
update info_report_master set inputdate=inputdate- 1 days where year=2011 and month=4 and channelid=42  and areacode in ('110000') --and day=21
佛光周结
--select * from info_report_master where  channelid=341 and year=2011 and month=5 and areatype=3 and areacode in ('27','28')
update info_report_master set inputdate=inputdate-1 days where  channelid=341 and year=2011 and month=5 and areatype=3 and areacode in ('27','28')
佛光月结
--select * from info_report_master where  channelid=342 and year=2011 and month=4 and personid=242--and areatype=3 and areacode in ('27','28')
update info_report_master set inputdate=inputdate-1 days where  channelid=342 and year=2011 and month=4 and personid=242--and areatype=3 and areacode in ('27','28')
--月报
--select * from R_MONTHREPORTLOG where personid=242(或者用公司company_id=) and report_month='201104'
update R_MONTHREPORTLOG set report_time=report_time -1 days where personid=242 and report_month='201104'

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值