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

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