コード例 #1
0
 /**
  * 登录
  *
  * @param operator
  * @return
  * @throws Exception
  */
 @Override
 public Operator login(Operator operator) throws Exception {
   return operatorDao.login(operator);
 }
コード例 #2
0
 /**
  * 统计操作员记录数
  *
  * @param operator
  * @return
  * @throws Exception
  */
 @Override
 public int countOperators(Operator operator) throws Exception {
   return operatorDao.countOperators(operator);
 }
コード例 #3
0
 /**
  * 查询操作员
  *
  * @param operator
  * @return
  * @throws Exception
  */
 public List<Operator> findOperators(Operator operator) throws Exception {
   return operatorDao.findOperators(operator);
 }
コード例 #4
0
 /**
  * 删除操作员
  *
  * @param id
  * @throws Exception
  */
 @Transactional(readOnly = false)
 public void deleteOperator(long id) throws Exception {
   Operator operator = new Operator();
   operator.setId(id);
   operatorDao.deleteOperator(operator);
 }
コード例 #5
0
 /**
  * 更新操作员
  *
  * @param operator
  * @throws Exception
  */
 @Transactional(readOnly = false)
 public void updateOperator(Operator operator) throws Exception {
   operatorDao.updateOperator(operator);
 }
コード例 #6
0
 /**
  * 根据主键查找操作员
  *
  * @param id
  * @return
  * @throws Exception
  */
 public Operator getOperatorById(long id) throws Exception {
   Operator operator = new Operator();
   operator.setId(id);
   return operatorDao.getOperatorById(operator);
 }