| | |
| | | SimpleDateFormat sdf2 = new SimpleDateFormat("hh:mm:ss"); |
| | | String format = sdf.format(new Date()); |
| | | String format2 = sdf2.format(new Date()); |
| | | String idStr = 146920+""; |
| | | String idStr = 25238+""; |
| | | String dateStr = DateUtil.currentSeconds()+""; |
| | | String l = idStr + dateStr; |
| | | |
| | |
| | | directTicket.setIssuedate(format); |
| | | directTicket.setIssuetime(format2); |
| | | directTicket.setPayerpartytype("1"); |
| | | directTicket.setPayer("冀A0CM05"); |
| | | directTicket.setPayer("冀DM118N"); |
| | | directTicket.setAmt(3); |
| | | directTicket.setUsername("张娇"); |
| | | directTicket.setChecker("乔宁"); |
| | |
| | | } |
| | | |
| | | /** |
| | | * ReturnData(code=1, msg=获取成功, total=0, data=[{randomnumber=407348, einvoicefilename=, einvoiceid=3649845000-32211031, einvoicenumber=0005489463, eticketnum=171041683249011, state=0, einvoicecode=13011223}], singleData=null) |
| | | * bizcode:171041683249011 |
| | | * einvoicecode:13011223 |
| | | * einvoicenumber:0005489463 |
| | | * randomnumber:407348 |
| | | * einvoiceid:3649845000-32211031 |
| | | * einvoicefilename: |
| | | * ReturnData(code=1, msg=获取成功, total=0, data=[{randomnumber=859719, einvoicefilename=130113230001813560, einvoiceid=0653181000-32311031, einvoicenumber=0001813560, eticketnum=252381686303715, state=1, einvoicecode=13011323}], singleData=null) |
| | | * bizcode:252381686303715 |
| | | * einvoicecode:13011323 |
| | | * einvoicenumber:0001813560 |
| | | * randomnumber:859719 |
| | | * einvoiceid:0653181000-32311031 |
| | | * einvoicefilename:130113230001813560 |
| | | */ |
| | | } |
| | | |
| | | public static void main91(String[] args) { |
| | | public static void main(String[] args) { |
| | | Map<String,Object> map1 = new HashMap<>(); |
| | | map1.put("bizcode","1469201684477973"); |
| | | map1.put("bizcode","252381686303715"); |
| | | RestTemplate restTemplate = new RestTemplate(); |
| | | ResponseEntity<ReturnData> entity = restTemplate.postForEntity("http://10.255.200.204:7991/search/meinvoicestatus", HTTPEntityUtil.setEntity(map1), ReturnData.class); |
| | | System.out.println(entity.getBody()); |
| | |
| | | } |
| | | |
| | | |
| | | public static void main(String[] args) { |
| | | public static void main91(String[] args) { |
| | | Map<String,Object> map1 = new HashMap<>(); |
| | | map1.put("einvoicecode", "13011323"); |
| | | map1.put("einvoicenumber","0001479604"); |
| | | map1.put("bizcode", "1469201684477973"); |
| | | map1.put("randomnumber","279929"); |
| | | map1.put("einvoicenumber","0001813560"); |
| | | map1.put("bizcode", "252381686303715"); |
| | | map1.put("randomnumber","859719"); |
| | | map1.put("billfiletype",1); |
| | | SimpleDateFormat sdf3 = new SimpleDateFormat("yyyy-MM-dd_HH_mm_ss"); |
| | | RestTemplate restTemplate = new RestTemplate(); |