| 123456789101112131415161718192021222324252627282930313233343536373839 |
- package com.pj.api.invoice.bo;
- import cn.hutool.core.codec.Base64;
- import cn.hutool.core.lang.Snowflake;
- import cn.hutool.core.util.IdUtil;
- import cn.hutool.json.JSONArray;
- import cn.hutool.json.JSONUtil;
- import java.util.Date;
- import java.util.List;
- /**
- * Created with IntelliJ IDEA.
- *
- * @Auther: lzm
- * @Date: 2022/08/10/15:47
- * @Description:
- */
- public class testbb {
- public static void main(String[] args) {
- // String a = "伦家是一个非常长的字符串";
- // String data = "{\"abolishReason\":\"\",\"batch\":\"1558280755146530818\",\"billDate\":1660320000000,\"billNo\":\"1558280755146530818\",\"buyerAddressAndTel\":\"\",\"buyerBankAndAccount\":\"\",\"buyerName\":\"防城港市防城区万嘉益贸易有限责任公司\",\"buyerProperty\":0,\"buyerRecipientMail\":\"\",\"buyerRecipientPhone\":\"\",\"buyerTaxpayerId\":\"91450603MA5KYJ968W\",\"buyerType\":4,\"canceler\":\"\",\"checkCode\":\"17801019704928368542\",\"deduction\":0.00,\"deviceNo\":\"016000003144\",\"drawer\":\"开票人\",\"includeTaxAmount\":8950.00,\"includeTaxFlag\":1,\"inventoryMark\":\"0\",\"invoiceCode\":\"618741692853\",\"invoiceDate\":\"2022-08-13\",\"invoiceDetail\":[{\"amount\":1320.75,\"billSourceId\":\"1549968889876746241\",\"detailId\":\"1486149297211734016\",\"detailRowNo\":1,\"goodsName\":\"*物流辅助服务*干杂货人工装卸\",\"includeTaxAmount\":1400.00,\"includeTaxPrice\":\"1400.0000000000\",\"lineProperty\":0,\"price\":\"1320.7500000000\",\"privilegeContent\":\"\",\"privilegeFlag\":0,\"quantity\":\"1.0000000000\",\"revenueCode\":\"3040408000000000000\",\"revenueName\":\"*物流辅助服务*\",\"seq\":1,\"specification\":\"\",\"taxAmount\":79.25,\"taxFlag\":\"\",\"taxRate\":\"0.06\",\"units\":\"\",\"zeroTaxRateFlag\":\"\"},{\"amount\":2405.66,\"billSourceId\":\"1549968889876746241\",\"detailId\":\"1486149297211735040\",\"detailRowNo\":2,\"goodsName\":\"*物流辅助服务*干杂货消毒\",\"includeTaxAmount\":2550.00,\"includeTaxPrice\":\"850.0000000000\",\"lineProperty\":0,\"price\":\"801.8866666667\",\"privilegeContent\":\"\",\"privilegeFlag\":0,\"quantity\":\"3.0000000000\",\"revenueCode\":\"3040408000000000000\",\"revenueName\":\"*物流辅助服务*\",\"seq\":2,\"specification\":\"\",\"taxAmount\":144.34,\"taxFlag\":\"\",\"taxRate\":\"0.06\",\"units\":\"\",\"zeroTaxRateFlag\":\"\"},{\"amount\":1132.08,\"billSourceId\":\"1549968889876746241\",\"detailId\":\"1486149297211734017\",\"detailRowNo\":3,\"goodsName\":\"*物流辅助服务*货物核酸检测\",\"includeTaxAmount\":1200.00,\"includeTaxPrice\":\"400.0000000000\",\"lineProperty\":0,\"price\":\"377.3600000000\",\"privilegeContent\":\"\",\"privilegeFlag\":0,\"quantity\":\"3.0000000000\",\"revenueCode\":\"3040408000000000000\",\"revenueName\":\"*物流辅助服务*\",\"seq\":3,\"specification\":\"\",\"taxAmount\":67.92,\"taxFlag\":\"\",\"taxRate\":\"0.06\",\"units\":\"\",\"zeroTaxRateFlag\":\"\"},{\"amount\":566.04,\"billSourceId\":\"1549968889876746241\",\"detailId\":\"1486149297211735041\",\"detailRowNo\":4,\"goodsName\":\"*物流辅助服务*入场管理\",\"includeTaxAmount\":600.00,\"includeTaxPrice\":\"200.0000000000\",\"lineProperty\":0,\"price\":\"188.6800000000\",\"privilegeContent\":\"\",\"privilegeFlag\":0,\"quantity\":\"3.0000000000\",\"revenueCode\":\"3040408000000000000\",\"revenueName\":\"*物流辅助服务*\",\"seq\":4,\"specification\":\"\",\"taxAmount\":33.96,\"taxFlag\":\"\",\"taxRate\":\"0.06\",\"units\":\"\",\"zeroTaxRateFlag\":\"\"},{\"amount\":3018.87,\"billSourceId\":\"1549968889876746241\",\"detailId\":\"1486149297211734018\",\"detailRowNo\":5,\"goodsName\":\"*物流辅助服务*干杂货人工装卸\",\"includeTaxAmount\":3200.00,\"includeTaxPrice\":\"1600.0000000000\",\"lineProperty\":0,\"price\":\"1509.4350000000\",\"privilegeContent\":\"\",\"privilegeFlag\":0,\"quantity\":\"2.0000000000\",\"revenueCode\":\"3040408000000000000\",\"revenueName\":\"*物流辅助服务*\",\"seq\":5,\"specification\":\"\",\"taxAmount\":181.13,\"taxFlag\":\"\",\"taxRate\":\"0.06\",\"units\":\"\",\"zeroTaxRateFlag\":\"\"}],\"invoiceFileUrl\":\"\",\"invoiceImageUrl\":\"\",\"invoiceNum\":\"62003941\",\"invoiceProperty\":0,\"invoiceStatus\":\"0\",\"invoiceType\":\"007\",\"issueErrorMessage\":\"\",\"orderNo\":\"a111f50554d54a7f849d804dc9940c40\",\"org\":1086907445739000832,\"originalInvoiceCode\":\"\",\"originalInvoiceNumber\":\"\",\"originalInvoiceStatus\":\"\",\"originalInvoiceType\":\"\",\"payee\":\"\",\"printFlag\":\"0\",\"redInfoBillNo\":\"\",\"redReason\":\"\",\"remark\":\"\",\"reviewer\":\"\",\"sellerAddressAndTel\":\"南宁市青秀区民族大道153号0771-3910065\",\"sellerBankAndAccount\":\"中国银行股份有限公司南宁市青秀路支行627541661916\",\"sellerName\":\"金蝶软件(中国)有限公司\",\"sellerTaxpayerId\":\"915003006188392540\",\"serialNo\":\"200_20220813115321858_0001\",\"skm\":\"00>2339545003/1/58*6010/0519118*8+3/20>+0<7*-*<6+7-02+6<1939*427+2+26*64-//5/-4282>>5*94913856<1<*11><2319>270*+\",\"specialType\":\"00\",\"systemSource\":\"SW_TEST\",\"taxedType\":0,\"terminalNo\":\"\",\"totalAmount\":8443.40,\"totalTaxAmount\":506.60}+4IiwiaW5jbHVkZVRheEZsYWciOjEsInNlbGxlclRheHBheWVySWQiOiI5MTUwMDMwMDYxODgzOTI1NDAiLCJ0b3RhbEFtb3VudCI6ODU1MCwiYXV0b0ludm9pY2UiOjEsInBheVR5cGUiOiLlvq7kv6HmlK/ku5giLCJpbnZvaWNlVHlwZSI6IjAwNyIsImJ1eWVyVGF4cGF5ZXJJZCI6IjkxNDUwNjgxTUE1SzlZSDQ3OCIsImJpbGxObyI6IjE1NTc2MjI0OTE4MDc0MjQ1MTQifV0=";
- // //5Lym5a625piv5LiA5Liq6Z2e5bi46ZW/55qE5a2X56ym5Liy
- // String encode = Base64.encode(data);
- // System.out.println(encode);
- // 还原为a
- // String decodeStr = Base64.decodeStr(data);
- // System.out.println(decodeStr);
- Snowflake snowflake = IdUtil.getSnowflake(1, 1);
- }
- }
|