sql5="select id from lie_shipping_intermediate_data where goods_name = "+"'"+str(goods_name)+"'"+" and "+"warehouse_receipt_sn = "+"'"+str(warehouse_receipt_sn)+"'"
sql5="select id from lie_shipping_intermediate_data where goods_name = "+"'"+str(goods_name)+"'"+" and "+"warehouse_receipt_sn = "+"'"+str(warehouse_receipt_sn)+"'"+" and "+"shipment_number = "+"'"+str(shipment_number)+"'"
cursor.execute(sql5)
cursor.execute(sql5)
result5=cursor.fetchall()
result5=cursor.fetchall()
iflen(result5)!=0:
iflen(result5)!=0:
delete_sql="delete from lie_shipping_intermediate_data where id = "+str(result5[0][0])+" limit 1"
sql5="select id from lie_shipping_intermediate_data where goods_name = "+"'"+str(goods_name)+"'"+" and "+"warehouse_receipt_sn = "+"'"+str(warehouse_receipt_sn)+"'"+" and "+"shipment_number = "+"'"+str(shipment_number)+"'"
cursor.execute(sql5)
result5=cursor.fetchall()
iflen(result5)!=0:
delete_sql="delete from lie_shipping_intermediate_data where id = "+str(result5[0][0])+" limit 1"