فهرست منبع

金额精度丢失问题处理

hsh 2 سال پیش
والد
کامیت
208ee953b9
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/main/java/cn/hnthyy/thmz/mapper/his/yf/YfInventoryListMapper.java

+ 1 - 1
src/main/java/cn/hnthyy/thmz/mapper/his/yf/YfInventoryListMapper.java

@@ -34,7 +34,7 @@ public interface YfInventoryListMapper {
                     "  a.manu_code," +
                     "  a.national_code," +
                     "  b.stock_amount," +
-                    "  stock_value =isnull( b.pack_retprice,a.pack_retprice) * b.stock_amount  ," +
+                    "  stock_value =cast(isnull( b.pack_retprice,a.pack_retprice) * b.stock_amount as numeric(12,3)) ," +
                     "  b.location," +
                     "  b.stock_amount_virtual," +
                     "  b.stock_amount_virtual2," +