|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | Long groupId = Long.parseLong(po.get("groupId").toString()); | 
|---|
|  |  |  | Long operator = Long.parseLong(po.get("operator").toString()); | 
|---|
|  |  |  | List<Long> newUnitIds = (List<Long>) po.get("unitIds"); | 
|---|
|  |  |  | List<String> newUnitIds = (List<String>) po.get("unitIds"); | 
|---|
|  |  |  | List<Long> oldUnitIds = irrigateGroupSv.getGroupBindUnits(groupId); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | IrGroupUnit irGroupUnit = new IrGroupUnit(); | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | for (int i = 0; i < newUnitIds.size(); i++) { | 
|---|
|  |  |  | Long newUnitId = newUnitIds.get(i); | 
|---|
|  |  |  | Long newUnitId = Long.parseLong(newUnitIds.get(i)); | 
|---|
|  |  |  | if (!oldUnitIds.toString().contains(newUnitId.toString())) { | 
|---|
|  |  |  | irGroupUnit.setUnitId(newUnitId); | 
|---|
|  |  |  | Integer rec = Optional.ofNullable(irrigateGroupSv.addGroupUnit(irGroupUnit)).orElse(0); | 
|---|