Authored by caoyan

爬虫平均价

... ... @@ -208,7 +208,8 @@ public class ChannelSkuCompareServiceImpl implements IChannelSkuCompareService,
List<Storage> storageList = Lists.newArrayList();
for(ChannelSkuCompare csc : cscList) {
if((null != productIdMinPriceMap.get(csc.getProductId()) && csc.getChannelPrice().compareTo(productIdMinPriceMap.get(csc.getProductId()))< 0)
|| (csc.getChannelAveragePrice().compareTo(BigDecimal.valueOf(0)) != 0 && csc.getChannelPrice().compareTo(csc.getChannelAveragePrice()) < 0)) {//毒价小于平台最低价或毒价小于毒前24小时平均价为异常
|| (csc.getChannelAveragePrice().compareTo(BigDecimal.valueOf(0)) != 0
&& csc.getChannelPrice().compareTo((csc.getChannelAveragePrice().multiply(BigDecimal.valueOf(0.95)))) < 0)) {//毒价小于平台最低价或毒价小于毒前24小时平均价*0.95为异常
abnormalIdList.add(csc.getId());
continue;
}
... ...
... ... @@ -66,6 +66,8 @@ $(function() {
$("#uid").textbox('setValue','');
$("#businessName").textbox('setValue','');
$("#validStatus").combobox('setValue','');
$("#businessListTable").datagrid("load", {
});
}
});
... ...