| | |
| | | if (null!= jsonArray && jsonArray.size()>0) { |
| | | for (int i = 0; i < jsonArray.size(); i++) { |
| | | HkStaffGaugeMon hkStaffGaugeMon = new HkStaffGaugeMon(); |
| | | hkStaffGaugeMon.setId(jsonArray.getJSONObject(i).getString("id")); |
| | | String id = jsonArray.getJSONObject(i).getString("id"); |
| | | // 查询是否已存在 |
| | | HkStaffGaugeMon staffGaugeMon = getById(id); |
| | | if (null==staffGaugeMon) { |
| | | // 设置数据 |
| | | hkStaffGaugeMon.setId(id); |
| | | hkStaffGaugeMon.setWaterGaugeName(jsonArray.getJSONObject(i).getString("waterGaugeName")); |
| | | hkStaffGaugeMon.setWaterGaugeCode(jsonArray.getJSONObject(i).getString("waterGaugeCode")); |
| | | hkStaffGaugeMon.setCameraIndexCode(jsonArray.getJSONObject(i).getString("cameraIndexCode")); |
| | |
| | | } |
| | | } |
| | | } |
| | | } |