红字申请表下载返回调整

beta-prop-all^2
kk 2 years ago
parent f1ab51530a
commit 63dbefbf98
  1. 43
      jianshui-invoice/src/main/java/com/jianshui/invoice/service/impl/api/AisinoConsoleInvoiceApiZhongQiServiceImpl.java

@ -270,7 +270,6 @@ public class AisinoConsoleInvoiceApiZhongQiServiceImpl implements IInvoiceApiSer
List<Map<String, Object>> listMap = new ArrayList<>(); List<Map<String, Object>> listMap = new ArrayList<>();
for (BillDetail billDetail : billDetailList) { for (BillDetail billDetail : billDetailList) {
AisinoConsoleInvoiceAddDetailDTO addDetailDTO = BeanUtil.copyProperties(billDetail, AisinoConsoleInvoiceAddDetailDTO.class); AisinoConsoleInvoiceAddDetailDTO addDetailDTO = BeanUtil.copyProperties(billDetail, AisinoConsoleInvoiceAddDetailDTO.class);
//通过含税标志,区分含税单价不含税单价 //通过含税标志,区分含税单价不含税单价
Integer hsbz = billDetail.getHsbz(); Integer hsbz = billDetail.getHsbz();
if (hsbz == null) { if (hsbz == null) {
@ -1025,7 +1024,7 @@ public class AisinoConsoleInvoiceApiZhongQiServiceImpl implements IInvoiceApiSer
return new HXResponse("9999", "系统异常!!!"); return new HXResponse("9999", "系统异常!!!");
} }
return new HXResponse("0000", "查询成功!", red, true); return new HXResponse("0000", "查询成功!", red, true,"");
} }
} }
@ -1499,16 +1498,46 @@ public class AisinoConsoleInvoiceApiZhongQiServiceImpl implements IInvoiceApiSer
*/ */
public static Integer CovertInvoiceType(String invoiceType) { public static Integer CovertInvoiceType(String invoiceType) {
/** 控制台发票种类
专用发票 = 0,
普通发票 = 2,
货物运输业增值税专用发票 = 11,
机动车销售统一发票 = 12,
卷式普通发票 = 41,
电子发票 = 51,
农产品收购普通发票 = 20,
农产品收购电子发票 = 21,
电子专票 = 52*/
/** 简税发票种类
* 默认为普通电票p
卷票 r 只支持13 行明细
p:电子增值税普通发票 2
c:增值税普通发票(纸票)普票 2
s:增值税专用发票专票机动车专票 0
j机动车销售统一发票 12
e: 收购发票(电子) 21
f:收购发票(纸质) 20
r:增值税普通发票(卷式) 2
b:增值税电子专用发票, 0
82:数电普通
81数电专票*/
/** /**
* 发票种类 invoice_type p电子增值税普通发票 c增值税普通发票 s 增值税专用发票 e 收购发票 f 收购发票 r增值税普通发票 * 发票种类 invoice_type p电子增值税普通发票 c增值税普通发票 s 增值税专用发票 e 收购发票 f 收购发票 r增值税普通发票
*/ */
if (StrUtil.isEmpty(invoiceType)) { if (StrUtil.isEmpty(invoiceType)) {
return -1; return -1;
} }
if ("p".equals(invoiceType) || "c".equals(invoiceType) || "e".equals(invoiceType) || "f".equals(invoiceType) || "r".equals(invoiceType)) { if ("p".equals(invoiceType) || "c".equals(invoiceType) || "r".equals(invoiceType)) {
return 2; return 2;
} else if ("s".equals(invoiceType)) { } else if ("s".equals(invoiceType) || "b".equals(invoiceType)) {
return 0; return 0;
} else if ("j".equals(invoiceType)) {
return 12;
} else if ("e".equals(invoiceType)) {
return 21;
} else if ("f".equals(invoiceType)) {
return 20;
} }
return -1; return -1;
@ -1528,6 +1557,12 @@ public class AisinoConsoleInvoiceApiZhongQiServiceImpl implements IInvoiceApiSer
return "p"; return "p";
} else if (invoiceType.equals("0")) { } else if (invoiceType.equals("0")) {
return "s"; return "s";
}else if (invoiceType.equals("12")) {
return "j";
}else if (invoiceType.equals("21")) {
return "e";
}else if (invoiceType.equals("20")) {
return "f";
} }
return ""; return "";
} }