| | |
| | | package com.nuvole.hnnx.hnnxPay; |
| | | |
| | | import cn.hutool.core.convert.Convert; |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.fasterxml.jackson.databind.node.ContainerNode; |
| | |
| | | import com.nuvole.hnnx.orderQueryTask.OrderQueryTask; |
| | | import com.nuvole.hnnx.orderQueryTask.OrderQueryUtil; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.context.ApplicationEventPublisher; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | */ |
| | | public CommonResult<JSONArray> kjTradeQuery(String orderNum, String startDate, String endDate, Integer pageSize, Integer pageNum) { |
| | | String tradeQueryResp = nxHttpClientUtils.quickPayOrderQueryRequest(orderNum, startDate, endDate, Convert.toInt(pageSize, 1), Convert.toInt(pageNum, 1)); |
| | | if (StringUtils.isEmpty(tradeQueryResp)) { |
| | | if (StrUtil.isBlank(tradeQueryResp)) { |
| | | return new CommonResult<>(CommonResultEmnu.ERROR, "未查询到数据"); |
| | | } |
| | | JSONObject tradeQueryRespObj = JSONObject.parseObject(tradeQueryResp); |