|
|
@ -197,6 +197,9 @@ public class GdSalesReportdayService extends ServiceImpl<GdSalesReportdayMapper, |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
public ResultBean<Map<String, Object>> getSalesReport(String customerSid, String orderDate, String type) { |
|
|
|
if (StrUtil.isBlank(orderDate)) { |
|
|
|
orderDate = DateUtil.format(DateUtil.offsetDay(new Date(), -1), "yyyy-MM-dd"); |
|
|
|
} |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
double xsLwlsd = gdSalesService.amountOfLwlsdDay(orderDate); // 连网连锁店
|
|
|
@ -257,7 +260,7 @@ public class GdSalesReportdayService extends ServiceImpl<GdSalesReportdayMapper, |
|
|
|
String dateago = dayAgo(orderDate, -(i - 1)); |
|
|
|
System.out.println("xx " + dateago); |
|
|
|
double rkje = gdInstorageService.amountOfDay(dateago); //入库金额
|
|
|
|
double xsje = xsLwlsd + xsLsnjm; |
|
|
|
double xsje = gdSalesService.amountOfDay(dateago); |
|
|
|
financialAnalysisChartData.add(CollUtil.newArrayList(dateago, "" + rkje, "" + xsje)); |
|
|
|
} |
|
|
|
map.put("financialAnalysisChartData", financialAnalysisChartData); |
|
|
|