def _update(self, sql, value=None, querymany=True):
    ret = True
    try:
        if querymany:
            self.update(sql, value)
        else:
            self.update(sql)
    except Exception as e:
        logger.info("error('执行sqlite: {} 时出错：{}')".format(sql, e))
        ret = False
    return ret
def _update(self, sql, value=None, querymany=True):
    ret = True
    try:
        if querymany:
            self.update(sql, value)
        else:
            self.update(sql)
    except Exception as e:
        logger.info("error('执行sqlite: {} 时出错：{}')".format(sql, e))
        ret = False
    return ret