东山-CDS:
这是VO对象
[code=java]
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TurnoverReportVO implements Serializable {
//日期,以逗号分隔,例如:2022-10-01,2022-10-02,2022-10-03
private String dateList;
//营业额,以逗号分隔,例如:406.0,1520.0,75.0
private String turnoverList;
}
[/code]
这是简化后的服务层,参数也可以用其他方式传
[code=java]
public TurnoverReportVO getTurnOverStatistics(LocalDate begin, LocalDate end) {
String start = begin.toString();
String stop = end.toString();
return orderMapper.getDailyRevenue(start,stop, Orders.COMPLETED);
}
[/code]