gaodd 2 년 전
부모
커밋
2c3e16b119
1개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 7 1
      src/main/java/com/chinaitop/depot/storage/mapper/StorageQualitycheckMapper.xml

+ 7 - 1
src/main/java/com/chinaitop/depot/storage/mapper/StorageQualitycheckMapper.xml

@@ -1926,7 +1926,13 @@
1926 1926
       <!--区分粮情卡的数据-->
1927 1927
       and sq.flag_type is null
1928 1928
     </where>
1929
-    and sq.rn = 1 order by check_time desc
1929
+    and sq.rn = 1 
1930
+    <if test="processState !=null">
1931
+      order by check_time desc
1932
+    </if>
1933
+    <if test="processState ==null">
1934
+      order by choose_time desc
1935
+    </if>
1930 1936
   </select>
1931 1937
 
1932 1938
   <select id="getStoreQualityList"  resultType="java.util.Map" parameterType="java.lang.Integer">