新增 篮球订单统计功能

This commit is contained in:
2024-01-20 20:48:54 +08:00
parent 1fd9dd4109
commit 648266357e
4 changed files with 18 additions and 8 deletions

View File

@@ -78,7 +78,7 @@ public interface OrderMapper {
*
* @return 订单报表集合
*/
List<OrderCheatDTO> findMoney(@Param("time") String time);
List<OrderCheatDTO> findMoney(@Param("time") String time,@Param("type") Integer type);
/**
* api 根据用户Id订单号查询订单

View File

@@ -137,7 +137,7 @@ public class OrderService extends BaseServiceImpl {
* @param time
* @return
*/
public List<OrderCheatDTO> findMoney(String time){
public List<OrderCheatDTO> findMoney(String time,Integer orderType){
int days = 0;
if (StringUtils.isNotBlank(time)){
time = time.replace("-","");
@@ -154,8 +154,7 @@ public class OrderService extends BaseServiceImpl {
OrderCheatDTO orderDTO = new OrderCheatDTO();
orderDTO.setDays(days);
List<OrderCheatDTO> orderDTOS = orderMapper.findMoney(time);
List<OrderCheatDTO> orderDTOS = orderMapper.findMoney(time,orderType);
List<OrderCheatDTO> dtoList = new ArrayList<>();
for (int i=1; i <= days; i++){

View File

@@ -158,7 +158,7 @@
FROM
sv_order
WHERE
(type = 2 OR type = 4)
type = #{type}
AND pay_status = 1
AND pay_type = 1
AND deleted = 0