소스 검색

Merge branch 'dev-1.1.4' into 'dev-1.1.4'

金额精度丢失问题处理

See merge request hurugang/thmz_system!37
huangshuhua 2 년 전
부모
커밋
ba79a738e3
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," +