2023-07-14 13:17:37 +08:00
|
|
|
|
package com.jsowell.api.uniapp;
|
|
|
|
|
|
|
2023-08-08 16:47:45 +08:00
|
|
|
|
import com.alibaba.fastjson2.JSON;
|
2023-07-14 13:17:37 +08:00
|
|
|
|
import com.alibaba.fastjson2.JSONObject;
|
2023-07-29 16:43:16 +08:00
|
|
|
|
import com.jsowell.adapay.dto.BalancePaymentRequestDTO;
|
2023-08-18 09:52:12 +08:00
|
|
|
|
import com.jsowell.adapay.service.AdapayService;
|
2023-07-14 13:17:37 +08:00
|
|
|
|
import com.jsowell.common.annotation.Anonymous;
|
|
|
|
|
|
import com.jsowell.common.core.controller.BaseController;
|
|
|
|
|
|
import com.jsowell.common.enums.ykc.ReturnCodeEnum;
|
|
|
|
|
|
import com.jsowell.common.exception.BusinessException;
|
|
|
|
|
|
import com.jsowell.common.response.RestApiResponse;
|
2023-07-20 16:59:34 +08:00
|
|
|
|
import com.jsowell.common.util.DateUtils;
|
2023-07-25 16:28:01 +08:00
|
|
|
|
import com.jsowell.pile.domain.AdapayMemberAccount;
|
2023-07-19 10:02:35 +08:00
|
|
|
|
import com.jsowell.pile.domain.MemberPlateNumberRelation;
|
2023-07-25 16:28:01 +08:00
|
|
|
|
import com.jsowell.pile.domain.OrderBasicInfo;
|
2023-08-10 15:19:45 +08:00
|
|
|
|
import com.jsowell.pile.dto.ApplyRefundDTO;
|
2023-07-19 10:02:35 +08:00
|
|
|
|
import com.jsowell.pile.dto.CarVinDTO;
|
2023-07-14 13:17:37 +08:00
|
|
|
|
import com.jsowell.pile.dto.QueryOrderDTO;
|
2023-08-22 14:01:17 +08:00
|
|
|
|
import com.jsowell.pile.dto.SettleOrderReportDTO;
|
|
|
|
|
|
import com.jsowell.pile.service.*;
|
2023-08-21 14:38:30 +08:00
|
|
|
|
import com.jsowell.pile.vo.uniapp.MemberBalanceVO;
|
2023-08-10 15:19:45 +08:00
|
|
|
|
import com.jsowell.service.OrderService;
|
2023-08-11 17:13:43 +08:00
|
|
|
|
import org.apache.commons.collections4.CollectionUtils;
|
2023-07-14 13:17:37 +08:00
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
2023-08-10 15:19:45 +08:00
|
|
|
|
import java.math.BigDecimal;
|
2023-07-20 16:12:10 +08:00
|
|
|
|
import java.util.List;
|
2023-08-22 15:06:13 +08:00
|
|
|
|
import java.util.Map;
|
2023-07-14 13:17:37 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 用于临时接口
|
|
|
|
|
|
*/
|
|
|
|
|
|
@Anonymous
|
|
|
|
|
|
@RestController
|
|
|
|
|
|
@RequestMapping("/temp")
|
|
|
|
|
|
public class TempController extends BaseController {
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
|
private IOrderBasicInfoService orderBasicInfoService;
|
|
|
|
|
|
|
2023-07-19 10:02:35 +08:00
|
|
|
|
@Autowired
|
|
|
|
|
|
private IMemberPlateNumberRelationService memberPlateNumberRelationService;
|
|
|
|
|
|
|
2023-07-25 16:28:01 +08:00
|
|
|
|
@Autowired
|
|
|
|
|
|
private IAdapayMemberAccountService adapayMemberAccountService;
|
|
|
|
|
|
|
2023-07-29 16:43:16 +08:00
|
|
|
|
@Autowired
|
2023-08-18 09:52:12 +08:00
|
|
|
|
private AdapayService adapayMemberService;
|
2023-07-29 16:43:16 +08:00
|
|
|
|
|
2023-08-10 15:19:45 +08:00
|
|
|
|
@Autowired
|
|
|
|
|
|
private IMemberBasicInfoService memberBasicInfoService;
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
|
private OrderService orderService;
|
|
|
|
|
|
|
2023-08-22 14:01:17 +08:00
|
|
|
|
@Autowired
|
|
|
|
|
|
private ISettleOrderReportService settleOrderReportService;
|
|
|
|
|
|
|
2023-07-14 13:17:37 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 临时刷数据接口
|
|
|
|
|
|
* http://localhost:8080/temp/tempUpdateVirtualAmount
|
2023-08-10 15:19:45 +08:00
|
|
|
|
*
|
2023-07-14 13:17:37 +08:00
|
|
|
|
* @param request
|
|
|
|
|
|
* @return
|
|
|
|
|
|
*/
|
|
|
|
|
|
@PostMapping("tempUpdateVirtualAmount")
|
|
|
|
|
|
public RestApiResponse<?> tempUpdateVirtualAmount(HttpServletRequest request, @RequestBody QueryOrderDTO dto) {
|
|
|
|
|
|
logger.info("临时刷数据接口 param:{}", dto);
|
|
|
|
|
|
RestApiResponse<?> response = null;
|
|
|
|
|
|
try {
|
|
|
|
|
|
String s = orderBasicInfoService.tempUpdateVirtualAmount(dto);
|
|
|
|
|
|
response = new RestApiResponse<>(s);
|
|
|
|
|
|
} catch (BusinessException e) {
|
|
|
|
|
|
logger.warn("临时刷数据接口 warn", e);
|
|
|
|
|
|
response = new RestApiResponse<>(e.getCode(), e.getMessage());
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
|
logger.error("临时刷数据接口 error", e);
|
|
|
|
|
|
response = new RestApiResponse<>(ReturnCodeEnum.CODE_GET_PILE_DETAIL_ERROR);
|
|
|
|
|
|
}
|
|
|
|
|
|
logger.info("临时刷数据接口 result:{}", JSONObject.toJSONString(response));
|
|
|
|
|
|
return response;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 临时订单退款
|
|
|
|
|
|
* http://localhost:8080/temp/tempOrderRefund
|
2023-08-10 15:19:45 +08:00
|
|
|
|
*
|
2023-07-14 13:17:37 +08:00
|
|
|
|
* @return
|
|
|
|
|
|
*/
|
|
|
|
|
|
@GetMapping("tempOrderRefund")
|
|
|
|
|
|
public RestApiResponse<?> tempOrderRefund() {
|
|
|
|
|
|
RestApiResponse<?> response = null;
|
|
|
|
|
|
try {
|
2023-07-27 16:57:42 +08:00
|
|
|
|
// orderBasicInfoService.tempOrderRefund();
|
2023-07-14 13:17:37 +08:00
|
|
|
|
response = new RestApiResponse<>();
|
|
|
|
|
|
} catch (BusinessException e) {
|
|
|
|
|
|
logger.warn("临时订单退款接口 warn", e);
|
|
|
|
|
|
response = new RestApiResponse<>(e.getCode(), e.getMessage());
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
|
logger.error("临时订单退款接口 error", e);
|
|
|
|
|
|
response = new RestApiResponse<>(ReturnCodeEnum.CODE_WEIXIN_REFUND_ERROR);
|
|
|
|
|
|
}
|
|
|
|
|
|
logger.info("临时刷数据接口 result:{}", JSONObject.toJSONString(response));
|
|
|
|
|
|
return response;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 批量退款接口
|
|
|
|
|
|
* http://localhost:8080/temp/batchRefund
|
2023-08-10 15:19:45 +08:00
|
|
|
|
*
|
2023-07-14 13:17:37 +08:00
|
|
|
|
* @param dto
|
|
|
|
|
|
* @return
|
|
|
|
|
|
*/
|
|
|
|
|
|
@PostMapping("/batchRefund")
|
|
|
|
|
|
public RestApiResponse<?> batchRefund(@RequestBody QueryOrderDTO dto) {
|
|
|
|
|
|
RestApiResponse<?> response = null;
|
|
|
|
|
|
try {
|
|
|
|
|
|
orderBasicInfoService.batchRefund(dto);
|
|
|
|
|
|
response = new RestApiResponse<>();
|
|
|
|
|
|
} catch (BusinessException e) {
|
|
|
|
|
|
logger.warn("临时订单退款接口 warn", e);
|
|
|
|
|
|
response = new RestApiResponse<>(e.getCode(), e.getMessage());
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
|
logger.error("临时订单退款接口 error", e);
|
|
|
|
|
|
response = new RestApiResponse<>(ReturnCodeEnum.CODE_WEIXIN_REFUND_ERROR);
|
|
|
|
|
|
}
|
|
|
|
|
|
logger.info("临时刷数据接口 result:{}", JSONObject.toJSONString(response));
|
|
|
|
|
|
return response;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 临时接口,计算站点订单报表
|
2023-07-14 13:48:46 +08:00
|
|
|
|
* http://localhost:8080/temp/tempGenerateDailyOrderReports
|
2023-08-10 15:19:45 +08:00
|
|
|
|
*
|
2023-07-14 13:17:37 +08:00
|
|
|
|
* @param dto
|
|
|
|
|
|
* @return
|
|
|
|
|
|
*/
|
|
|
|
|
|
@PostMapping("/tempGenerateDailyOrderReports")
|
|
|
|
|
|
public RestApiResponse<?> tempGenerateDailyOrderReports(@RequestBody QueryOrderDTO dto) {
|
|
|
|
|
|
RestApiResponse<?> response = null;
|
|
|
|
|
|
try {
|
2023-07-20 16:12:10 +08:00
|
|
|
|
String startTime = dto.getStartTime();
|
|
|
|
|
|
String endTime = dto.getEndTime();
|
2023-07-20 16:59:34 +08:00
|
|
|
|
// 获取日期区间内所有日期
|
|
|
|
|
|
List<String> dateList = DateUtils.getAllDatesInTheDateRange(startTime, endTime);
|
2023-07-20 16:12:10 +08:00
|
|
|
|
|
|
|
|
|
|
dto.getStationIdList().parallelStream().forEach(stationId -> {
|
|
|
|
|
|
for (String tradeDate : dateList) {
|
|
|
|
|
|
orderBasicInfoService.generateDailyOrderReports(stationId, tradeDate);
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
2023-07-14 14:22:36 +08:00
|
|
|
|
|
2023-07-14 13:17:37 +08:00
|
|
|
|
response = new RestApiResponse<>();
|
|
|
|
|
|
} catch (BusinessException e) {
|
2023-07-14 14:08:12 +08:00
|
|
|
|
logger.warn("临时接口计算站点订单报表 warn", e);
|
2023-07-14 13:17:37 +08:00
|
|
|
|
response = new RestApiResponse<>(e.getCode(), e.getMessage());
|
|
|
|
|
|
} catch (Exception e) {
|
2023-07-14 14:08:12 +08:00
|
|
|
|
logger.error("临时接口计算站点订单报表 error", e);
|
2023-07-14 13:17:37 +08:00
|
|
|
|
response = new RestApiResponse<>(ReturnCodeEnum.CODE_WEIXIN_REFUND_ERROR);
|
|
|
|
|
|
}
|
2023-07-14 14:08:12 +08:00
|
|
|
|
logger.info("临时接口计算站点订单报表 result:{}", JSONObject.toJSONString(response));
|
2023-07-14 13:17:37 +08:00
|
|
|
|
return response;
|
|
|
|
|
|
}
|
2023-07-19 10:02:35 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 临时接口测试vin查询方法
|
2023-08-10 15:19:45 +08:00
|
|
|
|
*
|
2023-07-19 10:02:35 +08:00
|
|
|
|
* @param dto
|
|
|
|
|
|
* @return
|
|
|
|
|
|
*/
|
|
|
|
|
|
@PostMapping("/tempTestVinCode")
|
|
|
|
|
|
public RestApiResponse<?> tempTestVinCode(@RequestBody CarVinDTO dto) {
|
|
|
|
|
|
RestApiResponse<?> response = null;
|
|
|
|
|
|
try {
|
|
|
|
|
|
MemberPlateNumberRelation memberPlateInfoByVinCode = memberPlateNumberRelationService.getMemberPlateInfoByVinCode(dto.getVinCode());
|
|
|
|
|
|
response = new RestApiResponse<>(memberPlateInfoByVinCode);
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
|
logger.error("临时接口测试vin查询方法 error,", e);
|
|
|
|
|
|
response = new RestApiResponse<>(ReturnCodeEnum.CODE_WEIXIN_REFUND_ERROR);
|
|
|
|
|
|
}
|
|
|
|
|
|
logger.info("临时接口测试vin查询方法 result:{}", response);
|
|
|
|
|
|
return response;
|
|
|
|
|
|
}
|
2023-07-25 16:28:01 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 交易确认接口
|
|
|
|
|
|
* http://localhost:8080/temp/tempPaymentConfirm
|
|
|
|
|
|
*/
|
|
|
|
|
|
@PostMapping("/tempPaymentConfirm")
|
|
|
|
|
|
public RestApiResponse<?> tempPaymentConfirm(@RequestBody QueryOrderDTO dto) {
|
|
|
|
|
|
RestApiResponse<?> response = null;
|
|
|
|
|
|
try {
|
|
|
|
|
|
OrderBasicInfo orderBasicInfo = orderBasicInfoService.getOrderInfoByOrderCode(dto.getOrderCode());
|
|
|
|
|
|
AdapayMemberAccount adapayMemberAccount = adapayMemberAccountService.selectByMerchantId("1");
|
|
|
|
|
|
if (orderBasicInfo == null || adapayMemberAccount == null) {
|
|
|
|
|
|
throw new BusinessException("", "查询信息为空");
|
|
|
|
|
|
}
|
|
|
|
|
|
orderBasicInfoService.doPaymentConfirm(orderBasicInfo, adapayMemberAccount);
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
|
logger.error("临时接口交易确认接口 error,", e);
|
|
|
|
|
|
response = new RestApiResponse<>(ReturnCodeEnum.CODE_WEIXIN_REFUND_ERROR);
|
|
|
|
|
|
}
|
|
|
|
|
|
logger.info("临时接口交易确认接口 result:{}", response);
|
|
|
|
|
|
return response;
|
|
|
|
|
|
}
|
2023-07-29 15:03:43 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 运营商分账手动接口
|
2023-07-29 15:04:48 +08:00
|
|
|
|
* http://localhost:8080/temp/orderSplittingOperations
|
2023-08-10 15:19:45 +08:00
|
|
|
|
*
|
2023-07-29 15:03:43 +08:00
|
|
|
|
* @return
|
|
|
|
|
|
*/
|
|
|
|
|
|
@PostMapping("/orderSplittingOperations")
|
|
|
|
|
|
public RestApiResponse<?> orderSplittingOperations(@RequestBody QueryOrderDTO dto) {
|
2023-08-08 16:47:45 +08:00
|
|
|
|
logger.info("手动接口执行订单分账逻辑-param:{}", JSON.toJSONString(dto));
|
2023-07-29 15:03:43 +08:00
|
|
|
|
RestApiResponse<?> response = null;
|
|
|
|
|
|
try {
|
|
|
|
|
|
String startTime = dto.getStartTime();
|
|
|
|
|
|
String endTime = dto.getEndTime();
|
|
|
|
|
|
// 获取日期区间内所有日期
|
|
|
|
|
|
List<String> dateList = DateUtils.getAllDatesInTheDateRange(startTime, endTime);
|
|
|
|
|
|
|
|
|
|
|
|
for (String tradeDate : dateList) {
|
2023-08-08 15:50:22 +08:00
|
|
|
|
orderBasicInfoService.tempOrderSplittingOperations(dto.getMerchantId(), tradeDate);
|
|
|
|
|
|
// orderBasicInfoService.orderSplittingOperations(dto.getMerchantId(), tradeDate);
|
2023-07-29 15:03:43 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
response = new RestApiResponse<>();
|
|
|
|
|
|
} catch (BusinessException e) {
|
2023-08-08 16:47:45 +08:00
|
|
|
|
logger.warn("手动接口执行订单分账逻辑-warn", e);
|
2023-07-29 15:03:43 +08:00
|
|
|
|
response = new RestApiResponse<>(e.getCode(), e.getMessage());
|
|
|
|
|
|
} catch (Exception e) {
|
2023-08-08 16:47:45 +08:00
|
|
|
|
logger.error("手动接口执行订单分账逻辑-error", e);
|
2023-07-29 15:03:43 +08:00
|
|
|
|
response = new RestApiResponse<>(ReturnCodeEnum.CODE_WEIXIN_REFUND_ERROR);
|
|
|
|
|
|
}
|
2023-08-08 16:47:45 +08:00
|
|
|
|
logger.info("手动接口执行订单分账逻辑-result:{}", JSONObject.toJSONString(response));
|
2023-07-29 15:03:43 +08:00
|
|
|
|
return response;
|
|
|
|
|
|
}
|
2023-07-29 16:43:16 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 测试余额支付接口
|
|
|
|
|
|
* http://localhost:8080/temp/testCreateBalancePayment
|
|
|
|
|
|
*/
|
|
|
|
|
|
@PostMapping("/testCreateBalancePayment")
|
|
|
|
|
|
public RestApiResponse<?> testCreateBalancePayment(@RequestBody BalancePaymentRequestDTO dto) {
|
|
|
|
|
|
RestApiResponse<?> response = null;
|
|
|
|
|
|
try {
|
2023-08-17 17:12:17 +08:00
|
|
|
|
adapayMemberService.createBalancePaymentRequest(dto.getOutMemberId(), dto.getInMemberId(), dto.getTransAmt(), "测试余额支付", "测试余额支付描述", "");
|
2023-07-29 16:43:16 +08:00
|
|
|
|
response = new RestApiResponse<>();
|
|
|
|
|
|
} catch (BusinessException e) {
|
|
|
|
|
|
logger.warn("测试余额支付接口warn", e);
|
|
|
|
|
|
response = new RestApiResponse<>(e.getCode(), e.getMessage());
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
|
logger.error("测试余额支付接口error", e);
|
|
|
|
|
|
response = new RestApiResponse<>(ReturnCodeEnum.CODE_WEIXIN_REFUND_ERROR);
|
|
|
|
|
|
}
|
|
|
|
|
|
logger.info("测试余额支付接口result:{}", JSONObject.toJSONString(response));
|
|
|
|
|
|
return response;
|
|
|
|
|
|
}
|
2023-08-10 15:19:45 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2023-08-11 17:13:43 +08:00
|
|
|
|
* 批量余额退款接口
|
2023-08-17 10:07:28 +08:00
|
|
|
|
* http://localhost:8080/temp/batchWechatRefund
|
2023-08-10 15:19:45 +08:00
|
|
|
|
* @param dto
|
|
|
|
|
|
* @return
|
|
|
|
|
|
*/
|
2023-08-10 18:48:50 +08:00
|
|
|
|
@PostMapping("/batchWechatRefund")
|
|
|
|
|
|
public RestApiResponse<?> batchWechatRefund(@RequestBody ApplyRefundDTO dto) {
|
2023-08-11 17:13:43 +08:00
|
|
|
|
logger.info("批量余额退款接口 params:{}", JSONObject.toJSONString(dto));
|
2023-08-10 15:19:45 +08:00
|
|
|
|
RestApiResponse<?> response = null;
|
|
|
|
|
|
List<String> memberIdList = dto.getMemberIdList();
|
|
|
|
|
|
try {
|
|
|
|
|
|
// 查询出本金金额
|
|
|
|
|
|
List<MemberBalanceVO> memberRefundAmount = memberBasicInfoService.getMemberRefundAmount(memberIdList);
|
2023-08-11 17:13:43 +08:00
|
|
|
|
if (CollectionUtils.isNotEmpty(memberRefundAmount)) {
|
|
|
|
|
|
memberRefundAmount.parallelStream().forEach(memberBalanceVO -> {
|
|
|
|
|
|
ApplyRefundDTO refundDTO = new ApplyRefundDTO();
|
|
|
|
|
|
refundDTO.setMemberId(memberBalanceVO.getMemberId());
|
|
|
|
|
|
refundDTO.setRefundType("2");
|
|
|
|
|
|
refundDTO.setRefundAmount(new BigDecimal(memberBalanceVO.getPrincipalAmount()));
|
|
|
|
|
|
// 调用退款接口
|
|
|
|
|
|
orderService.weChatRefund(refundDTO);
|
|
|
|
|
|
});
|
2023-08-10 15:19:45 +08:00
|
|
|
|
}
|
|
|
|
|
|
response = new RestApiResponse<>();
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
|
logger.error("批量退款接口 error,", e);
|
|
|
|
|
|
response = new RestApiResponse<>(e);
|
|
|
|
|
|
}
|
|
|
|
|
|
return response;
|
|
|
|
|
|
}
|
2023-08-17 14:25:45 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 重试订单退款接口
|
|
|
|
|
|
* http://localhost:8080/temp/retryRefundOrder
|
|
|
|
|
|
*/
|
|
|
|
|
|
@PostMapping("/retryRefundOrder")
|
|
|
|
|
|
public RestApiResponse<?> retryRefundOrder(@RequestBody ApplyRefundDTO dto) {
|
|
|
|
|
|
RestApiResponse<?> response;
|
|
|
|
|
|
try {
|
|
|
|
|
|
orderBasicInfoService.retryRefundOrder(dto.getOrderCode());
|
|
|
|
|
|
response = new RestApiResponse<>();
|
|
|
|
|
|
} catch (BusinessException e) {
|
|
|
|
|
|
logger.error("重试订单退款接口 error,", e);
|
|
|
|
|
|
response = new RestApiResponse<>(e.getCode(), e.getMessage());
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
|
logger.error("重试订单退款接口 error,", e);
|
|
|
|
|
|
response = new RestApiResponse<>(e);
|
|
|
|
|
|
}
|
|
|
|
|
|
return response;
|
|
|
|
|
|
}
|
2023-08-22 14:01:17 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 查询未分账订单
|
|
|
|
|
|
* http://localhost:8080/temp/queryUndividedOrder
|
|
|
|
|
|
*/
|
|
|
|
|
|
@PostMapping("/queryUndividedOrder")
|
2023-08-22 15:06:13 +08:00
|
|
|
|
public RestApiResponse<?> queryUndividedOrder(@RequestBody SettleOrderReportDTO dto) {
|
2023-08-22 14:01:17 +08:00
|
|
|
|
logger.info("查询未分账订单param:{}", JSON.toJSONString(dto));
|
|
|
|
|
|
RestApiResponse<?> response;
|
|
|
|
|
|
try {
|
2023-08-22 15:06:13 +08:00
|
|
|
|
Map<String, Object> map = settleOrderReportService.queryUndividedOrder(dto);
|
|
|
|
|
|
response = new RestApiResponse<>(map);
|
2023-08-22 14:01:17 +08:00
|
|
|
|
} catch (BusinessException e) {
|
|
|
|
|
|
logger.error("查询未分账订单接口 error,", e);
|
|
|
|
|
|
response = new RestApiResponse<>(e.getCode(), e.getMessage());
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
|
logger.error("查询未分账订单接口 error,", e);
|
|
|
|
|
|
response = new RestApiResponse<>("00300003", "查询未分账订单异常");
|
|
|
|
|
|
}
|
|
|
|
|
|
logger.info("查询未分账订单result:{}", JSON.toJSONString(response));
|
|
|
|
|
|
return response;
|
|
|
|
|
|
}
|
2023-07-14 13:17:37 +08:00
|
|
|
|
}
|