ソースを参照

克重只取数字

huxy 2 年 前
コミット
aa4bce7456

+ 3 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/splfi/entity/SyPackingListFabricItem.java

@@ -417,6 +417,9 @@ public class SyPackingListFabricItem implements Serializable {
 			width="0";
 		}
 		if(gramWeight!=null&&!gramWeight.equals("")){
+			if(gramWeight.indexOf("克")>0){
+				gramWeight=strs[10].substring(0,strs[10].length()-1);
+			}
 			gramWeight2=new BigDecimal(gramWeight);
 		}else{
 			gramWeight="0";