|
|
@ -82,7 +82,7 @@ public class DictTypeServiceImpl extends ServiceImpl<DictTypeDao, DictType> impl |
|
|
} |
|
|
} |
|
|
dictGroupService.lambdaUpdate().eq(DictGroup::getDictType, entity.getDictType()).eq(DictGroup::getSite, entity.getSite()).remove(); |
|
|
dictGroupService.lambdaUpdate().eq(DictGroup::getDictType, entity.getDictType()).eq(DictGroup::getSite, entity.getSite()).remove(); |
|
|
dictGroupService.save(new DictGroup(entity.getSite(),entity.getDictType(),entity.getMenuId())); |
|
|
dictGroupService.save(new DictGroup(entity.getSite(),entity.getDictType(),entity.getMenuId())); |
|
|
return true; |
|
|
|
|
|
|
|
|
return super.updateById(entity); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
@ -91,10 +91,9 @@ public class DictTypeServiceImpl extends ServiceImpl<DictTypeDao, DictType> impl |
|
|
if (Objects.isNull(entity)||Objects.isNull(entity.getDictId())){ |
|
|
if (Objects.isNull(entity)||Objects.isNull(entity.getDictId())){ |
|
|
throw new RuntimeException("字典编码为空"); |
|
|
throw new RuntimeException("字典编码为空"); |
|
|
} |
|
|
} |
|
|
removeById(entity.getDictId()); |
|
|
|
|
|
dictGroupService.lambdaUpdate().eq(DictGroup::getSite,entity.getSite()).eq(DictGroup::getDictType,entity.getDictType()).remove(); |
|
|
dictGroupService.lambdaUpdate().eq(DictGroup::getSite,entity.getSite()).eq(DictGroup::getDictType,entity.getDictType()).remove(); |
|
|
dictDataService.lambdaUpdate().eq(DictData::getSite,entity.getSite()).eq(DictData::getDictType,entity.getDictType()).remove(); |
|
|
dictDataService.lambdaUpdate().eq(DictData::getSite,entity.getSite()).eq(DictData::getDictType,entity.getDictType()).remove(); |
|
|
return true; |
|
|
|
|
|
|
|
|
return removeById(entity.getDictId()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
|