//向该表同时添加3条数据
public function addThree($param)
{
$this->mod->startTrans();
//生成更新条件和数据
$res1=$this->addOne($add_data7);
$res2=$this->addOne($add_data14);
$res3=$this->addOne($add_data28);
if($res1&&$res2&&$res3){
$this->mod->commit();
return true;
}else{
$this->mod->rollback();
return false;
}
}
public function addThree($param)
{
$this->mod->startTrans();
//生成更新条件和数据
$res1=$this->addOne($add_data7);
$res2=$this->addOne($add_data14);
$res3=$this->addOne($add_data28);
if($res1&&$res2&&$res3){
$this->mod->commit();
return true;
}else{
$this->mod->rollback();
return false;
}
}