|
|
@@ -1,5 +1,6 @@
|
|
|
package com.zhongshu.card.server.core.service.pay;
|
|
|
|
|
|
+import com.github.microservice.auth.client.service.OrganizationUserService;
|
|
|
import com.github.microservice.components.data.base.util.PageEntityUtil;
|
|
|
import com.github.microservice.core.util.JsonUtil;
|
|
|
import com.github.microservice.core.util.bean.BeanUtil;
|
|
|
@@ -19,10 +20,12 @@ import com.github.microservice.types.payment.PaymentChannelType;
|
|
|
import com.github.microservice.types.payment.PaymentType;
|
|
|
import com.zhongshu.card.client.model.mqtt.SendMessageModel;
|
|
|
import com.zhongshu.card.client.model.org.UserCountModel;
|
|
|
+import com.zhongshu.card.client.model.org.orgUser.UserOrgStoreModel;
|
|
|
import com.zhongshu.card.client.model.pay.*;
|
|
|
import com.zhongshu.card.client.model.wechat.MiniAppUserInfoVo;
|
|
|
import com.zhongshu.card.client.type.payAccount.RechargeOrderStatus;
|
|
|
import com.zhongshu.card.client.utils.DateUtils;
|
|
|
+import com.zhongshu.card.server.core.dao.org.OrganizationUserDao;
|
|
|
import com.zhongshu.card.server.core.dao.org.UserCountDao;
|
|
|
import com.zhongshu.card.server.core.dao.pay.BalanceRechargeOrderDao;
|
|
|
import com.zhongshu.card.server.core.domain.org.UserAccount;
|
|
|
@@ -30,6 +33,7 @@ import com.zhongshu.card.server.core.domain.pay.BalanceRechargeOrder;
|
|
|
import com.zhongshu.card.server.core.domain.pay.PayAccount;
|
|
|
import com.zhongshu.card.server.core.service.base.SuperService;
|
|
|
import com.zhongshu.card.server.core.service.mqtt.MqttServiceImpl;
|
|
|
+import com.zhongshu.card.server.core.service.org.OrganizationUserServiceImpl;
|
|
|
import com.zhongshu.card.server.core.service.paySetting.OrgPayAccountService;
|
|
|
import com.zhongshu.card.server.core.service.paySetting.ProjectPaySettingServiceImpl;
|
|
|
import com.zhongshu.card.server.core.util.BeanUtils;
|
|
|
@@ -83,6 +87,9 @@ public class BalancePayService extends SuperService {
|
|
|
@Autowired
|
|
|
UserCountDao userCountDao;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ OrganizationUserServiceImpl organizationUserService;
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 下单并生成调用支付参数
|
|
|
@@ -119,8 +126,10 @@ public class BalancePayService extends SuperService {
|
|
|
PayAccount payAccount = payAccountService.getUserChildren(param.getProjectOid(), param.getUserId(), param.getPaymentType().getChannelType());
|
|
|
UserAccount userAccount = userCountDao.findTopByUserId(param.getUserId());
|
|
|
|
|
|
+ UserOrgStoreModel userOrgStoreModel = organizationUserService.getUserInProjectInfo(projectOid, userAccount);
|
|
|
//创建订单
|
|
|
BalanceRechargeOrder balanceRechargeOrder = new BalanceRechargeOrder();
|
|
|
+ balanceRechargeOrder.setStoreUserInfo(userOrgStoreModel);
|
|
|
balanceRechargeOrder.setProjectOid(param.getProjectOid());
|
|
|
balanceRechargeOrder.setUserId(param.getUserId());
|
|
|
balanceRechargeOrder.setPaymentType(param.getPaymentType());
|