支付状态新增待补缴

This commit is contained in:
2024-01-17 17:41:57 +08:00
parent 95c036d950
commit 032e13ce13
8 changed files with 48 additions and 11 deletions

View File

@@ -329,4 +329,6 @@ public interface OrderBasicInfoMapper {
List<OrderVO> getOrderInfoByNXJT(NXJTQueryOrdersInfoDTO dto);
OrderTotalDataVO getOrderTotalData(QueryOrderDTO dto);
List<OrderBasicInfo> queryRepayOrder(String memberId);
}

View File

@@ -394,4 +394,5 @@ public interface OrderBasicInfoService{
*/
List<OrderVO> getOrderInfoByNXJT(NXJTQueryOrdersInfoDTO dto);
List<OrderBasicInfo> queryRepayOrder(String memberId);
}

View File

@@ -81,6 +81,8 @@ public interface OrderPileOccupyService{
Map<String, Object> payOccupyPileOrder(PayOrderDTO dto);
Map<String, Object> queryUnPayOrder(String memberId);
/**
* 查询占桩订单列表
* @param dto

View File

@@ -3523,6 +3523,11 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
return orderBasicInfoMapper.getOrderInfoByNXJT(dto);
}
@Override
public List<OrderBasicInfo> queryRepayOrder(String memberId) {
return orderBasicInfoMapper.queryRepayOrder(memberId);
}
@Override
public int deleteByPrimaryKey(Integer id) {
return orderBasicInfoMapper.deleteByPrimaryKey(id);

View File

@@ -20,6 +20,7 @@ import com.jsowell.common.util.DateUtils;
import com.jsowell.common.util.PageUtils;
import com.jsowell.common.util.StringUtils;
import com.jsowell.common.util.id.IdUtils;
import com.jsowell.pile.domain.OrderBasicInfo;
import com.jsowell.pile.domain.OrderPileOccupy;
import com.jsowell.pile.domain.ykcCommond.RemoteControlGroundLockCommand;
import com.jsowell.pile.dto.*;
@@ -353,6 +354,21 @@ public class OrderPileOccupyServiceImpl implements OrderPileOccupyService {
return orderPileOccupyMapper.queryUnPayOrderByMemberId(memberId);
}
@Override
public Map<String, Object> queryUnPayOrder(String memberId) {
Map<String, Object> resultMap = Maps.newHashMap();
OrderPileOccupy orderPileOccupy = orderPileOccupyMapper.queryUnPayOrderByMemberId(memberId);
if (orderPileOccupy != null) {
resultMap.put("occupyCode", orderPileOccupy.getOccupyCode());
}
List<OrderBasicInfo> orderList = orderBasicInfoService.queryRepayOrder(memberId);
if (CollectionUtils.isNotEmpty(orderList)) {
List<String> orderCodeList = orderList.stream().map(OrderBasicInfo::getOrderCode).collect(Collectors.toList());
resultMap.put("occupyCode", orderCodeList);
}
return resultMap;
}
/**
* 查询占桩订单列表
*

View File

@@ -94,8 +94,14 @@ public class DelayMerchantProgramLogic extends AbstractProgramLogic {
balancePayOrderV2(dto);
} else if (StringUtils.equals(dto.getPayMode(), OrderPayModeEnum.PAYMENT_OF_WECHATPAY.getValue())) {
// 2023-07-11 全部改为汇付支付
dto.setGoodsTitle("充电费用");
dto.setGoodsDesc("充电桩预付款金额");
String goodsTitle = "充电费用";
String goodsDesc = "充电桩预付款金额";
if (StringUtils.equals(orderInfo.getPayStatus(), OrderPayStatusEnum.repay.getValue())) {
goodsTitle = "补缴费用";
goodsDesc = dto.getOrderCode() + "订单补缴金额";
}
dto.setGoodsTitle(goodsTitle);
dto.setGoodsDesc(goodsDesc);
dto.setType(ScenarioEnum.ORDER.getValue());
Map<String, Object> weixinMap = onlinePaymentOrder(dto);