新增 查询停车优免信息列表接口

This commit is contained in:
Lemon
2026-03-20 09:21:41 +08:00
parent 89efe8b2a9
commit c14def6a39
5 changed files with 187 additions and 0 deletions

View File

@@ -1,10 +1,13 @@
package com.jsowell.api.uniapp.business;
import com.alibaba.fastjson2.JSONObject;
import com.jsowell.common.core.controller.BaseController;
import com.jsowell.common.core.page.PageResponse;
import com.jsowell.common.enums.ykc.ReturnCodeEnum;
import com.jsowell.common.exception.BusinessException;
import com.jsowell.common.response.RestApiResponse;
import com.jsowell.pile.dto.MerchantOrderReportDTO;
import com.jsowell.pile.dto.ParkingCouponRecordQueryDTO;
import com.jsowell.pile.service.BusinessFinancialService;
import com.jsowell.pile.vo.web.MerchantOrderReportVO;
import org.apache.commons.lang3.StringUtils;
@@ -56,4 +59,32 @@ public class BusinessFinancialController extends BaseController {
}
return response;
}
/**
* 查询停车优免记录
*
* @param dto 查询参数
* @return 优免记录列表
*/
@PostMapping("/parkingCouponRecords")
public RestApiResponse<?> queryParkingCouponRecords(@RequestBody ParkingCouponRecordQueryDTO dto) {
logger.info("查询停车优免记录 params:{}", JSONObject.toJSONString(dto));
RestApiResponse<?> response;
try {
if (dto == null) {
throw new BusinessException(ReturnCodeEnum.CODE_PARAM_NOT_NULL_ERROR);
}
PageResponse result = businessFinancialService.queryParkingCouponRecords(dto);
response = new RestApiResponse<>(result);
logger.info("查询停车优免记录成功 total:{}", result.getTotal());
} catch (BusinessException e) {
logger.warn("查询停车优免记录业务异常 code:{}, message:{}", e.getCode(), e.getMessage(), e);
response = new RestApiResponse<>(e.getCode(), e.getMessage());
} catch (Exception e) {
logger.error("查询停车优免记录系统异常", e);
response = new RestApiResponse<>(e);
}
return response;
}
}