Пример #1
0
 public int insertDicValueInfo(BaseDicValue baseDicValue) {
   // TODO Auto-generated method stub
   baseDicValue.setId(UUIDGeneratorUtil.getUUID());
   baseDicValue.setCreateTime(new Timestamp(new java.util.Date().getTime()));
   baseDicValue.setModifyTime(new Timestamp(new java.util.Date().getTime()));
   baseDicValue.setChSpell(StringUtil.strTospell(baseDicValue.getDicValueName()));
   String display_order =
       queryDisplayOrder(baseDicValue.getParentId(), baseDicValue.getDicTypeId());
   BigDecimal B = new BigDecimal(display_order);
   baseDicValue.setDisplayOrder(B);
   if (baseDicValue.getParentId() == "" || baseDicValue.getParentId() == null) {
     baseDicValue.setParentId(0 + "");
   }
   int result = dicValueDao.insert(baseDicValue);
   return result;
 }
Пример #2
0
 /**
  * 字典类型添加。
  *
  * @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);
 }