| | |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.scheduling.annotation.Async; |
| | | import org.springframework.core.task.AsyncTaskExecutor; |
| | | import org.springframework.core.task.SimpleAsyncTaskExecutor; |
| | | import org.springframework.web.client.RestTemplate; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | |
| | | }).collect(Collectors.toList()); |
| | | tmsArBillItemMapper.insertTmsArBillItemBatch(rmb); |
| | | |
| | | //todo 向外部系统推送数据 |
| | | pushToExternalSystem(tmsArBill, tmsReceivableFees); |
| | | // 向外部系统推送数据 |
| | | AsyncTaskExecutor executor = new SimpleAsyncTaskExecutor(); |
| | | executor.execute(() -> pushToExternalSystem(tmsArBill, tmsReceivableFees)); |
| | | |
| | | return AjaxResult.success(); |
| | | } |
| | |
| | | amountStr.append(hkbAmount).append("港币"); |
| | | } |
| | | feeMap.put("receivableAmountStr", amountStr.toString()); |
| | | feeMap.put("status", "0"); |
| | | feeMap.put("status", "1"); |
| | | feeMap.put("remark", ""); |
| | | |
| | | // 构建feeDetails部分 |
| | | List<java.util.Map<String, Object>> feeDetailsList = new java.util.ArrayList<>(); |
| | | List<TmsReceivableFeeItem> items = fee.getItems(); |
| | | for (TmsReceivableFeeItem item : items) { |
| | | for (int j = 0; j < items.size(); j++) { |
| | | TmsReceivableFeeItem item = items.get(j); |
| | | java.util.Map<String, Object> feeDetailMap = new java.util.HashMap<>(); |
| | | feeDetailMap.put("serialNumber", String.format("%03d", j + 1)); |
| | | feeDetailMap.put("feeType", item.getFeeType()); |
| | | feeDetailMap.put("feeName", item.getFeeName()); |
| | | feeDetailMap.put("billingUnit", "次"); |