def insert_or_update_goods_attr(self, dic):
        condition_list = list()
        for key, value in dic.items():
            condition_list.append(key + " = " + str(value))
        sql = 'select id from dw_crawl_goods_attr where ' + ' and '.join(condition_list)
        data = self.db.get_data(sql)
        if len(data) > 0:
            return
        self.insert_temple("dw_crawl_goods_attr", dic)
dataset/ETHPy150Open wcong/ants/antsext/CrawlDao.py/CrawlDao.insert_or_update_goods_attr/original