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
18a8b739
Commit
18a8b739
authored
Jan 05, 2021
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pom规范
parent
e90f9d77
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
6 additions
and
37 deletions
+6
-37
BillingAccountServiceImpl.java
...ic/enterprise/service/impl/BillingAccountServiceImpl.java
+0
-1
EnterpriseApiServiceImpl.java
...terprise/service/outer/impl/EnterpriseApiServiceImpl.java
+1
-1
SmsRecordApiServiceImpl.java
...nterprise/service/outer/impl/SmsRecordApiServiceImpl.java
+0
-30
OfflineStrategy.java
...ic/enterprise/service/outer/impl/pay/OfflineStrategy.java
+1
-1
WxPayStrategy.java
.../gic/enterprise/service/outer/impl/pay/WxPayStrategy.java
+1
-1
PayCompleteHandler.java
...se/service/outer/impl/paycomplete/PayCompleteHandler.java
+1
-1
RechargeHandler.java
...prise/service/outer/impl/paycomplete/RechargeHandler.java
+1
-1
SmsPackageHandler.java
...ise/service/outer/impl/paycomplete/SmsPackageHandler.java
+1
-1
No files found.
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/impl/BillingAccountServiceImpl.java
View file @
18a8b739
...
...
@@ -58,7 +58,6 @@ public class BillingAccountServiceImpl implements BillingAccountService{
account
.
addAndGet
(
totalFee
);
TabBillingAccount
tabBillingAccount
=
tabBillingAccountMapper
.
selectByEnterpriseId
(
enterpriseId
);
// double newTotal = new BigDecimal(tabBillingAccount.getAccountBalance().toString()).add(new BigDecimal(totalFee + "")).doubleValue();
double
newTotal
=
tabBillingAccount
.
getAccountBalance
()
+
totalFee
;
logger
.
info
(
"商户:{}, 充值/退款前余额:{}, 充值/退款金额:{}, 充值/退款后余额:{}"
,
enterpriseId
,
tabBillingAccount
.
getAccountBalance
(),
totalFee
,
newTotal
);
UserDTO
user
=
userApiService
.
getUserByEnterpriseId
(
enterpriseId
).
getResult
();
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/EnterpriseApiServiceImpl.java
View file @
18a8b739
...
...
@@ -659,7 +659,7 @@ public class EnterpriseApiServiceImpl implements EnterpriseApiService {
LOGGER
.
warn
(
"exception"
,
e
);
}
}
return
null
;
return
ServiceResponse
.
success
()
;
}
@Override
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/SmsRecordApiServiceImpl.java
View file @
18a8b739
...
...
@@ -144,35 +144,6 @@ public class SmsRecordApiServiceImpl implements SmsRecordApiService {
@Override
public
ServiceResponse
<
Void
>
run
(
String
arg
)
{
/*// 缓存中计费
GicMQClient client = GICMQClientUtil.getClientInstance();
try {
logger.info("国内短信缓存扣费:{}", arg);
SmsRecordDTO smsRecordDTO = JSON.parseObject(arg, SmsRecordDTO.class);
// 判断是扣套餐包还是扣余额
RAtomicLong smsCount = billingEnterpriseSmsPackageService.getTotalSmsInPackageByEnterpriseId(smsRecordDTO.getEnterpriseId());
smsRecordDTO.setCacheStatus(0);
smsRecordDTO.setDatabaseStatus(0);
// 缓存扣费 0套餐包 4余额
Integer fee = accountStandardService.queryUnitFee(smsRecordDTO.getEnterpriseId(), AccountStandardEnum.SMS.getCode());
int deductType = deduct(smsCount, smsRecordDTO.getEnterpriseId(), fee);
smsRecordDTO.setPayType(deductType);
smsRecordDTO.setFee((double)fee/1000);
Long smsRecordId = billingSmsRecordService.saveSmsRecord(smsRecordDTO);
smsRecordDTO.setSmsRecordId(smsRecordId);
billingSmsRecordService.updateCacheStatus(smsRecordDTO.getSmsRecordId());
smsRecordDTO.setCacheStatus(1);
// 队列
client.sendMessage("smsDbMq", JSON.toJSONString(smsRecordDTO));
} catch (Exception e) {
logger.warn("调用mq失败", e);
}
*/
return
ServiceResponse
.
success
();
}
...
...
@@ -184,7 +155,6 @@ public class SmsRecordApiServiceImpl implements SmsRecordApiService {
这里不能改成 decrementAndGet自减, 否则会出现减到0的情况
*/
boolean
smsCountDeduct
=
rSmsCount
.
compareAndSet
(
smsCount
,
smsCount
-
1
);
// rSmsCount.decrementAndGet();
if
(!
smsCountDeduct
)
{
// 设置失败 重新计算
return
deduct
(
rSmsCount
,
enterpriseId
,
fee
);
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/pay/OfflineStrategy.java
View file @
18a8b739
...
...
@@ -15,7 +15,7 @@ import com.gic.enterprise.entity.TabBillingPayInfo;
import
com.gic.enterprise.entity.TabEnterprise
;
import
com.gic.enterprise.error.ErrorCode
;
import
com.gic.enterprise.service.*
;
import
com.gic.enterprise.service.outer.impl.pay
C
omplete.PayCompleteHandler
;
import
com.gic.enterprise.service.outer.impl.pay
c
omplete.PayCompleteHandler
;
import
com.gic.enterprise.utils.CreateRandomUtils
;
import
com.gic.finance.dto.TransferAccountsApprovalDTO
;
import
com.gic.finance.service.TransferAccountsApprovalApiService
;
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/pay/WxPayStrategy.java
View file @
18a8b739
...
...
@@ -17,7 +17,7 @@ import com.gic.enterprise.entity.TabBillingPayInfo;
import
com.gic.enterprise.error.ErrorCode
;
import
com.gic.enterprise.service.BillingPayInfoService
;
import
com.gic.enterprise.service.EnterpriseApiService
;
import
com.gic.enterprise.service.outer.impl.pay
C
omplete.PayCompleteHandler
;
import
com.gic.enterprise.service.outer.impl.pay
c
omplete.PayCompleteHandler
;
import
com.gic.enterprise.utils.CreateRandomUtils
;
import
com.gic.log.api.dto.SystemSetLogDTO
;
import
com.gic.log.api.service.LogApiService
;
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/pay
C
omplete/PayCompleteHandler.java
→
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/pay
c
omplete/PayCompleteHandler.java
View file @
18a8b739
package
com
.
gic
.
enterprise
.
service
.
outer
.
impl
.
pay
C
omplete
;
package
com
.
gic
.
enterprise
.
service
.
outer
.
impl
.
pay
c
omplete
;
import
com.gic.enterprise.dto.ApprovalCallBackDTO
;
import
com.gic.enterprise.entity.TabBillingPayInfo
;
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/pay
C
omplete/RechargeHandler.java
→
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/pay
c
omplete/RechargeHandler.java
View file @
18a8b739
package
com
.
gic
.
enterprise
.
service
.
outer
.
impl
.
pay
C
omplete
;
package
com
.
gic
.
enterprise
.
service
.
outer
.
impl
.
pay
c
omplete
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.auth.dto.UserDTO
;
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/pay
C
omplete/SmsPackageHandler.java
→
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/pay
c
omplete/SmsPackageHandler.java
View file @
18a8b739
package
com
.
gic
.
enterprise
.
service
.
outer
.
impl
.
pay
C
omplete
;
package
com
.
gic
.
enterprise
.
service
.
outer
.
impl
.
pay
c
omplete
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.auth.dto.UserDTO
;
...
...
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