Browse Source

按照标本来源统计库存数2.0

hyy 8 months ago
parent
commit
8ec2671428

+ 4 - 4
yudao-module-museums/yudao-module-museums-biz/src/main/java/cn/iocoder/yudao/module/museums/service/specimeninfo/SpecimenInfoServiceImpl.java

@@ -561,10 +561,10 @@ public class SpecimenInfoServiceImpl implements SpecimenInfoService {
     private String getSourceKey(Integer source) { // 使用 Integer 允许 null
         if (source == null) return "未知"; // 处理 null 的情况
         switch (source) {
-            case 0: return "采购";
-            case 1: return "捐赠";
-            case 2: return "采集";
-            default: return "其他";
+            case 0: return "purchase";
+            case 1: return "donate";
+            case 2: return "gather";
+            default: return "other";
         }
     }