Преглед изворни кода

储备粮油专卡打印功能

lvzhikai пре 5 година
родитељ
комит
f51620cf17

+ 8 - 11
src/main/java/com/chinaitop/depot/storage/mapper/StorageQualitycheckMapper.xml

@@ -1860,17 +1860,14 @@
1860 1860
   <select id="getQualitycheckListByFoodbasicinfoCheck" resultMap="BaseResultMap">
1861 1861
     SELECT
1862 1862
     <include refid="Base_Column_List" />
1863
-    FROM storage_qualitycheck
1864
-    WHERE type = '2'
1865
-    <if test="houseId !=null">
1866
-      and house_id = #{houseId}
1867
-    </if>
1868
-    <if test="tankId !=null">
1869
-      and tank_id = #{tankId}
1870
-    </if>
1871
-    <if test="warehouseId !=null">
1872
-      and warehouse_id = #{warehouseId}
1873
-    </if>
1863
+    FROM storage_qualitycheck sqk
1864
+    WHERE sqk.id in (
1865
+    SELECT qualitycheck_id
1866
+    FROM storage_foodbasicinfochecks fcs
1867
+    WHERE fcs.foodbasicinfo_id =#{id}
1868
+    and fcs.house_id =#{houseId}
1869
+    and fcs.warehouse_id = #{warehouseId}
1870
+    )
1874 1871
   </select>
1875 1872
 
1876 1873
   <sql id="ExtBase_Column_List">

+ 18 - 17
src/main/java/com/chinaitop/depot/storage/service/impl/StorageQualitycheckServiceImpl.java

@@ -87,24 +87,25 @@ public class StorageQualitycheckServiceImpl implements StorageQualitycheckServic
87 87
 
88 88
 	@Override
89 89
 	public List<StorageQualitycheck> getQualitycheckListByFoodbasicinfoCheck(StorageQualitycheck qualitycheck,Integer foodbasicinfoId) {
90
-	    //获取春秋普查
91 90
         List<StorageQualitycheck> list = qualitycheckMapper.getQualitycheckListByFoodbasicinfoCheck(qualitycheck);
92
-        if(list.size()>0){
93
-            int i = 0;
94
-            for(;i<list.size();i++){
95
-                List<StorageQualitycheckSon> QualitycheckdList =  qualitycheckSonService.selectByQualitycheckId(list.get(i).getId());
96
-                for(StorageQualitycheckSon qc : QualitycheckdList){
97
-                    if(qc.getNumbering()== 2789 ){
98
-                        list.get(i).setEatScore(qc.getSetValue());
99
-                        continue;
100
-                    }
101
-                    if(qc.getNumbering() == 2790 ){
102
-                        list.get(i).setGlutenWaterCount(qc.getSetValue());
103
-                        continue;
104
-                    }
105
-                }
106
-            }
107
-        }
91
+//	    //获取春秋普查
92
+//        List<StorageQualitycheck> list = qualitycheckMapper.getQualitycheckListByFoodbasicinfoCheck(qualitycheck);
93
+//        if(list.size()>0){
94
+//            int i = 0;
95
+//            for(;i<list.size();i++){
96
+//                List<StorageQualitycheckSon> QualitycheckdList =  qualitycheckSonService.selectByQualitycheckId(list.get(i).getId());
97
+//                for(StorageQualitycheckSon qc : QualitycheckdList){
98
+//                    if(qc.getNumbering()== 2789 ){
99
+//                        list.get(i).setEatScore(qc.getSetValue());
100
+//                        continue;
101
+//                    }
102
+//                    if(qc.getNumbering() == 2790 ){
103
+//                        list.get(i).setGlutenWaterCount(qc.getSetValue());
104
+//                        continue;
105
+//                    }
106
+//                }
107
+//            }
108
+//        }
108 109
 		return list;
109 110
 	}
110 111