Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-enterprise
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
base_platform_enterprise
gic-platform-enterprise
Commits
921b8b3b
Commit
921b8b3b
authored
Jun 22, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
2d21e9b2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
4 deletions
+7
-4
BillingOrderApiService.java
...va/com/gic/enterprise/service/BillingOrderApiService.java
+1
-1
BillingAccountApiServiceImpl.java
...rise/service/outer/impl/BillingAccountApiServiceImpl.java
+1
-1
BillingOrderApiServcImpl.java
...terprise/service/outer/impl/BillingOrderApiServcImpl.java
+2
-1
PackageController.java
.../com/gic/enterprise/web/controller/PackageController.java
+3
-1
No files found.
gic-platform-enterprise-api/src/main/java/com/gic/enterprise/service/BillingOrderApiService.java
View file @
921b8b3b
...
...
@@ -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
);
/**
* 条件分页查询订单状态
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/BillingAccountApiServiceImpl.java
View file @
921b8b3b
...
...
@@ -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
{
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/BillingOrderApiServcImpl.java
View file @
921b8b3b
...
...
@@ -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
();
...
...
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/controller/PackageController.java
View file @
921b8b3b
...
...
@@ -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
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment