fanxw 5 anni fa
parent
commit
f5d338f57f

+ 12 - 2
src/main/java/com/chinaitop/agile/controller/FcbgzController.java

@@ -176,10 +176,12 @@ public class FcbgzController {
176 176
 		@ApiImplicitParam(name="pageSize", value = "每页条数", paramType = "query"),
177 177
 		@ApiImplicitParam(name="orgId", value = "单位ID", paramType = "query"),
178 178
 		@ApiImplicitParam(name="houseId", value="仓房ID ", paramType="query"),
179
-		@ApiImplicitParam(name="warehouseId", value="货位ID", paramType="query")
179
+		@ApiImplicitParam(name="warehouseId", value="货位ID", paramType="query"),
180
+		@ApiImplicitParam(name="lspz", value="粮油品种", paramType="query"),
181
+		@ApiImplicitParam(name="rcsj", value="入仓时间", paramType="query")
180 182
 	})
181 183
 	public PageInfo<Map<String, Object>> queryRkZsList(Integer pageNum, Integer pageSize, 
182
-			Integer orgId, Integer houseId, Integer warehouseId) {
184
+			Integer orgId, Integer houseId, Integer warehouseId, Integer lspz, String rcsj) {
183 185
 
184 186
 		Map<String, Object> param_map = new HashMap<String, Object>();
185 187
 		if (null != pageNum && null != pageSize) {
@@ -197,6 +199,14 @@ public class FcbgzController {
197 199
 		if (null != warehouseId) {
198 200
 			param_map.put("hwh", warehouseId);
199 201
 		}
202
+		/* 粮油品种 */
203
+		if (null != lspz) {
204
+			param_map.put("lspz", lspz);
205
+		}
206
+		/* 入仓时间 */
207
+		if (null != rcsj && !"".equals(rcsj)) {
208
+			param_map.put("rcsj", rcsj);
209
+		}
200 210
 		List<Map<String, Object>> list = null;
201 211
 		try {
202 212
 			list = fcbgzService.queryRkZsList(param_map);

+ 6 - 0
src/main/java/com/chinaitop/agile/mapper/DataKcglFcbgzDefaultMapper.xml

@@ -759,6 +759,12 @@
759 759
     <if test="hwh != null">
760 760
         and a.hwh = #{hwh} 
761 761
     </if>
762
+    <if test="lspz != null">
763
+        and a.pz = #{lspz} 
764
+    </if>
765
+    <if test="rcsj != null">
766
+        and DATE_FORMAT(a.cjsj,'%Y-%m-%d') = #{rcsj} 
767
+    </if>
762 768
     <if test="orgId != null">
763 769
     	and a.UnitID=#{orgId}
764 770
     </if>