|
|
@@ -111,6 +111,9 @@ public class SysDictTypeServiceImpl implements ISysDictTypeService {
|
|
|
public void deleteDictTypeByIds(Long[] dictIds) {
|
|
|
for (Long dictId : dictIds) {
|
|
|
SysDictType dictType = selectDictTypeById(dictId);
|
|
|
+ if(null == dictType){
|
|
|
+ continue;
|
|
|
+ }
|
|
|
if (dictDataMapper.countDictDataByType(dictType.getDictType()) > 0) {
|
|
|
throw new ServiceException(String.format("%1$s已分配,不能删除", dictType.getDictName()));
|
|
|
}
|