def modifyOneCommodity(self):
     com_num = input("请输入要修改的商品编号:").strip()
     com = Basic.queryOneCommodity(com_num)
     if com == []:
         print("该商品不存在.")
         return
     com_name = input("请输入修改后的商品名称:").strip()
     com_type = input("请输入修改后的商品类型:").strip()
     com_size = input("请输入修改后的规格:").strip()
     com_price = float(input("请输入修改后的单价:").strip())
     com_mdate = input("请输入修改后的生产日期(格式 年-月-日):").strip()
     com_edate = input("请输入修改后的过期日期(格式 年-月-日):").strip()
     com_quantity = int(input("请输入修改后的库存数量:").strip())
     try:
         Basic.modifyOneCommodity(com_num, com_name, com_type, com_size, com_price, com_mdate, com_edate, com_quantity)
         print("修改商品成功")
     except Exception as e:
         print("修改商品失败,原因:", e)