Commit 46e6e190 by lijingjing

去除冗余代码‘

parent 0229b8f8
......@@ -93,26 +93,7 @@ public class StatisticsServiceImpl extends BaseServiceImpl<StatisticsMapper, Sta
@Override
public List<Statistics> getPrevAlBrandsRate(QueryDTO queryDTO) {
List<Statistics> statistics = getAlBrandsRate(queryDTO);
// if (CollectionUtils.isEmpty(statistics)) {
// return statistics;
// }
// queryDTO.setType("Al99.70");
// Integer total = statistics.get(0).getTotal();
// Integer num = baseMapper.selectAlBrandLowFeStats(queryDTO);
// num = null == num ? 0 : num;
// Statistics lowFe = new Statistics();
// lowFe.setBrand(queryDTO.getType() + "低铁");
// lowFe.setTotal(total);
// lowFe.setBrandNum(num);
// if (null == total || 0 == total) {
// lowFe.setRatio(0.0000);
// } else {
// double def = 1.0000;
// lowFe.setRatio(BigDecimalUtils.div(new BigDecimal(def * num), new BigDecimal(def * total), 4).doubleValue());
// }
// statistics.add(lowFe);
return statistics;
return getAlBrandsRate(queryDTO);
}
@Override
......@@ -252,7 +233,8 @@ public class StatisticsServiceImpl extends BaseServiceImpl<StatisticsMapper, Sta
@Override
public List<Statistics> getQualityInspectionItemQuantity(QueryDTO queryDTO) {
return baseMapper.selectQualityInspectionItemQuantity(queryDTO);
List<Statistics> itemList = baseMapper.selectQualityInspectionItemQuantity(queryDTO);
return handleMonthData(queryDTO, itemList);
}
@Override
......
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