| | |
| | | @Override |
| | | public R manDetlOriginOut(JSONObject json, User user) { |
| | | JSONArray combMats = json.getJSONArray("combMats"); |
| | | List<MatPrint> matPrintList=new ArrayList<>(); |
| | | List<Long> ids=new ArrayList<>(); |
| | | for (int i = 0; i < combMats.size(); i++) { |
| | | MatPrint jsonOriginDetl = combMats.getObject(i, MatPrint.class); |
| | | MatPrint matPrintNow = combMats.getObject(i, MatPrint.class); |
| | | if (!ids.contains(matPrintNow.getIndex())){ |
| | | ids.add(matPrintNow.getIndex()); |
| | | matPrintList.add(matPrintNow); |
| | | } |
| | | } |
| | | for (MatPrint jsonOriginDetl:matPrintList) { |
| | | Double parseLong = jsonOriginDetl.getAnfme(); |
| | | Long ownerId = Long.parseLong(jsonOriginDetl.getOwner()); |
| | | jsonOriginDetl.setOwnerId(ownerId); |