Exemplo n.º 1
0
 public boolean delete(int data) {
   System.out.println("影响数据:" + training_typeMapper.deleteByPrimaryKey(data));
   return false;
 }
Exemplo n.º 2
0
  public ArrayList<Training_type> getallslectform() {

    return training_typeMapper.getallslectform();
  }
Exemplo n.º 3
0
 /**
  * 添加一个培训类型对象
  *
  * @param training_type要添加的培训类型对象
  * @return 返回被插入培训类型对象的主键ID
  */
 public int add(Training_type training_type) {
   training_typeMapper.insert(training_type);
   return training_type.getTrainingTypeId();
 }