Pārlūkot izejas kodu

库存识别码功能录入页面参数获取sql调整

admin 5 gadi atpakaļ
vecāks
revīzija
3c080097cd

+ 9 - 2
src/main/java/com/chinaitop/depot/storage/mapper/StorageQualitycheckMapper.xml

@@ -2037,9 +2037,16 @@
2037 2037
     sqk.keeper,
2038 2038
     bs.storeHouse_name storehouseName,
2039 2039
     bs.keeping_way keepMethod,
2040
+    CASE storehouse_type 
2041
+      WHEN 2972 THEN bs.silo_diameter
2042
+      WHEN 2973 THEN bs.silo_diameter
2043
+      ELSE bs.width
2044
+    END width,
2045
+    CASE storehouse_type 
2046
+      WHEN 2971 THEN bs.length
2047
+      ELSE NULL
2048
+    END length,
2040 2049
     bs.grain_heigth height,
2041
-    bs.length length,
2042
-    bs.width width,
2043 2050
     bs.bin_volume disperseCapacity,
2044 2051
     bs.depot_name depotName,
2045 2052
     bw.warehouse_name wareHouseName,