/**
  * 字典类型名称是否存在。
  *
  * @param String 字典类型名称
  * @return boolean
  */
 public boolean checkDicTypeDicTypeName(String dicTypeName) {
   boolean isExist = true;
   List list = dicTypeDao.checkDicTypeName(dicTypeName);
   if (list.size() > 0) {
     isExist = false;
   }
   return isExist;
 }
 /**
  * 字典类型查询。
  *
  * <p>通过参数集合查询字典类型列表
  *
  * @param param 字典类型参数集合
  * @return list List<BaseDicType>
  */
 public PageBean<BaseDicType> queryDicType(
     PageBean<BaseDicType> pageBean, Map<String, Object> param) {
   if (param.get("dicTypeName") != null) {
     param.put("dicTypeName1", param.get("dicTypeName").toString().replace("%", "/%"));
   }
   List resultList = dicTypeDao.queryByPage(pageBean, param);
   pageBean.setResultList(resultList);
   return pageBean;
 }
 public void modifyDicTypeInfo(BaseDicType baseDicType) {
   baseDicType.setModifyTime(new Timestamp(new java.util.Date().getTime()));
   dicTypeDao.updateByPrimaryKey(baseDicType);
 }
 /**
  * 字典类型添加。
  *
  * @param baseDicType BaseDicType
  */
 public void insertDicTypeInfo(BaseDicType baseDicType) {
   baseDicType.setId(UUIDGeneratorUtil.getUUID());
   baseDicType.setCreateTime(new Timestamp(new java.util.Date().getTime()));
   baseDicType.setModifyTime(new Timestamp(new java.util.Date().getTime()));
   dicTypeDao.insert(baseDicType);
 }
 /**
  * 删除字典类型名称。
  *
  * @param dicTypeId String
  */
 public void deleteDicTypeById(String dicTypeId) {
   dicTypeDao.deleteByPrimaryKey(dicTypeId);
 }
 /**
  * 根据字典类型ID查询字典类型。
  *
  * <p>
  *
  * @param dicTypeId
  * @return dicType BaseDicType
  */
 public BaseDicType toModifyPage(String dicTypeId) {
   BaseDicType dicType = (BaseDicType) dicTypeDao.selectByPrimaryKey(dicTypeId);
   return dicType;
 }