Commit 32b181a8 by 陈斌

update

parent 02b40a6a
...@@ -145,7 +145,7 @@ public class OrderInvoiceAdapter { ...@@ -145,7 +145,7 @@ public class OrderInvoiceAdapter {
, List<String> orderCodes, String memberId ){ , List<String> orderCodes, String memberId ){
OrderInvoiceRequest request = new OrderInvoiceRequest(); OrderInvoiceRequest request = new OrderInvoiceRequest();
request.setPartnerId(invoiceCreateRequest.getPartnerId()); request.setPartnerId(invoiceCreateRequest.getPartnerId());
request.setInvoiceType(CommonsConstant.CONSTANTS_TWO_INTEGER); request.setInvoiceType(InvoiceTypeCodeEnum.ELECTRONIC_INVOICE.getFmType());
request.setContent(INVOICE_CONTENT); request.setContent(INVOICE_CONTENT);
request.setAmount(invoiceCreateRequest.getProductDetailList().get(0).getGoodsTotalPrice().multiply(new BigDecimal(100)).intValue()); request.setAmount(invoiceCreateRequest.getProductDetailList().get(0).getGoodsTotalPrice().multiply(new BigDecimal(100)).intValue());
request.setInvoiceUrl(invoiceData.getScanUrl()); request.setInvoiceUrl(invoiceData.getScanUrl());
......
...@@ -14,7 +14,7 @@ public class OrderInvoiceRequest { ...@@ -14,7 +14,7 @@ public class OrderInvoiceRequest {
@NotEmpty(message = "商户号不能为空") @NotEmpty(message = "商户号不能为空")
private String partnerId; private String partnerId;
@ApiModelProperty("发票类型 1:普通发票 2:增值发票") @ApiModelProperty("发票类型")
@NotNull(message = "发票类型不能为空") @NotNull(message = "发票类型不能为空")
private Integer invoiceType; private Integer invoiceType;
......
...@@ -7,11 +7,11 @@ import lombok.Getter; ...@@ -7,11 +7,11 @@ import lombok.Getter;
@AllArgsConstructor @AllArgsConstructor
public enum InvoiceTypeCodeEnum { public enum InvoiceTypeCodeEnum {
SPECIAL_INVOICE("1", "004", "增值税专用发票"), SPECIAL_INVOICE(4, "004", "增值税专用发票"),
COMMON_INVOICE("2", "007", "增值税普通发票"), COMMON_INVOICE(7, "007", "增值税普通发票"),
ELECTRONIC_INVOICE("3", "026", "增值税电子发票"), ELECTRONIC_INVOICE(26, "026", "增值税电子发票"),
ROLL_INVOICE("4", "025", "增值税卷式发票"), ROLL_INVOICE(25, "025", "增值税卷式发票"),
SPECIAL_ELECTRONIC_INVOICE("5", "028", "增值税专用电子发票"), SPECIAL_ELECTRONIC_INVOICE(28, "028", "增值税专用电子发票"),
; ;
...@@ -19,7 +19,7 @@ public enum InvoiceTypeCodeEnum { ...@@ -19,7 +19,7 @@ public enum InvoiceTypeCodeEnum {
/** /**
* 非码类型 * 非码类型
*/ */
private String fmType; private Integer fmType;
/** /**
* 百望类型 * 百望类型
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment