mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 02:55:04 +08:00
add新增订单数量与保险金额时间区统计
This commit is contained in:
@@ -22,10 +22,7 @@ import com.jsowell.pile.service.OrderSplitRecordService;
|
||||
import com.jsowell.pile.service.PileMerchantInfoService;
|
||||
import com.jsowell.pile.service.PileStationInfoService;
|
||||
import com.jsowell.pile.util.UserUtils;
|
||||
import com.jsowell.pile.vo.web.OrderListVO;
|
||||
import com.jsowell.pile.vo.web.SplitAggregateDataVO;
|
||||
import com.jsowell.pile.vo.web.SplitConfigOrderVO;
|
||||
import com.jsowell.pile.vo.web.SplitRecordInfoVO;
|
||||
import com.jsowell.pile.vo.web.*;
|
||||
import com.jsowell.service.OrderService;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@@ -364,4 +361,24 @@ public class OrderBasicInfoController extends BaseController {
|
||||
logger.info("订单保险金额退款 params:{}, result:{}", JSON.toJSONString(orderBasicInfo), response);
|
||||
return response;
|
||||
}
|
||||
|
||||
/**
|
||||
* 订单数量与保险金额时间区统计
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/queryOrderInsuranceAmountByTime")
|
||||
public RestApiResponse<?> queryOrderInsuranceAmountByTime(@RequestBody QueryOrderDTO dto) {
|
||||
RestApiResponse<?> response = null;
|
||||
try {
|
||||
//stationId ,merchantIdList,stationIdList,merchantId,startTime,endTime
|
||||
OrderCountByTimeVO result = orderBasicInfoService.queryOrderInsuranceAmountByTime(dto);
|
||||
response = new RestApiResponse<>(result);
|
||||
} catch (Exception e) {
|
||||
logger.error("时间区间查询订单统计 error", e);
|
||||
}
|
||||
logger.info("时间区间查询订单统计 result:{}", response);
|
||||
return response;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user