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
67708f8d
Commit
67708f8d
authored
Aug 15, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
开票申请
parent
871c5105
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
162 additions
and
0 deletions
+162
-0
InvoiceDTO.java
...-api/src/main/java/com/gic/enterprise/dto/InvoiceDTO.java
+130
-0
BillingPayInfoApiService.java
.../com/gic/enterprise/service/BillingPayInfoApiService.java
+11
-0
BillingPayInfoApiServiceImpl.java
...nterprise/service/outer/BillingPayInfoApiServiceImpl.java
+20
-0
TabBillingPayInfoMapper.xml
...ice/src/main/resources/mapper/TabBillingPayInfoMapper.xml
+1
-0
No files found.
gic-platform-enterprise-api/src/main/java/com/gic/enterprise/dto/InvoiceDTO.java
0 → 100644
View file @
67708f8d
package
com
.
gic
.
enterprise
.
dto
;
import
java.io.Serializable
;
/**
* 开票申请开户信息
* @ClassName: InvoiceDTO
* @Description:
* @author guojuxing
* @date 2019/8/15 4:24 PM
*/
public
class
InvoiceDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
4717853287158102316L
;
/**
* 开户单位名称
*/
private
String
accountName
;
/**
* 纳税识别号
*/
private
String
taxNumber
;
/**
* 地址
*/
private
String
address
;
/**
* 开户行
*/
private
String
bank
;
/**
* 开户电话
*/
private
String
accountPhone
;
/**
* 开户账号
*/
private
String
bankAccount
;
/**
* 收货人
*/
private
String
shippingName
;
/**
* 收货电话
*/
private
String
shippingPhone
;
/**
* 收货地址
*/
private
String
shippingAddress
;
public
String
getAccountName
()
{
return
accountName
;
}
public
void
setAccountName
(
String
accountName
)
{
this
.
accountName
=
accountName
;
}
public
String
getTaxNumber
()
{
return
taxNumber
;
}
public
void
setTaxNumber
(
String
taxNumber
)
{
this
.
taxNumber
=
taxNumber
;
}
public
String
getAddress
()
{
return
address
;
}
public
void
setAddress
(
String
address
)
{
this
.
address
=
address
;
}
public
String
getBank
()
{
return
bank
;
}
public
void
setBank
(
String
bank
)
{
this
.
bank
=
bank
;
}
public
String
getAccountPhone
()
{
return
accountPhone
;
}
public
void
setAccountPhone
(
String
accountPhone
)
{
this
.
accountPhone
=
accountPhone
;
}
public
String
getBankAccount
()
{
return
bankAccount
;
}
public
void
setBankAccount
(
String
bankAccount
)
{
this
.
bankAccount
=
bankAccount
;
}
public
String
getShippingName
()
{
return
shippingName
;
}
public
void
setShippingName
(
String
shippingName
)
{
this
.
shippingName
=
shippingName
;
}
public
String
getShippingPhone
()
{
return
shippingPhone
;
}
public
void
setShippingPhone
(
String
shippingPhone
)
{
this
.
shippingPhone
=
shippingPhone
;
}
public
String
getShippingAddress
()
{
return
shippingAddress
;
}
public
void
setShippingAddress
(
String
shippingAddress
)
{
this
.
shippingAddress
=
shippingAddress
;
}
}
gic-platform-enterprise-api/src/main/java/com/gic/enterprise/service/BillingPayInfoApiService.java
View file @
67708f8d
...
...
@@ -3,6 +3,7 @@ package com.gic.enterprise.service;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.enterprise.dto.BillingPayInfoDTO
;
import
com.gic.enterprise.dto.InvoiceDTO
;
import
com.gic.enterprise.qo.BillListQueryQO
;
/**
* 支付信息
...
...
@@ -22,4 +23,14 @@ public interface BillingPayInfoApiService {
* @return com.gic.api.base.commons.ServiceResponse<com.gic.api.base.commons.Page<com.gic.enterprise.dto.BillingPayInfoDTO>>
*/
ServiceResponse
<
Page
<
BillingPayInfoDTO
>>
listBill
(
BillListQueryQO
params
);
/**
* 从redis获取开票申请中的开户相关信息
* @Title: getInvoiceInfoFromRedis
* @Description:
* @author guojuxing
* @param enterpriseId
* @return com.gic.api.base.commons.ServiceResponse<com.gic.enterprise.dto.InvoiceDTO>
*/
ServiceResponse
<
InvoiceDTO
>
getInvoiceInfoFromRedis
(
Integer
enterpriseId
);
}
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/BillingPayInfoApiServiceImpl.java
View file @
67708f8d
package
com
.
gic
.
enterprise
.
service
.
outer
;
import
com.gic.enterprise.entity.TabEnterprise
;
import
com.gic.enterprise.error.ErrorCode
;
import
com.gic.enterprise.service.EnterpriseService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -7,18 +10,35 @@ import com.gic.api.base.commons.Page;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.commons.util.PageHelperUtils
;
import
com.gic.enterprise.dto.BillingPayInfoDTO
;
import
com.gic.enterprise.dto.InvoiceDTO
;
import
com.gic.enterprise.qo.BillListQueryQO
;
import
com.gic.enterprise.service.BillingPayInfoApiService
;
import
com.gic.enterprise.service.BillingPayInfoService
;
import
com.gic.redis.data.util.RedisUtil
;
@Service
(
"billingPayInfoApiService"
)
public
class
BillingPayInfoApiServiceImpl
implements
BillingPayInfoApiService
{
@Autowired
private
BillingPayInfoService
billingPayInfoService
;
@Autowired
private
EnterpriseService
enterpriseService
;
@Override
public
ServiceResponse
<
Page
<
BillingPayInfoDTO
>>
listBill
(
BillListQueryQO
params
)
{
com
.
github
.
pagehelper
.
Page
page
=
billingPayInfoService
.
listBilling
(
params
);
Page
<
BillingPayInfoDTO
>
resultPage
=
PageHelperUtils
.
changePageHelperToCurrentPage
(
page
,
BillingPayInfoDTO
.
class
);
return
ServiceResponse
.
success
(
resultPage
);
}
@Override
public
ServiceResponse
<
InvoiceDTO
>
getInvoiceInfoFromRedis
(
Integer
enterpriseId
)
{
TabEnterprise
enterprise
=
enterpriseService
.
getEnterpriseById
(
enterpriseId
);
if
(
enterprise
==
null
)
{
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"商户ID有误"
);
}
InvoiceDTO
value
=
(
InvoiceDTO
)
RedisUtil
.
getCache
(
"enterprise:billing:invoice:"
+
enterpriseId
);
if
(
value
==
null
){
return
ServiceResponse
.
success
(
new
InvoiceDTO
());
}
return
ServiceResponse
.
success
(
value
);
}
}
gic-platform-enterprise-service/src/main/resources/mapper/TabBillingPayInfoMapper.xml
View file @
67708f8d
...
...
@@ -240,6 +240,7 @@
from tab_billing_pay_info
where enterprise_id = #{enterpriseId}
and time_end is not null
and invoice_status = 0
<if
test=
"buyType != null"
>
and buy_type = #{buyType}
</if>
...
...
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