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

仓储管理添加查询条件

lvzhikai пре 4 година
родитељ
комит
fda1c02df8

+ 0 - 5
src/main/java/com/chinaitop/depot/storage/controller/StorageDumpController.java

@@ -90,11 +90,6 @@ public class StorageDumpController {
90
 			criteria.andXLsxzEqualTo(xlsxz);
90
 			criteria.andXLsxzEqualTo(xlsxz);
91
 		}
91
 		}
92
 
92
 
93
-		/* 变动后粮食性质 */
94
-		if (null != xlsxz) {
95
-			criteria.andXLsxzEqualTo(xlsxz);
96
-		}
97
-
98
 		if (null != startTime && !"".equals(startTime)) {
93
 		if (null != startTime && !"".equals(startTime)) {
99
 			Date starDate = ParameterUtil.string2datetime(startTime + " 00:00:00");
94
 			Date starDate = ParameterUtil.string2datetime(startTime + " 00:00:00");
100
 			criteria.andBusinessCreateTimeGreaterThanOrEqualTo(starDate);
95
 			criteria.andBusinessCreateTimeGreaterThanOrEqualTo(starDate);

+ 1 - 1
src/main/java/com/chinaitop/depot/storage/controller/StorageOverheadSetController.java

@@ -117,7 +117,7 @@ public class StorageOverheadSetController {
117
 		return modelMap;
117
 		return modelMap;
118
 	}
118
 	}
119
 	@SuppressWarnings({ "null", "unused" })
119
 	@SuppressWarnings({ "null", "unused" })
120
-	@RequestMapping(value = "/findHwxz",produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.GET)
120
+	@RequestMapping(value = "/findHwxz",produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.POST)
121
 	@ApiOperation(value="查询架空期设置数据详情", notes = "查询架空期设置数据详情")
121
 	@ApiOperation(value="查询架空期设置数据详情", notes = "查询架空期设置数据详情")
122
 	@ApiImplicitParams({
122
 	@ApiImplicitParams({
123
 			@ApiImplicitParam(name = "hwxz", value = "粮食性质", paramType = "query")
123
 			@ApiImplicitParam(name = "hwxz", value = "粮食性质", paramType = "query")

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

@@ -1909,6 +1909,9 @@
1909
       <if test="type !=null">
1909
       <if test="type !=null">
1910
         and sqk.type = #{type}
1910
         and sqk.type = #{type}
1911
       </if>
1911
       </if>
1912
+      <if test="subType !=null">
1913
+        and sqk.sub_type = #{subType}
1914
+      </if>
1912
       <if test="subTypeDetailed !=null">
1915
       <if test="subTypeDetailed !=null">
1913
         and sqk.sub_type_detailed = #{subTypeDetailed}
1916
         and sqk.sub_type_detailed = #{subTypeDetailed}
1914
       </if>
1917
       </if>
@@ -1930,6 +1933,12 @@
1930
       <if test="checkResult !=null">
1933
       <if test="checkResult !=null">
1931
         and sqk.check_result = #{checkResult}
1934
         and sqk.check_result = #{checkResult}
1932
       </if>
1935
       </if>
1936
+      <if test="searchStartDate !=null">
1937
+        and STR_TO_DATE(sqk.check_time, '%Y-%m-%d')  <![CDATA[ >= ]]> #{searchStartDate}
1938
+      </if>
1939
+      <if test="searchEndDate !=null">
1940
+        and STR_TO_DATE(sqk.check_time, '%Y-%m-%d')  &lt;= #{searchEndDate}
1941
+      </if>
1933
    </where>
1942
    </where>
1934
   <!--   group by sfo.id-->
1943
   <!--   group by sfo.id-->
1935
     order by sqk.id desc
1944
     order by sqk.id desc