* @return
*/
@RequestMapping(params = "saveTypeGroup")
@ResponseBody
public AjaxJson saveTypeGroup(TSTypegroup typegroup, HttpServletRequest request) {
AjaxJson j = new AjaxJson();
if (StringUtil.isNotEmpty(typegroup.getId())) {
message = "类型分组: " + typegroup.getTypegroupname() + "被更新成功";
userService.saveOrUpdate(typegroup);
systemService.addLog(message, Globals.Log_Type_UPDATE, Globals.Log_Leavel_INFO);
} else {
message = "类型分组: " + typegroup.getTypegroupname() + "被添加成功";
userService.save(typegroup);
systemService.addLog(message, Globals.Log_Type_INSERT, Globals.Log_Leavel_INFO);
}
//刷新缓存
systemService.refleshTypeGroupCach();
j.setMsg(message);
return j;
}