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
f9056110
Commit
f9056110
authored
Apr 22, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
待办事项
parent
a2bf095e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
10 deletions
+4
-10
Constants.java
.../src/main/java/com/gic/enterprise/constant/Constants.java
+2
-7
BillingAccountServiceImpl.java
...ic/enterprise/service/impl/BillingAccountServiceImpl.java
+1
-1
BillingAccountApiServiceImpl.java
...rise/service/outer/impl/BillingAccountApiServiceImpl.java
+1
-2
No files found.
gic-platform-enterprise-api/src/main/java/com/gic/enterprise/constant/Constants.java
View file @
f9056110
...
...
@@ -59,14 +59,9 @@ public interface Constants {
*/
String
TODO_ITEM_AUDIT
=
"audit"
;
/**
*
账户余额不足
*
产品通知
*/
String
TODO_ITEM_ACCOUNT_BALANCE
=
"account_balance"
;
/**
* 门店分组
*/
String
TODO_ITEM_STORE_GROUP
=
"store_group"
;
String
PRODUCT
=
"product"
;
// -----------------------待办事项跳转url-------------------------------
/**
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/impl/BillingAccountServiceImpl.java
View file @
f9056110
...
...
@@ -51,7 +51,7 @@ public class BillingAccountServiceImpl implements BillingAccountService{
double
newTotal
=
new
BigDecimal
(
tabBillingAccount
.
getAccountBalance
().
toString
()).
add
(
new
BigDecimal
(
totalFee
+
""
)).
doubleValue
();
logger
.
info
(
"商户:{}, 充值/退款前余额:{}, 充值/退款金额:{}, 充值/退款后余额:{}"
,
enterpriseId
,
tabBillingAccount
.
getAccountBalance
(),
totalFee
,
newTotal
);
UserDTO
user
=
userApiService
.
getUserByEnterpriseId
(
enterpriseId
).
getResult
();
todoItemService
.
finishTodoItem
(
enterpriseId
,
user
.
getUserId
(),
Constants
.
TODO_ITEM_ACCOUNT_BALANCE
,
Constants
.
TODO_ITEM_ACCOUNT_BALANCE_URL
);
todoItemService
.
finishTodoItem
(
enterpriseId
,
user
.
getUserId
(),
Constants
.
PRODUCT
,
Constants
.
TODO_ITEM_ACCOUNT_BALANCE_URL
);
return
tabBillingAccountMapper
.
updateAccountAfterRechargeOrRefund
(
totalFee
,
enterpriseId
);
}
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/BillingAccountApiServiceImpl.java
View file @
f9056110
...
...
@@ -15,7 +15,6 @@ import com.gic.enterprise.error.ErrorCode;
import
com.gic.enterprise.response.EnterpriseServiceResponse
;
import
com.gic.enterprise.service.*
;
import
com.gic.redis.data.util.RedisUtil
;
import
org.apache.logging.log4j.core.pattern.AbstractStyleNameConverter
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -233,7 +232,7 @@ public class BillingAccountApiServiceImpl implements BillingAccountApiService {
// 事项详情
todoItemDTO
.
setItemContent
(
"您的GIC商户余额已欠费"
);
// 事项code 在运维后台字典配置 类目:待办事项类型
todoItemDTO
.
setItemType
(
Constants
.
TODO_ITEM_ACCOUNT_BALANCE
);
todoItemDTO
.
setItemType
(
Constants
.
PRODUCT
);
// 跳转地址 待办事项点击后要跳转的地址
todoItemDTO
.
setItemInfoUrl
(
Constants
.
TODO_ITEM_ACCOUNT_BALANCE_URL
);
todoItemApiService
.
saveTodoItem
(
todoItemDTO
);
...
...
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