Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
order-group-application
order-group
Commits
32b181a8
Commit
32b181a8
authored
Sep 24, 2021
by
陈斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
02b40a6a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
order-application-service/src/main/java/cn/freemud/adapter/OrderInvoiceAdapter.java
+1
-1
order-application-service/src/main/java/cn/freemud/entities/dto/pay/OrderInvoiceRequest.java
+1
-1
order-application-service/src/main/java/cn/freemud/enums/InvoiceTypeCodeEnum.java
+6
-6
No files found.
order-application-service/src/main/java/cn/freemud/adapter/OrderInvoiceAdapter.java
View file @
32b181a8
...
...
@@ -145,7 +145,7 @@ public class OrderInvoiceAdapter {
,
List
<
String
>
orderCodes
,
String
memberId
){
OrderInvoiceRequest
request
=
new
OrderInvoiceRequest
();
request
.
setPartnerId
(
invoiceCreateRequest
.
getPartnerId
());
request
.
setInvoiceType
(
CommonsConstant
.
CONSTANTS_TWO_INTEGER
);
request
.
setInvoiceType
(
InvoiceTypeCodeEnum
.
ELECTRONIC_INVOICE
.
getFmType
()
);
request
.
setContent
(
INVOICE_CONTENT
);
request
.
setAmount
(
invoiceCreateRequest
.
getProductDetailList
().
get
(
0
).
getGoodsTotalPrice
().
multiply
(
new
BigDecimal
(
100
)).
intValue
());
request
.
setInvoiceUrl
(
invoiceData
.
getScanUrl
());
...
...
order-application-service/src/main/java/cn/freemud/entities/dto/pay/OrderInvoiceRequest.java
View file @
32b181a8
...
...
@@ -14,7 +14,7 @@ public class OrderInvoiceRequest {
@NotEmpty
(
message
=
"商户号不能为空"
)
private
String
partnerId
;
@ApiModelProperty
(
"发票类型
1:普通发票 2:增值发票
"
)
@ApiModelProperty
(
"发票类型"
)
@NotNull
(
message
=
"发票类型不能为空"
)
private
Integer
invoiceType
;
...
...
order-application-service/src/main/java/cn/freemud/enums/InvoiceTypeCodeEnum.java
View file @
32b181a8
...
...
@@ -7,11 +7,11 @@ import lombok.Getter;
@AllArgsConstructor
public
enum
InvoiceTypeCodeEnum
{
SPECIAL_INVOICE
(
"1"
,
"004"
,
"增值税专用发票"
),
COMMON_INVOICE
(
"2"
,
"007"
,
"增值税普通发票"
),
ELECTRONIC_INVOICE
(
"3"
,
"026"
,
"增值税电子发票"
),
ROLL_INVOICE
(
"4"
,
"025"
,
"增值税卷式发票"
),
SPECIAL_ELECTRONIC_INVOICE
(
"5"
,
"028"
,
"增值税专用电子发票"
),
SPECIAL_INVOICE
(
4
,
"004"
,
"增值税专用发票"
),
COMMON_INVOICE
(
7
,
"007"
,
"增值税普通发票"
),
ELECTRONIC_INVOICE
(
26
,
"026"
,
"增值税电子发票"
),
ROLL_INVOICE
(
25
,
"025"
,
"增值税卷式发票"
),
SPECIAL_ELECTRONIC_INVOICE
(
28
,
"028"
,
"增值税专用电子发票"
),
;
...
...
@@ -19,7 +19,7 @@ public enum InvoiceTypeCodeEnum {
/**
* 非码类型
*/
private
String
fmType
;
private
Integer
fmType
;
/**
* 百望类型
...
...
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