java怎么实现异步请求网络,这里实现思路有很多种,但是我们这里有个比较方便的请求方式就是。如下代码;
List<List<String>> tempList = ArrayList<>()(i = i < .getChildCount()i++) {
TransReceiptListModel.ListBean.CgListBean cgListBean = .get(i)EditText etNum = .getChildAt(i).findViewById(R.id.)String num = etNum.getText().toString().trim()List<String> cgInfoList = ArrayList<>()cgInfoList.add(cgListBean.getInstock_selling_related_id())cgInfoList.add(num)tempList.add(cgInfoList)}
String json = Gson().toJson(tempList).confirmReceipt(.getWarehouse_apply_instock_info_id()receiptNumsnNumtotalNum == ? : == ? : .getId()jsonnotBindSuppliernotBindCg)}