Commit c4f160fd by Sxy

fix: 同比数据

parent cd6321b4
......@@ -169,7 +169,7 @@ class StatisticsService {
sum: data.now.order,
lastSum: data.last.order,
type: ToQiFuTong.judgeSize(data.now.order, data.last.order),
contrast: (data.last.total === 0 ? (data.now.total === 0 ? 0 : 100) : ((data.now.order - data.last.order) / data.last.order * 100)).toFixed(2)
contrast: (data.last.order === 0 ? (data.now.order === 0 ? 0 : 100) : ((data.now.order - data.last.order) / data.last.order * 100)).toFixed(2)
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment