fanxw 1 год назад
Родитель
Сommit
203a8bc90c

+ 4 - 3
src/main/java/com/chinaitop/depot/device/controller/StorageJsglController.java

@@ -40,16 +40,17 @@ public class StorageJsglController {
40 40
         @ApiImplicitParam(name = "jslx", value = "结算类型(0:入库,1:出库)", paramType = "query"),
41 41
         @ApiImplicitParam(name = "houseId", value = "仓房", paramType = "query"),
42 42
         @ApiImplicitParam(name = "warehouseId", value = "货位", paramType = "query"),
43
-        @ApiImplicitParam(name = "ywlx", value = "业务类型(0:散粮,1:非散粮)", paramType = "query")
43
+        @ApiImplicitParam(name = "ywlx", value = "业务类型(0:散粮,1:非散粮)", paramType = "query"),
44
+        @ApiImplicitParam(name = "htbh", value = "合同/通知单编号", paramType = "query")
44 45
     })
45 46
     public PageInfo<StorageJsgl> getPageInfoList(Integer pageNum, Integer pageSize, String jslx, 
46
-    		Integer houseId, Integer warehouseId, Integer orgId, String ywlx) {
47
+    		Integer houseId, Integer warehouseId, Integer orgId, String ywlx, String htbh) {
47 48
 
48 49
         if (pageNum != null && pageSize != null) PageHelper.startPage(pageNum, pageSize);
49 50
 
50 51
         List<StorageJsgl> list = null;
51 52
 		try {
52
-			list = storageJsglService.findByCondition(houseId, warehouseId, orgId, jslx, ywlx);
53
+			list = storageJsglService.findByCondition(houseId, warehouseId, orgId, jslx, ywlx, htbh);
53 54
 		} catch (Exception e) {
54 55
 			e.printStackTrace();
55 56
 		}

+ 2 - 1
src/main/java/com/chinaitop/depot/device/service/StorageJsglService.java

@@ -13,10 +13,11 @@ public interface StorageJsglService {
13 13
 	 * @param orgId 组织机构
14 14
 	 * @param jslx 结算类型
15 15
 	 * @param ywlx 业务类型(0:散粮,1:非散粮)
16
+	 * @param htbh 合同编号
16 17
 	 * @return
17 18
 	 * @throws Exception
18 19
 	 */
19
-	List<StorageJsgl> findByCondition(Integer houseId, Integer warehouseId, Integer orgId, String jslx, String ywlx) throws Exception;
20
+	List<StorageJsgl> findByCondition(Integer houseId, Integer warehouseId, Integer orgId, String jslx, String ywlx, String htbh) throws Exception;
20 21
 
21 22
 	/**
22 23
 	 * 按主键查询

+ 4 - 1
src/main/java/com/chinaitop/depot/device/service/impl/StorageJsglServiceImpl.java

@@ -26,7 +26,7 @@ public class StorageJsglServiceImpl implements StorageJsglService {
26 26
 	private DepotBusinessFeignService depotBusinessFeignService;
27 27
 
28 28
 	@Override
29
-	public List<StorageJsgl> findByCondition(Integer houseId, Integer warehouseId, Integer orgId, String jslx, String ywlx) throws Exception {
29
+	public List<StorageJsgl> findByCondition(Integer houseId, Integer warehouseId, Integer orgId, String jslx, String ywlx, String htbh) throws Exception {
30 30
 		StorageJsglExample example = new StorageJsglExample();
31 31
 		Criteria criteria = example.createCriteria();
32 32
 		if (null != houseId) {
@@ -44,6 +44,9 @@ public class StorageJsglServiceImpl implements StorageJsglService {
44 44
 		if (StringUtils.isNotBlank(ywlx)) {
45 45
 			criteria.andYwlxEqualTo(ywlx);
46 46
 		}
47
+		if (StringUtils.isNotBlank(htbh)) {
48
+			criteria.andHtbhEqualTo(htbh);
49
+		}
47 50
 		example.setOrderByClause("bcjssj desc");
48 51
 		List<StorageJsgl> list = storageJsglMapper.selectByExample(example);
49 52
 		return list;