|
@@ -18,6 +18,8 @@ import com.th.demo.tools.JSONTools;
|
18
|
18
|
import com.th.demo.tools.Tools;
|
19
|
19
|
import org.springframework.beans.factory.annotation.Autowired;
|
20
|
20
|
import org.springframework.stereotype.Service;
|
|
21
|
+import java.util.ArrayList;
|
|
22
|
+import java.util.Arrays;
|
21
|
23
|
|
22
|
24
|
|
23
|
25
|
import java.util.Date;
|
|
@@ -40,14 +42,19 @@ public class OutRecordServiceImpl implements OutRecordService {
|
40
|
42
|
public String query(int page, int rows, String wareName, String stackName, String model, String materialName, String standard, String customerName,
|
41
|
43
|
String plateNo, Date fromDate, Date toDate, String userId, String belongId, String carNo, String tallyPeople, String ordNo, String fkComponyName,
|
42
|
44
|
String contractNo) {
|
|
45
|
+ List<String> pltNos = new ArrayList<>() ;
|
|
46
|
+ if (plateNo.indexOf(",") != -1){
|
|
47
|
+ pltNos = Arrays.asList(plateNo.split(","));
|
|
48
|
+ }
|
43
|
49
|
if(page == -1 && rows == -1){
|
44
|
50
|
List<OutRecord> list=outRecordMapper.selectExpt(wareName,stackName,model,materialName,standard, customerName,
|
45
|
|
- plateNo, fromDate, toDate, userId, belongId,carNo, tallyPeople,ordNo,fkComponyName,contractNo);
|
|
51
|
+ plateNo, fromDate, toDate, userId, belongId,carNo, tallyPeople,ordNo,fkComponyName,contractNo,pltNos);
|
46
|
52
|
result = JSONTools.toStringyyyyMMddHHmmss(list);
|
47
|
53
|
}else{
|
48
|
54
|
PageHelper.startPage(page, rows);
|
49
|
55
|
List<OutRecord> list=outRecordMapper.selectExpt(wareName,stackName,model,materialName,standard, customerName,
|
50
|
|
- plateNo, fromDate, toDate, userId, belongId,carNo,tallyPeople,ordNo,fkComponyName,contractNo);
|
|
56
|
+ plateNo, fromDate, toDate, userId, belongId,carNo,tallyPeople,ordNo,fkComponyName,contractNo,pltNos);
|
|
57
|
+
|
51
|
58
|
PageInfo<OutRecord> pageInfo = new PageInfo<>(list);
|
52
|
59
|
// result = JSONTools.toString(pageInfo);
|
53
|
60
|
result = JSONTools.toStringyyyyMMddHHmmss(pageInfo);
|