fanxw 1 년 전
부모
커밋
6899f38c72

+ 12 - 2
src/main/java/com/chinaitop/depot/storage/controller/StorageQualitycheckController.java

@@ -68,7 +68,7 @@ public class StorageQualitycheckController {
68
             @ApiImplicitParam(name = "qualitycheck", value = "实体类", paramType = "query"),
68
             @ApiImplicitParam(name = "qualitycheck", value = "实体类", paramType = "query"),
69
             @ApiImplicitParam(name = "checktype", value = "检查的类型", paramType = "query"),
69
             @ApiImplicitParam(name = "checktype", value = "检查的类型", paramType = "query"),
70
             @ApiImplicitParam(name = "checkResult", value = "检查结果", paramType = "query"),
70
             @ApiImplicitParam(name = "checkResult", value = "检查结果", paramType = "query"),
71
-            @ApiImplicitParam(name = "depotType", value = "判断是否是代储", paramType = "query"),
71
+            @ApiImplicitParam(name = "depotType", value = "判断是否是代储", paramType = "query")
72
     })
72
     })
73
     public PageInfo<StorageQualitycheck> listPage(Integer pageNum, Integer pageSize, StorageQualitycheck qualitycheck,
73
     public PageInfo<StorageQualitycheck> listPage(Integer pageNum, Integer pageSize, StorageQualitycheck qualitycheck,
74
                                                   String checktype,String checkResult,String depotType,String createTime,
74
                                                   String checktype,String checkResult,String depotType,String createTime,
@@ -121,8 +121,18 @@ public class StorageQualitycheckController {
121
         }
121
         }
122
 
122
 
123
         if(processState != null){
123
         if(processState != null){
124
-        	qualityCheck.setProcessState(processState);
124
+        	List<Integer> processList = new ArrayList<Integer>();
125
+        	if (processState == 1) {
126
+        		processList.add(processState);
127
+        		qualityCheck.setProcessStateList(processList);
128
+        	} else {
129
+        		processList.add(2);
130
+        		processList.add(3);
131
+        	}
132
+        	qualityCheck.setProcessStateList(processList);
133
+        	//qualityCheck.setProcessState(processState);
125
         }
134
         }
135
+
126
         //归档用时间查询
136
         //归档用时间查询
127
         if(ParameterUtil.isnotnull(createTime)){
137
         if(ParameterUtil.isnotnull(createTime)){
128
             SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
138
             SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

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

@@ -1919,8 +1919,14 @@
1919
       <if test="sealDate != null" >
1919
       <if test="sealDate != null" >
1920
         and sq.check_time &lt;= #{sealDate}
1920
         and sq.check_time &lt;= #{sealDate}
1921
       </if>
1921
       </if>
1922
-      <if test="processState !=null">
1922
+      <!-- <if test="processState !=null">
1923
          and sq.process_state = #{processState}
1923
          and sq.process_state = #{processState}
1924
+      </if> -->
1925
+      <if test="processStateList != null and processStateList.size() > 0">
1926
+        and sq.process_state in
1927
+        <foreach close=")" collection="processStateList" item="processStateList" open="(" separator=",">
1928
+          #{processStateList}
1929
+        </foreach>
1924
       </if>
1930
       </if>
1925
       <!--区分粮情卡的数据-->
1931
       <!--区分粮情卡的数据-->
1926
       and sq.flag_type is null
1932
       and sq.flag_type is null

+ 11 - 1
src/main/java/com/chinaitop/depot/storage/model/StorageQualitycheck.java

@@ -283,6 +283,8 @@ public class StorageQualitycheck {
283
     private String fileRoute;
283
     private String fileRoute;
284
 
284
 
285
     List<Integer> typeList = new ArrayList<Integer>();
285
     List<Integer> typeList = new ArrayList<Integer>();
286
+    
287
+    List<Integer> processStateList = new ArrayList<Integer>();
286
 
288
 
287
     public String getQyqy() {
289
     public String getQyqy() {
288
         return qyqy;
290
         return qyqy;
@@ -2022,7 +2024,15 @@ public class StorageQualitycheck {
2022
         this.typeList = typeList;
2024
         this.typeList = typeList;
2023
     }
2025
     }
2024
 
2026
 
2025
-    public String getChooserOrgan() {
2027
+    public List<Integer> getProcessStateList() {
2028
+		return processStateList;
2029
+	}
2030
+
2031
+	public void setProcessStateList(List<Integer> processStateList) {
2032
+		this.processStateList = processStateList;
2033
+	}
2034
+
2035
+	public String getChooserOrgan() {
2026
         return chooserOrgan;
2036
         return chooserOrgan;
2027
     }
2037
     }
2028
 
2038