有时CI History里会出现一些非法日期,导致该报表无法打印,该问题可能是从csv导入时日期错误造成,但无法从界面上进行修改。因此需要将这些日期统一重置,以便可以打印出报表。
本例是将日期重置为 '-' ,如果需要重置为其它日期,请用实际日期替换 '-'
请先备份数据库,然后在数据库里依次执行如下语句,将这些日期置为’ - ‘
update cihistorydetails set oldvalue = '-' where conversiontype = 'Date' and cast(oldvalue as bigint) > 1893456000000;
update cihistorydetails set newvalue = '-' where conversiontype = 'Date' and cast(newvalue as bigint) > 1893456000000;
update cihistorydetails set oldvalue = '-' where conversiontype = 'Date' and cast(oldvalue as bigint) < 0;
update cihistorydetails set newvalue = '-' where conversiontype = 'Date' and cast(newvalue as bigint) < 0;