mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-23 23:45:08 +08:00
简化 dict type 的单元测试,将新增、修改、删除涉及的公用方法,单独测试
This commit is contained in:
@ -99,8 +99,8 @@ public class SysDictTypeServiceImpl implements SysDictTypeService {
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
public void checkDictTypeNameUnique(Long id, String type) {
|
||||
SysDictTypeDO dictType = dictTypeMapper.selectByName(type);
|
||||
public void checkDictTypeNameUnique(Long id, String name) {
|
||||
SysDictTypeDO dictType = dictTypeMapper.selectByName(name);
|
||||
if (dictType == null) {
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user