fix some bugs of collect the  previous day's hitory detail data.