Package org.jeecgframework.web.demo.entity.test

Examples of org.jeecgframework.web.demo.entity.test.JeecgDemo


  @AutoMenuOperation(name="添加",code = "add")
  public AjaxJson save(JeecgDemo jeecgDemo, HttpServletRequest request) {
    AjaxJson j = new AjaxJson();
    if (StringUtil.isNotEmpty(jeecgDemo.getId())) {
      message = "JeecgDemo例子: " + jeecgDemo.getUserName() + "被更新成功";
      JeecgDemo t =jeecgDemoService.get(JeecgDemo.class, jeecgDemo.getId());
      try {
        MyBeanUtils.copyBeanNotNull2Bean(jeecgDemo, t);
        jeecgDemoService.saveOrUpdate(t);
        systemService.addLog(message, Globals.Log_Type_UPDATE, Globals.Log_Leavel_INFO);
      } catch (Exception e) {
View Full Code Here


  @ResponseBody
  public AjaxJson saveAuthor(JeecgDemo jeecgDemo, HttpServletRequest request) {
    AjaxJson j = new AjaxJson();
    if (StringUtil.isNotEmpty(jeecgDemo.getId())) {
      message = "测试-用户申请成功";
      JeecgDemo t =jeecgDemoService.get(JeecgDemo.class, jeecgDemo.getId());
      try {
        MyBeanUtils.copyBeanNotNull2Bean(jeecgDemo, t);
        t.setStatus("1");
        jeecgDemoService.saveOrUpdate(t);
        j.setMsg(message);
        systemService.addLog(message, Globals.Log_Type_UPDATE, Globals.Log_Leavel_INFO);
      } catch (Exception e) {
        e.printStackTrace();
View Full Code Here

  @RequestMapping(params = "doCheck")
  public ModelAndView doCheck(HttpServletRequest request) {
    String id = request.getParameter("id");
    request.setAttribute("id", id);
    if (StringUtil.isNotEmpty(id)) {
      JeecgDemo jeecgDemo = jeecgDemoService.getEntity(JeecgDemo.class,id);
      request.setAttribute("jeecgDemo", jeecgDemo);
    }
    return new ModelAndView("jeecg/demo/jeecgDemo/jeecgDemo-check");
  }
View Full Code Here

TOP

Related Classes of org.jeecgframework.web.demo.entity.test.JeecgDemo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.