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
05827d2a
Commit
05827d2a
authored
Aug 16, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发票管理接口
parent
a9cefffd
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
169 additions
and
1 deletions
+169
-1
InvoiceStatusEnum.java
...om/gic/enterprise/constant/billing/InvoiceStatusEnum.java
+51
-0
InvoiceListQueryQO.java
...c/main/java/com/gic/enterprise/qo/InvoiceListQueryQO.java
+65
-0
pom.xml
gic-platform-enterprise-web/pom.xml
+5
-0
BillingPayInfoController.java
...c/enterprise/web/controller/BillingPayInfoController.java
+44
-0
dubbo-gic-platform-enterprise-web.xml
.../src/main/resources/dubbo-gic-platform-enterprise-web.xml
+4
-1
No files found.
gic-platform-enterprise-api/src/main/java/com/gic/enterprise/constant/billing/InvoiceStatusEnum.java
0 → 100644
View file @
05827d2a
package
com
.
gic
.
enterprise
.
constant
.
billing
;
/**
* 已开票单据状态
* @ClassName: InvoiceStatusEnum
* @Description:
* @author guojuxing
* @date 2019/8/16 10:45 AM
*/
public
enum
InvoiceStatusEnum
{
CANCEL
(
1
,
"已取消"
),
REJECT
(
2
,
"已拒绝"
),
APPLYING
(
3
,
"申请中"
),
COMPLETE
(
4
,
"已完成"
);
private
int
code
;
private
String
message
;
private
InvoiceStatusEnum
(
int
code
,
String
message
)
{
this
.
code
=
code
;
this
.
message
=
message
;
}
public
static
String
getMessageByCode
(
Integer
code
)
{
if
(
code
==
null
)
{
return
"未知"
;
}
for
(
InvoiceStatusEnum
typeEnum
:
values
())
{
if
(
code
.
intValue
()
==
typeEnum
.
getCode
())
{
return
typeEnum
.
getMessage
();
}
}
return
"未知"
;
}
public
int
getCode
()
{
return
code
;
}
public
void
setCode
(
int
code
)
{
this
.
code
=
code
;
}
public
String
getMessage
()
{
return
message
;
}
public
void
setMessage
(
String
message
)
{
this
.
message
=
message
;
}
}
gic-platform-enterprise-api/src/main/java/com/gic/enterprise/qo/InvoiceListQueryQO.java
0 → 100644
View file @
05827d2a
package
com
.
gic
.
enterprise
.
qo
;
/**
* 已申请开票单据查询列表参数
* @ClassName: InvoiceListQueryQO
* @Description:
* @author guojuxing
* @date 2019/8/16 10:42 AM
*/
public
class
InvoiceListQueryQO
extends
PageQO
{
private
static
final
long
serialVersionUID
=
7556537704957995656L
;
private
String
startTime
;
private
String
endTime
;
/**
* 发票状态
*/
private
Integer
invoiceStatus
;
private
Integer
enterpriseId
;
/**
* 发票类型
*/
private
Integer
invoiceType
;
public
String
getStartTime
()
{
return
startTime
;
}
public
void
setStartTime
(
String
startTime
)
{
this
.
startTime
=
startTime
;
}
public
String
getEndTime
()
{
return
endTime
;
}
public
void
setEndTime
(
String
endTime
)
{
this
.
endTime
=
endTime
;
}
public
Integer
getInvoiceStatus
()
{
return
invoiceStatus
;
}
public
void
setInvoiceStatus
(
Integer
invoiceStatus
)
{
this
.
invoiceStatus
=
invoiceStatus
;
}
public
Integer
getEnterpriseId
()
{
return
enterpriseId
;
}
public
void
setEnterpriseId
(
Integer
enterpriseId
)
{
this
.
enterpriseId
=
enterpriseId
;
}
public
Integer
getInvoiceType
()
{
return
invoiceType
;
}
public
void
setInvoiceType
(
Integer
invoiceType
)
{
this
.
invoiceType
=
invoiceType
;
}
}
gic-platform-enterprise-web/pom.xml
View file @
05827d2a
...
...
@@ -85,6 +85,11 @@
<version>
${gic-platform-enterprise-api}
</version>
</dependency>
<dependency>
<groupId>
com.gic
</groupId>
<artifactId>
gic-platform-finance-api
</artifactId>
<version>
${gic-platform-finance-api}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
<version>
2.1.5.RELEASE
</version>
...
...
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/controller/BillingPayInfoController.java
View file @
05827d2a
...
...
@@ -7,10 +7,13 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RestController
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.enterprise.dto.InvoiceDTO
;
import
com.gic.enterprise.qo.BillListQueryQO
;
import
com.gic.enterprise.qo.InvoiceListQueryQO
;
import
com.gic.enterprise.service.BillingPayInfoApiService
;
import
com.gic.enterprise.utils.ResultControllerUtils
;
import
com.gic.enterprise.web.vo.BillListVO
;
import
com.gic.finance.service.InvoiceManageApiService
;
@RestController
@RequestMapping
(
"/billing-pay-info"
)
...
...
@@ -19,10 +22,51 @@ public class BillingPayInfoController {
@Autowired
private
BillingPayInfoApiService
billingPayInfoApiService
;
@Autowired
private
InvoiceManageApiService
invoiceManageApiService
;
/**
* 为开票单据列表
* @Title: listBill
* @Description:
* @author guojuxing
* @param params
* @return com.gic.commons.webapi.reponse.RestResponse
*/
@RequestMapping
(
"/list-bill"
)
public
RestResponse
listBill
(
BillListQueryQO
params
)
{
params
.
setEnterpriseId
(
1111
);
return
ResultControllerUtils
.
commonPageResult
(
billingPayInfoApiService
.
listBill
(
params
),
BillListVO
.
class
);
}
/**
* 开票
* @Title: applyInvoice
* @Description:
* @author guojuxing
* @param invoiceDTO
* @param billingAmount
* @param invoiceType
* @return com.gic.commons.webapi.reponse.RestResponse
*/
@RequestMapping
(
"/apply-invoice"
)
public
RestResponse
applyInvoice
(
InvoiceDTO
invoiceDTO
,
Double
billingAmount
,
Integer
invoiceType
)
{
//todo 调用发起开票申请
return
RestResponse
.
success
();
}
/**
* 已申请开票单据列表
* @Title: listInvoice
* @Description:
* @author guojuxing
* @param params
* @return com.gic.commons.webapi.reponse.RestResponse
*/
@RequestMapping
(
"/list-invoice"
)
public
RestResponse
listInvoice
(
InvoiceListQueryQO
params
)
{
//todo 发票列表
return
RestResponse
.
success
();
}
}
gic-platform-enterprise-web/src/main/resources/dubbo-gic-platform-enterprise-web.xml
View file @
05827d2a
...
...
@@ -35,7 +35,9 @@
<dubbo:reference
interface=
"com.gic.store.service.ProvincesApiService"
id=
"provincesApiService"
timeout=
"60000"
/>
<dubbo:reference
interface=
"com.gic.store.service.StoreStatusSettingApiService"
id=
"storeStatusSettingApiService"
timeout=
"60000"
/>
<dubbo:reference
interface=
"com.gic.log.api.service.LogApiService"
id=
"logApiService"
timeout=
"60000"
/>
<!--支付信息-->
<dubbo:reference
interface=
"com.gic.enterprise.service.BillingPayInfoApiService"
id=
"billingPayInfoApiService"
timeout=
"60000"
/>
<!--发票管理-->
<dubbo:reference
interface=
"com.gic.finance.service.InvoiceManageApiService"
id=
"invoiceManageApiService"
timeout=
"60000"
/>
</beans>
\ No newline at end of file
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