|
|
@@ -1,5 +1,7 @@
|
|
1
|
1
|
package com.chinaitop.depot.storage.controller;
|
|
2
|
2
|
|
|
|
3
|
+import java.text.ParseException;
|
|
|
4
|
+import java.text.SimpleDateFormat;
|
|
3
|
5
|
import java.util.Date;
|
|
4
|
6
|
import java.util.HashMap;
|
|
5
|
7
|
import java.util.List;
|
|
|
@@ -48,7 +50,7 @@ public class StorageChangeStoragehouseRopController {
|
|
48
|
50
|
@ApiImplicitParam(name = "applyTimeB", value = "申请日期B", paramType = "query"),
|
|
49
|
51
|
@ApiImplicitParam(name = "orgId", value = "单位ID", paramType = "query") })
|
|
50
|
52
|
public PageInfo<StorageChangeStoragehouseDefault> getList(Integer pageNum, Integer pageSize, String changehouseNo,
|
|
51
|
|
- String applyTimeA, String applyTimeB, Integer orgId) {
|
|
|
53
|
+ String applyTimeA, String applyTimeB, String createTime,Integer orgId,Integer ch,Integer hwh) throws ParseException {
|
|
52
|
54
|
StorageChangeStoragehouseDefaultExample StorageChangeStoragehouseDefaultExample = new StorageChangeStoragehouseDefaultExample();
|
|
53
|
55
|
Criteria Criteria = StorageChangeStoragehouseDefaultExample.createCriteria();
|
|
54
|
56
|
if (pageNum != null && pageSize != null) {
|
|
|
@@ -67,6 +69,17 @@ public class StorageChangeStoragehouseRopController {
|
|
67
|
69
|
Date starDate = ParameterUtil.string2datetime(applyTimeB + " 23:59:59");
|
|
68
|
70
|
Criteria.andApplyTimeLessThanOrEqualTo(starDate);
|
|
69
|
71
|
}
|
|
|
72
|
+ if (createTime != null && !"".equals(createTime)) {
|
|
|
73
|
+ SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
74
|
+ Date createDate = simpleDateFormat.parse(createTime);
|
|
|
75
|
+ Criteria.andCreateTimeGreaterThanOrEqualTo(createDate);
|
|
|
76
|
+ }
|
|
|
77
|
+ if (ch != null && !"".equals(ch)) {
|
|
|
78
|
+ Criteria.andOutStorehouseEqualTo(ch);
|
|
|
79
|
+ }
|
|
|
80
|
+ if (hwh != null && !"".equals(hwh)) {
|
|
|
81
|
+ Criteria.andOutWarehouseEqualTo(hwh);
|
|
|
82
|
+ }
|
|
70
|
83
|
if (orgId != null && !"".equals(orgId)) {
|
|
71
|
84
|
Criteria.andOrgIdEqualTo(orgId);
|
|
72
|
85
|
}
|