TSTypegroup yesorno = commonDao.findByProperty(TSTypegroup.class,
"typegroupname", "逻辑条件").get(0);
TSTypegroup fieldtype = commonDao.findByProperty(TSTypegroup.class,
"typegroupname", "字段类型").get(0);
TSType menu = new TSType();
menu.setTypename("菜单图标");
menu.setTypecode("2");
menu.setTSTypegroup(icontype);
commonDao.saveOrUpdate(menu);
TSType systemicon = new TSType();
systemicon.setTypename("系统图标");
systemicon.setTypecode("1");
systemicon.setTSTypegroup(icontype);
commonDao.saveOrUpdate(systemicon);
TSType file = new TSType();
file.setTypename("附件");
file.setTypecode("files");
file.setTSTypegroup(filetype);
commonDao.saveOrUpdate(file);
TSType goodorder = new TSType();
goodorder.setTypename("优质订单");
goodorder.setTypecode("1");
goodorder.setTSTypegroup(ordertype);
commonDao.saveOrUpdate(goodorder);
TSType general = new TSType();
general.setTypename("普通订单");
general.setTypecode("2");
general.setTSTypegroup(ordertype);
commonDao.saveOrUpdate(general);
TSType sign = new TSType();
sign.setTypename("签约客户");
sign.setTypecode("1");
sign.setTSTypegroup(custom);
commonDao.saveOrUpdate(sign);
TSType commoncustom = new TSType();
commoncustom.setTypename("普通客户");
commoncustom.setTypecode("2");
commoncustom.setTSTypegroup(custom);
commonDao.saveOrUpdate(commoncustom);
TSType vipservice = new TSType();
vipservice.setTypename("特殊服务");
vipservice.setTypecode("1");
vipservice.setTSTypegroup(servicetype);
commonDao.saveOrUpdate(vipservice);
TSType commonservice = new TSType();
commonservice.setTypename("普通服务");
commonservice.setTypecode("2");
commonservice.setTSTypegroup(servicetype);
commonDao.saveOrUpdate(commonservice);
// TSType leave = new TSType();
// leave.setTypename("请假流程");
// leave.setTypecode("leave");
// commonDao.saveOrUpdate(leave);
TSType single = new TSType();
single.setTypename("单条件查询");
single.setTypecode("single");
single.setTSTypegroup(searchmode);
commonDao.saveOrUpdate(single);
TSType group = new TSType();
group.setTypename("范围查询");
group.setTypecode("group");
group.setTSTypegroup(searchmode);
commonDao.saveOrUpdate(group);
TSType yes = new TSType();
yes.setTypename("是");
yes.setTypecode("Y");
yes.setTSTypegroup(yesorno);
commonDao.saveOrUpdate(yes);
TSType no = new TSType();
no.setTypename("否");
no.setTypecode("N");
no.setTSTypegroup(yesorno);
commonDao.saveOrUpdate(no);
TSType type_integer = new TSType();
type_integer.setTypename("Integer");
type_integer.setTypecode("Integer");
type_integer.setTSTypegroup(fieldtype);
commonDao.saveOrUpdate(type_integer);
TSType type_date = new TSType();
type_date.setTypename("Date");
type_date.setTypecode("Date");
type_date.setTSTypegroup(fieldtype);
commonDao.saveOrUpdate(type_date);
TSType type_string = new TSType();
type_string.setTypename("String");
type_string.setTypecode("String");
type_string.setTSTypegroup(fieldtype);
commonDao.saveOrUpdate(type_string);
TSType type_long = new TSType();
type_long.setTypename("Long");
type_long.setTypecode("Long");
type_long.setTSTypegroup(fieldtype);
commonDao.saveOrUpdate(type_long);
TSType workflow = new TSType();
workflow.setTypename("工作流引擎表");
workflow.setTypecode("act");
workflow.setTSTypegroup(datatable);
commonDao.saveOrUpdate(workflow);
TSType systable = new TSType();
systable.setTypename("系统基础表");
systable.setTypecode("t_s");
systable.setTSTypegroup(datatable);
commonDao.saveOrUpdate(systable);
TSType business = new TSType();
business.setTypename("业务表");
business.setTypecode("t_b");
business.setTSTypegroup(datatable);
commonDao.saveOrUpdate(business);
TSType customwork = new TSType();
customwork.setTypename("自定义引擎表");
customwork.setTypecode("t_p");
customwork.setTSTypegroup(datatable);
commonDao.saveOrUpdate(customwork);
TSType news = new TSType();
news.setTypename("新闻");
news.setTypecode("news");
news.setTSTypegroup(filetype);
commonDao.saveOrUpdate(news);
TSType man = new TSType();
man.setTypename("男性");
man.setTypecode("0");
man.setTSTypegroup(sex);
commonDao.saveOrUpdate(man);
TSType woman = new TSType();
woman.setTypename("女性");
woman.setTypecode("1");
woman.setTSTypegroup(sex);
commonDao.saveOrUpdate(woman);
}