Browse Source

化学平台

Bridge 3 years ago
parent
commit
60beeeea9a

+ 6 - 3
src/main/java/cn/fastfun/service/entity/AppDevice.java

@@ -124,17 +124,20 @@ public class AppDevice extends DateEntity {
     }
 
     public String getChemistry() { // 化学体系
-        return sn.substring(6, 1);
+        return sn.substring(5, 1);
     }
 
     public String getPlatform() { // 电池平台
-        return sn.substring(7, 1);
+        return sn.substring(6, 1);
     }
 
     public String getCapacity() {// 容量
-        return sn.substring(8, 2);
+        return sn.substring(7, 2);
     }
 
+    public String getExpand() {// 容量
+        return sn.substring(9, 1);
+    }
     // 显示名称
     @Transient
     private String typeTitle = "";// 产品类型

+ 1 - 1
src/main/java/cn/fastfun/service/impl/AppDeviceServiceImp.java

@@ -67,7 +67,7 @@ public class AppDeviceServiceImp extends JpaServiceImp<AppDevice, String> implem
     @Override
     public void addSnTitle(AppDevice device) {
         device.setTypeTitle(getProductTitle("产品类型", device.getType()));
-        device.setExpandTitle("");
+        device.setExpandTitle(getProductTitle("产品扩展代码", device.getExpand()));
         device.setPackTitle(getProductTitle("PACK制造商", device.getPack()));
         device.setSpecTitle(getProductTitle("化学体系", device.getChemistry()).concat(getProductTitle("电池平台", device.getPlatform())).concat(getProductTitle("容量", device.getCapacity())));
     }