diff --git a/apps/mtm/services.py b/apps/mtm/services.py index 1f32e264..1072983c 100644 --- a/apps/mtm/services.py +++ b/apps/mtm/services.py @@ -58,7 +58,7 @@ def daoru_material(path: str): raise ParseError(f'{i}行物料信息错误: {str(e)}') try: filters = {'type': type, 'name': name, 'specification': specification, - 'model': model, 'unit': unit} + 'model': model, 'unit__iexact': unit} if type in [20, 30]: filters['process'] = process default = filters