|
|
@@ -93,7 +93,7 @@ public class ShopDataImportController {
|
|
|
Map<String, Double> contributionData = shopAnalysisService.getChannelSalesContribution();
|
|
|
|
|
|
if (contributionData == null || contributionData.isEmpty()) {
|
|
|
- return ResponseEntity.ok(buildEmptyResponse("暂无店铺价值数据,请先上传销售文件。", new HashMap<>()));
|
|
|
+ return ResponseEntity.ok(buildEmptyResponse("请先上传店铺价值文件", new HashMap<>()));
|
|
|
}
|
|
|
|
|
|
response.put("success", true);
|
|
|
@@ -114,7 +114,7 @@ public class ShopDataImportController {
|
|
|
Map<String, Double> roiData = shopAnalysisService.getChannelRoiValue();
|
|
|
|
|
|
if (roiData == null || roiData.isEmpty()) {
|
|
|
- return ResponseEntity.ok(buildEmptyResponse("暂无店铺价值数据,请先上传销售文件。", new HashMap<>()));
|
|
|
+ return ResponseEntity.ok(buildEmptyResponse("请先上传店铺价值文件", new HashMap<>()));
|
|
|
}
|
|
|
|
|
|
response.put("success", true);
|
|
|
@@ -134,7 +134,7 @@ public class ShopDataImportController {
|
|
|
List<Map<String, Object>> data = shopAnalysisService.getUnitContribution();
|
|
|
|
|
|
if (data == null || data.isEmpty()) {
|
|
|
- return ResponseEntity.ok(buildEmptyResponse("暂无店铺价值数据,请先上传销售文件。", Collections.emptyList()));
|
|
|
+ return ResponseEntity.ok(buildEmptyResponse("请先上传店铺价值文件", Collections.emptyList()));
|
|
|
}
|
|
|
|
|
|
response.put("success", true);
|
|
|
@@ -149,7 +149,7 @@ public class ShopDataImportController {
|
|
|
List<Map<String, Object>> data = shopAnalysisService.getChannelTotalContribution();
|
|
|
|
|
|
if (data == null || data.isEmpty()) {
|
|
|
- return ResponseEntity.ok(buildEmptyResponse("暂无店铺价值数据,请先上传销售文件。", Collections.emptyList()));
|
|
|
+ return ResponseEntity.ok(buildEmptyResponse("请先上传店铺价值文件", Collections.emptyList()));
|
|
|
}
|
|
|
|
|
|
response.put("success", true);
|
|
|
@@ -164,7 +164,7 @@ public class ShopDataImportController {
|
|
|
List<Map<String, Object>> data = shopAnalysisService.getPlatformTotalContribution();
|
|
|
|
|
|
if (data == null || data.isEmpty()) {
|
|
|
- return ResponseEntity.ok(buildEmptyResponse("暂无店铺价值数据,请先上传销售文件。", Collections.emptyList()));
|
|
|
+ return ResponseEntity.ok(buildEmptyResponse("请先上传店铺价值文件", Collections.emptyList()));
|
|
|
}
|
|
|
|
|
|
response.put("success", true);
|
|
|
@@ -180,7 +180,7 @@ public class ShopDataImportController {
|
|
|
Map<String, Object> result = shopAnalysisService.getTopProductContribution();
|
|
|
|
|
|
if (result == null || result.isEmpty()) {
|
|
|
- return ResponseEntity.ok(buildEmptyResponse("暂无店铺价值数据,请先上传销售文件。", new HashMap<>()));
|
|
|
+ return ResponseEntity.ok(buildEmptyResponse("请先上传店铺价值文件", new HashMap<>()));
|
|
|
}
|
|
|
|
|
|
response.put("success", true);
|
|
|
@@ -201,7 +201,7 @@ public class ShopDataImportController {
|
|
|
List<Map<String, Object>> data = shopAnalysisService.getCrossSellingProducts();
|
|
|
|
|
|
if (data == null || data.isEmpty()) {
|
|
|
- return ResponseEntity.ok(buildEmptyResponse("暂无店铺价值数据,请先上传销售文件。", Collections.emptyList()));
|
|
|
+ return ResponseEntity.ok(buildEmptyResponse("请先上传店铺价值文件", Collections.emptyList()));
|
|
|
}
|
|
|
|
|
|
response.put("success", true);
|
|
|
@@ -222,7 +222,7 @@ public class ShopDataImportController {
|
|
|
Map<String, Double> data = shopAnalysisService.getDepartmentOperationalEfficiency();
|
|
|
|
|
|
if (data == null || data.isEmpty()) {
|
|
|
- return ResponseEntity.ok(buildEmptyResponse("暂无店铺价值数据,请先上传销售文件。", new HashMap<>()));
|
|
|
+ return ResponseEntity.ok(buildEmptyResponse("请先上传店铺价值文件", new HashMap<>()));
|
|
|
}
|
|
|
|
|
|
response.put("success", true);
|
|
|
@@ -243,7 +243,7 @@ public class ShopDataImportController {
|
|
|
Map<String, Long> data = shopAnalysisService.getChannelProductDiversity();
|
|
|
|
|
|
if (data == null || data.isEmpty()) {
|
|
|
- return ResponseEntity.ok(buildEmptyResponse("暂无店铺价值数据,请先上传销售文件。", new HashMap<>()));
|
|
|
+ return ResponseEntity.ok(buildEmptyResponse("请先上传店铺价值文件", new HashMap<>()));
|
|
|
}
|
|
|
|
|
|
response.put("success", true);
|