解决空数据导致的前端不显示问题

This commit is contained in:
liyj 2025-12-17 15:22:20 +08:00
parent bab3008b67
commit 404064f4c2

View File

@ -253,7 +253,11 @@ public class ShopOrderReturnServiceImpl extends BaseServiceImpl<ShopOrderReturnM
public List<Map<String, Object>> statisticCount(Date end, int days) {
Integer store_id = Convert.toInt(getCurrentUser().getStore_id());
if (ObjectUtil.isNotNull(store_id)) {
return shopOrderReturnMapper.statisticCountSeller(end, days, store_id);
List<Map<String, Object>> mapList= shopOrderReturnMapper.statisticCountSeller(end, days, store_id);
if(null==mapList){
mapList=new ArrayList<>();
}
return mapList;
}
return shopOrderReturnMapper.statisticCount(end, days);
}