Commit 921b8b3b by zhiwj

bug

parent 2d21e9b2
......@@ -26,7 +26,7 @@ public interface BillingOrderApiService {
*/
ServiceResponse<Integer> saveSmsOrderBuyNow(BillingOrderDTO billingOrderDTO, SmsPackageOrderItemDTO smsPackageOrderItemDTO);
ServiceResponse<BillingPayInfoDTO> paySmsPackageOrder(Integer enterpriseId, Integer orderId, Integer payType, String authCode, String userName);
ServiceResponse<BillingPayInfoDTO> paySmsPackageOrder(Integer enterpriseId, Integer orderId, Integer payType, String authCode, String userName, Integer userId);
/**
* 条件分页查询订单状态
......
......@@ -193,7 +193,7 @@ public class BillingAccountApiServiceImpl implements BillingAccountApiService {
ServiceResponse<Integer> orderResponse = billingOrderApiService.saveSmsOrderBuyNow(orderDTO, itemDTO);
//订购短信套餐包
billingOrderApiService.
paySmsPackageOrder(enterpriseId, orderResponse.getResult(), PayTypeEnum.BALANCE_PAY.getCode(), null, null);
paySmsPackageOrder(enterpriseId, orderResponse.getResult(), PayTypeEnum.BALANCE_PAY.getCode(), null, null, null);
}
}
} else {
......
......@@ -98,7 +98,7 @@ public class BillingOrderApiServcImpl implements BillingOrderApiService {
@Override
@Transactional
public ServiceResponse<BillingPayInfoDTO> paySmsPackageOrder(Integer enterpriseId, Integer orderId, Integer payType,
String authCode, String userName){
String authCode, String userName, Integer userId){
TabBillingOrder order = this.billingOrderService.getOrderById(orderId);
OutPayDTO outPayDTO = new OutPayDTO();
outPayDTO.setEnterpriseId(enterpriseId);
......@@ -118,6 +118,7 @@ public class BillingOrderApiServcImpl implements BillingOrderApiService {
outPayDTO.setPayType(payType);
outPayDTO.setAuthCode(authCode);
outPayDTO.setInitiatorName(userName);
outPayDTO.setInitiatorUser(userId);
ServiceResponse<BillingPayInfoDTO> response = this.billingPayInfoApiService.savePrePayInfo(outPayDTO);
if(response.isSuccess()){
Integer payInfoId = response.getResult().getPayInfoId();
......
......@@ -7,6 +7,7 @@ import com.gic.auth.service.AuthCodeApiService;
import com.gic.commons.util.EntityUtil;
import com.gic.commons.webapi.reponse.RestResponse;
import com.gic.download.utils.log.LogUtils;
import com.gic.enterprise.base.UserInfo;
import com.gic.enterprise.constant.PackageHoursEnum;
import com.gic.enterprise.dto.*;
import com.gic.enterprise.qo.PageQO;
......@@ -109,8 +110,9 @@ public class PackageController {
}
this.authCodeApiService.expireAuthCode(authCodeId);
Integer enterpriseId = UserDetailUtils.getUserDetail().getEnterpriseId();
UserInfo userInfo = UserDetailUtils.getUserDetail().getUserInfo();
ServiceResponse<BillingPayInfoDTO> serviceResponse = this.billingOrderApiService.
paySmsPackageOrder(enterpriseId, orderId, payType, authCode, UserDetailUtils.getUserDetail().getUserInfo().getUserName());
paySmsPackageOrder(enterpriseId, orderId, payType, authCode, userInfo.getUserName(), userInfo.getUserId());
if(serviceResponse.isSuccess()){
BillingOrderDTO orderDTO = this.billingOrderApiService.getOrderById(orderId).getResult();
LogUtils.createLog("套餐包支付", orderDTO.getOrderContent());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment