| | |
| | | boolean updateFlag = true; |
| | | boolean removeFlag = true; |
| | | if (addList.size()>0){ |
| | | //如果是中途管理员编辑新增了一个,将状态设置为和原有的状态一致 |
| | | // 批量新增 |
| | | addFlag = saveBatch(addList); |
| | | } |
| | |
| | | if (newTbAttResPowerStation.getCheckState()==4){ |
| | | fillName = "编辑"; |
| | | // 找到相关的 guid 数据 |
| | | for (TbAttResPowerStation tbAttResPowerStation : oldList) { |
| | | if (tbAttResPowerStation.getGuid().equals(newTbAttResPowerStation.getGuid())){ |
| | | newTbAttResPowerStation.setCheckState(tbAttResPowerStation.getCheckState()); |
| | | } |
| | | if (oldList.size()>0) { |
| | | newTbAttResPowerStation.setCheckState(oldList.get(0).getCheckState()); |
| | | } |
| | | } |
| | | |