|  |  | 
 |  |  |         //获取要插入的实体 | 
 |  |  |         SysDictType sysDictType = form.formConvertEntity(); | 
 |  |  |         //判断name是否已经存在 | 
 |  |  |         QueryWrapper<SysDictType> existNameWrapper = new QueryWrapper<>(); | 
 |  |  |         existNameWrapper.eq("name",sysDictType.getName()); | 
 |  |  |         existNameWrapper.eq("is_delete",Constants.NOT_DELETE); | 
 |  |  |         SysDictType existType = sysDictTypeMapper.selectOne(existNameWrapper); | 
 |  |  |         SysDictType existType = sysDictTypeMapper.listOne(sysDictType.getName()); | 
 |  |  |         if(!ObjectUtils.isEmpty(existType)){ | 
 |  |  |             dto.setCode(ResponseCodeEnum.DICTTYPE_EXIST.getCode()); | 
 |  |  |             dto.setMsg(ResponseCodeEnum.DICTTYPE_EXIST.getMsg()); |