/**
 * @param $sqls 执行语句数组
 * @return bool 返回真假 是否执行成功
 */
public function transExecuteSql($sqls)
{
    $this->startTrans();
    if(is_array($sqls)) {
        foreach($sqls as $k => $sql)
        {
            $result=$this->db->execute($sql);
            if(!$result) {
                $this->rollBack();
                return false;
            }
        }
    }else{
        $result=$this->db->execute($sqls);
        if(!$result) {
            $this->rollBack();
            return false;
        }
    }
    $this->commit();
    return true;
}