|
|
@@ -145,7 +145,12 @@ async def forwardRequest(request: HlmForwardRequest):
|
|
|
def __createExcelGoodsArray(excel_path):
|
|
|
'''创建通过excel形式得货号组数据'''
|
|
|
try:
|
|
|
- excel_df = pd.read_excel(excel_path, sheet_name=0, header=0)
|
|
|
+ excel_df = pd.read_excel(excel_path, sheet_name=0, header=0, dtype={
|
|
|
+ "款号": str,
|
|
|
+ "商品货号": str,
|
|
|
+ "颜色名称": str,
|
|
|
+ "其他列名": str
|
|
|
+})
|
|
|
if "商品货号" not in excel_df.columns:
|
|
|
raise UnicornException("缺失 [商品货号] 列")
|
|
|
if "款号" not in excel_df.columns:
|