Commit 8090d641 by 陈文顺

数据字典完成3

parent b32a7986
......@@ -145,13 +145,20 @@ public class DictTypeServiceImpl implements IDictTypeService{
@Override
public void deleteDict(long dictTypeId) {
TDictType dictType = this.dictTypeMapper.selectByPrimaryKey(dictTypeId);
if (dictType == null){
return;
}
Example delExample = new Example(TDictData.class);
delExample.createCriteria()
.andEqualTo("dictTypeId",dictTypeId);
this.dictDataMapper.deleteByExample(delExample);
this.dictTypeMapper.deleteByPrimaryKey(dictTypeId);
dictRedisCache.delCache(dictTypeId);
dictRedisHashCache.delCache(dictType.getDictTypeCd());
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment