Home  >  Article  >  Backend Development  >  兑现生成月报的方式

兑现生成月报的方式

WBOY
WBOYOriginal
2016-06-13 12:40:42882browse

实现生成月报的方式
产品比较固定单一,现要计算每个商品在每月的销售,浏览,提成,是否结算等多项参数
我拿到需求时,想到每个产品每个月生成一数据,这样不管在哪查都方便,而且每次查询时基本不用计算。

解决方法一,写一个定时计划任务,每个月底生成一次,但是这样还要管理这个定时计划任务,
解决方法二,在后台提供一个按钮,“生成帐单”,点击后,计算当月之前的月份帐单,

请教一下做过这种月报的大牛,有更好的解决方案吗,谢谢

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn