/**
* @Description 修复类型分组表
* @author tanghan 2013-7-20
*/
private void repairTypeAndGroup() {
TSTypegroup icontype = new TSTypegroup();
icontype.setTypegroupname("图标类型");
icontype.setTypegroupcode("icontype");
commonDao.saveOrUpdate(icontype);
TSTypegroup ordertype = new TSTypegroup();
ordertype.setTypegroupname("订单类型");
ordertype.setTypegroupcode("order");
commonDao.saveOrUpdate(ordertype);
TSTypegroup custom = new TSTypegroup();
custom.setTypegroupname("客户类型");
custom.setTypegroupcode("custom");
commonDao.saveOrUpdate(custom);
TSTypegroup servicetype = new TSTypegroup();
servicetype.setTypegroupname("服务项目类型");
servicetype.setTypegroupcode("service");
commonDao.saveOrUpdate(servicetype);
TSTypegroup searchMode = new TSTypegroup();
searchMode.setTypegroupname("查询模式");
searchMode.setTypegroupcode("searchmode");
commonDao.saveOrUpdate(searchMode);
TSTypegroup yesOrno = new TSTypegroup();
yesOrno.setTypegroupname("逻辑条件");
yesOrno.setTypegroupcode("yesorno");
commonDao.saveOrUpdate(yesOrno);
TSTypegroup fieldtype = new TSTypegroup();
fieldtype.setTypegroupname("字段类型");
fieldtype.setTypegroupcode("fieldtype");
commonDao.saveOrUpdate(fieldtype);
TSTypegroup datatable = new TSTypegroup();
datatable.setTypegroupname("数据表");
datatable.setTypegroupcode("database");
commonDao.saveOrUpdate(datatable);
TSTypegroup filetype = new TSTypegroup();
filetype.setTypegroupname("文档分类");
filetype.setTypegroupcode("fieltype");
commonDao.saveOrUpdate(filetype);
TSTypegroup sex = new TSTypegroup();
sex.setTypegroupname("性别类");
sex.setTypegroupcode("sex");
commonDao.saveOrUpdate(sex);
}