取出list中最后一個(gè)值 并為它賦新的值
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;
}