Authored by chenchao

fix

... ... @@ -59,7 +59,7 @@
</choose>
</if>
<if test="billsTradeReq.payErrorCode != null">
pay_error_code = #{billsTradeReq.payErrorCode,jdbcType=VARCHAR},
and pay_error_code = #{billsTradeReq.payErrorCode,jdbcType=VARCHAR}
</if>
</sql>
... ...
... ... @@ -220,6 +220,7 @@ public class TradeBillsServiceImpl implements ITradeBillsService {
if (Objects.isNull(req.getUid())
&& Objects.isNull(req.getOrderCode())
&& Objects.isNull(req.getPayErrorCode())
&& (Objects.isNull(req.getStartTime()) || Objects.isNull(req.getEndTime()))) {
return null;
}
... ... @@ -230,6 +231,10 @@ public class TradeBillsServiceImpl implements ITradeBillsService {
ServiceExceptions.throwServiceExceptionIf(range > 30 * 24 * 3600, "时间范围最大为30天");
}
if (StringUtils.isBlank(req.getPayErrorCode())){
req.setPayErrorCode(null);
}
int total = tradeBillsMapper.selectCountByCondition(req);
if (total == 0) {
... ...