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
4510e61b
Commit
4510e61b
authored
Mar 30, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
d14ab025
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
+11
-3
FeeTypeEnum.java
...java/com/gic/enterprise/constant/billing/FeeTypeEnum.java
+2
-1
TabBillingRechargeRecordMapper.xml
.../main/resources/mapper/TabBillingRechargeRecordMapper.xml
+2
-2
BillingRechargeController.java
.../enterprise/web/controller/BillingRechargeController.java
+7
-0
No files found.
gic-platform-enterprise-api/src/main/java/com/gic/enterprise/constant/billing/FeeTypeEnum.java
View file @
4510e61b
...
...
@@ -2,7 +2,8 @@ package com.gic.enterprise.constant.billing;
public
enum
FeeTypeEnum
{
TOTAL
(
1
,
"消费总金额"
),
ACCOUNT_BALANCE
(
7
,
"服务市场和供销平台购买明细"
),
ACCOUNT_BALANCE
(
7
,
"服务市场购买明细"
),
// ACCOUNT_BALANCE(7, "服务市场和供销平台购买明细"),
SMS_PACKAGE
(
4
,
"短信套餐包明细(余额支付)"
),
SMS
(
3
,
"国内短信消费明细"
),
INTERNATIONAL_SMS
(
8
,
"海外短信消费明细"
),
...
...
gic-platform-enterprise-service/src/main/resources/mapper/TabBillingRechargeRecordMapper.xml
View file @
4510e61b
...
...
@@ -230,10 +230,10 @@
and enterprise_id = #{enterpriseId}
</if>
<if
test=
"startTime != null and startTime != '' "
>
and
DATE_FORMAT(deduction_time,'%Y-%m-%d')
>
= #{startTime}
and
create_time
>
= #{startTime}
</if>
<if
test=
"endTime != null and endTime != '' "
>
and
DATE_FORMAT(deduction_time,'%Y-%m-%d')
<
= #{endTime}
and
create_time
<
= #{endTime}
</if>
<if
test=
"payType != null "
>
and pay_type = #{payType}
...
...
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/controller/BillingRechargeController.java
View file @
4510e61b
...
...
@@ -19,6 +19,7 @@ import com.gic.enterprise.utils.UserDetailUtils;
import
com.gic.enterprise.web.qo.BillingRechargeQO
;
import
com.gic.finance.dto.TransferAccountsApprovalDTO
;
import
com.gic.finance.service.TransferAccountsApprovalApiService
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -79,6 +80,12 @@ public class BillingRechargeController {
@RequestMapping
(
"/list-recharge-record"
)
public
RestResponse
listRechargeRecord
(
RechargeRecordQO
rechargeRecordQO
)
{
rechargeRecordQO
.
setEnterpriseId
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
());
if
(
StringUtils
.
isNotBlank
(
rechargeRecordQO
.
getStartTime
()))
{
rechargeRecordQO
.
setStartTime
(
rechargeRecordQO
.
getStartTime
()
+
" 00:00:00"
);
}
if
(
StringUtils
.
isNotBlank
(
rechargeRecordQO
.
getEndTime
()))
{
rechargeRecordQO
.
setEndTime
(
rechargeRecordQO
.
getEndTime
()
+
" 23:59:59"
);
}
ServiceResponse
<
Page
<
BillingRechargeRecordDTO
>>
serviceResponse
=
this
.
billingRechargeRecordApiService
.
listRechargeRecord
(
rechargeRecordQO
);
return
ResultControllerUtils
.
commonResult
(
serviceResponse
);
}
...
...
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