| | |
| | | * @return 精细化巡检分组 |
| | | */ |
| | | @Override |
| | | @DataScope(deptAlias = "d") |
| | | public List<ArdInspectionGroup> selectArdInspectionGroupList(ArdInspectionGroup ardInspectionGroup) { |
| | | return ardInspectionGroupMapper.selectArdInspectionGroupList(ardInspectionGroup); |
| | | } |
| | |
| | | */ |
| | | @Override |
| | | public int insertArdInspectionGroup(ArdInspectionGroup ardInspectionGroup) { |
| | | ArdInspectionGroup inspectionGroup = ardInspectionGroupMapper.selectArdInspectionGroupByGroupId(ardInspectionGroup.getGroupParentId()); |
| | | ardInspectionGroup.setAncestors(inspectionGroup.getAncestors() + "," + ardInspectionGroup.getGroupParentId()); |
| | | ardInspectionGroup.setCreateTime(DateUtils.getNowDate()); |
| | | return ardInspectionGroupMapper.insertArdInspectionGroup(ardInspectionGroup); |
| | | } |
| | |
| | | */ |
| | | @Override |
| | | public int updateArdInspectionGroup(ArdInspectionGroup ardInspectionGroup) { |
| | | |
| | | ArdInspectionGroup newGroup = ardInspectionGroupMapper.selectArdInspectionGroupByGroupId(ardInspectionGroup.getGroupParentId()); |
| | | ArdInspectionGroup oldGroup = ardInspectionGroupMapper.selectArdInspectionGroupByGroupId(ardInspectionGroup.getGroupId()); |
| | | if(StringUtils.isNotNull(newGroup) && StringUtils.isNotNull(oldGroup)){ |