mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 11:35:12 +08:00
支付状态新增待补缴
This commit is contained in:
@@ -329,4 +329,6 @@ public interface OrderBasicInfoMapper {
|
||||
List<OrderVO> getOrderInfoByNXJT(NXJTQueryOrdersInfoDTO dto);
|
||||
|
||||
OrderTotalDataVO getOrderTotalData(QueryOrderDTO dto);
|
||||
|
||||
List<OrderBasicInfo> queryRepayOrder(String memberId);
|
||||
}
|
||||
@@ -394,4 +394,5 @@ public interface OrderBasicInfoService{
|
||||
*/
|
||||
List<OrderVO> getOrderInfoByNXJT(NXJTQueryOrdersInfoDTO dto);
|
||||
|
||||
List<OrderBasicInfo> queryRepayOrder(String memberId);
|
||||
}
|
||||
|
||||
@@ -81,6 +81,8 @@ public interface OrderPileOccupyService{
|
||||
|
||||
Map<String, Object> payOccupyPileOrder(PayOrderDTO dto);
|
||||
|
||||
Map<String, Object> queryUnPayOrder(String memberId);
|
||||
|
||||
/**
|
||||
* 查询占桩订单列表
|
||||
* @param dto
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询占桩订单列表
|
||||
*
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user