| | |
| | | for (Object o : jsonArray){ |
| | | JSONObject jsonObject = (JSONObject)o; |
| | | String batch = jsonObject.get("batch").toString(); |
| | | Integer packageNo = Integer.parseInt(json.get("packageNo").toString()); |
| | | Integer packageNo = Integer.parseInt(jsonObject.get("packageNo").toString()); |
| | | if(Cools.isEmpty(locNo) || Cools.isEmpty(batch) || Cools.isEmpty(packageNo)){ |
| | | return R.error("有参数为空,无法入库"); |
| | | } |
| | |
| | | |
| | | String s = "2024010502"; |
| | | System.out.println(s.substring(8,10)); |
| | | |
| | | Object s1 = "8"; |
| | | System.out.println(Integer.parseInt(s1.toString())); |
| | | } |
| | | |
| | | } |