예제 #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);
 }