取出list中最后一个值 并为它赋新的值
public List<BizReportWeekSaleEntity>monthSales() {
List<BizReportWeekSaleEntity> list = dao.getAverageData();
String data = dao.getAverageDataUp();
if(data != null && data.length() > 0){
data = data+"同比上升";
BizReportWeekSaleEntity self = list.get(list.size() - 1);
self.setNeedName(data);
}
return list;
}