@ResponseBody
public AjaxJson saveDemo(TSDemo demo, HttpServletRequest request) throws Exception{
AjaxJson j = new AjaxJson();
if (!StringUtil.isEmpty(demo.getId())) {
message = "Demo维护例子: " + demo.getDemotitle() + "被更新成功";
TSDemo entity = this.systemService.get(TSDemo.class, demo.getId());
MyBeanUtils.copyBeanNotNull2Bean(demo, entity);
if (demo.getTSDemo() == null || StringUtil.isEmpty(demo.getTSDemo().getId())) {
entity.setTSDemo(null);
}
this.systemService.saveOrUpdate(entity);
}else {
message = "Demo例子: " + demo.getDemotitle() + "被添加成功";
if (demo.getTSDemo() == null || StringUtil.isEmpty(demo.getTSDemo().getId())) {