LocationService.java
2.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
package com.huaheng.pc.config.location.service;
import com.huaheng.framework.web.domain.AjaxResult;
import com.huaheng.pc.config.location.domain.Location;
import com.baomidou.mybatisplus.extension.service.IService;
import com.huaheng.pc.config.location.domain.LocationInfo;
import java.util.LinkedHashMap;
import java.util.List;
public interface LocationService extends IService<Location>{
/**
* 新增库位
* @param location
* @return
*/
AjaxResult addsave(Location location);
/**
* 批量新增库位
* @param location
* @return boolean
*/
boolean insertLocation(Location location);
/**
* 批量新增库位
* @param
* @return boolean
*/
boolean addBatchSave(String prefix, Integer firstRow, Integer lastRow, Integer firstColumn, Integer lastColumn, Integer firstLayer,
Integer lastLayer, Integer firstGrid, Integer lastGrid, String roadWay, String status, String zoneCode, String locationType, String high);
/**
* 更新库位状态
* @param locationCode
* @param status
*/
void updateStatus(String locationCode, String status);
void updateStatus(String locationCode, String status, String warehouseCode);
/**
* 通过定位规则查找库位
* @param locatingRule
* @return
*/
String position(String locatingRule);
/**
* 修改容器和库位状态
*
*/
void updateContainerCodeAndStatus(String locationCode, String containerCode, String status);
LocationInfo getAllLocation(String type);
/**
* 验证库位合法性
* @param code
* @return
*/
boolean checkLocation(String code);
boolean getFreeLocation(String materialCode, String batch);
/**
* 查询库位利用率
* @return
*/
List<LinkedHashMap<String, Object>> getLocationProp();
/**
* 根据库位编码查询库位信息
* @param code 库位编码
* @return
*/
Location getLocationByCode(String code);
Location getLocationByCode(String code, String warehouseCode);
/**
* 查询空闲可用的库位用来补充入库
* @return location
*/
List<Location> pickLocation();
List<Location> selectContainerEmpty(String warehouseCode);
Location getInsideNear(Location location);
Location getOutSideNear(Location location);
Location getNear(Location location);
Location getEmptyInsideLocation(Location location);
Location getEmptyOutSideLocation(Location location);
Location getEmptyLocation(Location location);
int getFirstRowOfZone(String warehouseCode, String zoneCode);
int getLastRowOfZone(String warehouseCode, String zoneCode);
public List<Location> remoteList(String type);
}