Examples of TSUser


Examples of org.jeecgframework.web.system.pojo.base.TSUser

    TSDepart eiu = commonDao.findByProperty(TSDepart.class, "departname",
        "信息部").get(0);
    TSDepart RAndD = commonDao.findByProperty(TSDepart.class, "departname",
        "研发室").get(0);

    TSUser admin = new TSUser();
    admin.setSignatureFile("images/renfang/qm/licf.gif");
    admin.setStatus((short) 1);
    admin.setRealName("管理员");
    admin.setUserName("admin");
    admin.setPassword("c44b01947c9e6e3f");
    admin.setTSDepart(eiu);
    admin.setActivitiSync((short) 1);
    commonDao.saveOrUpdate(admin);

    TSUser scott = new TSUser();
    scott.setMobilePhone("13426432910");
    scott.setOfficePhone("7496661");
    scott.setEmail("zhangdaiscott@163.com");
    scott.setStatus((short) 1);
    scott.setRealName("张代浩");
    scott.setUserName("scott");
    scott.setPassword("97c07a884bf272b5");
    scott.setTSDepart(RAndD);
    scott.setActivitiSync((short) 0);
    commonDao.saveOrUpdate(scott);

    TSUser buyer = new TSUser();
    buyer.setStatus((short) 1);
    buyer.setRealName("采购员");
    buyer.setUserName("cgy");
    buyer.setPassword("f2322ec2fb9f40d1");
    buyer.setTSDepart(eiu);
    buyer.setActivitiSync((short) 0);
    commonDao.saveOrUpdate(buyer);

    TSUser approver = new TSUser();
    approver.setStatus((short) 1);
    approver.setRealName("采购审批员");
    approver.setUserName("cgspy");
    approver.setPassword("a324509dc1a3089a");
    approver.setTSDepart(eiu);
    approver.setActivitiSync((short) 1);
    commonDao.saveOrUpdate(approver);

  }
View Full Code Here

Examples of org.jeecgframework.web.system.pojo.base.TSUser

  }

  @RequestMapping(value = "/{id}", method = RequestMethod.GET)
  @ResponseBody
  public ResponseEntity<?> get(@PathVariable("id") Long id) {
    TSUser task = userService.get(TSUser.class, id);
    if (task == null) {
      return new ResponseEntity(HttpStatus.NOT_FOUND);
    }
    return new ResponseEntity(task, HttpStatus.OK);
  }
View Full Code Here

Examples of org.jeecgframework.web.system.pojo.base.TSUser

    }
    TSIcon oldIcon = this.getEntity(TSIcon.class, functionEntity.getTSIcon().getId());
    if (!oldIcon.getIconClas().equals(newFunction.getTSIcon().getIconClas())) {
      // 刷新缓存
      HttpSession session = ContextHolderUtils.getSession();
      TSUser user = ResourceUtil.getSessionUserName();
      List<TSRoleUser> rUsers = this.findByProperty(TSRoleUser.class, "TSUser.id", user.getId());
      for (TSRoleUser ru : rUsers) {
        TSRole role = ru.getTSRole();
        session.removeAttribute(role.getId());
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.