LocationMapper.java
2.15 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
package com.huaheng.pc.general.location.mapper;
import com.huaheng.pc.config.points.domain.Points;
import com.huaheng.pc.general.container.domain.Container;
import com.huaheng.pc.general.location.domain.Location;
import com.huaheng.pc.general.location.domain.LocationPosition;
import org.apache.ibatis.annotations.Param;
import java.util.LinkedHashMap;
import java.util.List;
/**
* 库位 数据层
*
* @author huaheng
* @date 2018-08-19
*/
public interface LocationMapper {
List<Location> getEmptyContainerInLocation(@Param("containerCode") String containerCode,@Param("locationCode") String locationCode,@Param("warehouseId") Integer warehouseId);
void updateStatus(@Param("warehouseCode") String warehouseCode, @Param("code") String code, @Param("status") String status);
List<Location> getEmptyLocation(@Param("locationCode") String locationCode, @Param("warehouseId") Integer warehouseId, @Param("deleted") Integer deleted, @Param("status") String status);
void updateContainerCodeAndStatus(@Param("warehouseCode") String warehouseCode, @Param("locationCode") String locationCode, @Param("containerCode") String containerCode, @Param("status") String status);
void updateContainerCode(@Param("warehouseCode") String warehouseCode, @Param("locationCode") String locationCode, @Param("containerCode") String containerCode);
Location getAllLocation(@Param("warehouseCode") String warehouseCode, @Param("type") String type);
/**
* 此方法是查询钱柜库位为空的第一行
* @return
*/
Location selectSSPLocation();
/**根据实体查codelist */
List<String> getAllLocationCode(Location location);
Location selectAddress(Location location);
// List<Map<String, Object>> selectIntY();
LocationPosition selectLocationPosition(LocationPosition locationPosition);
// List<LocationPosition> selectList(LocationPosition locationPosition);
int updateContainer(@Param("container") Container container, @Param("locationPosition")LocationPosition locationPosition);
List<Location> selectEmptyAddress(Points points);
//库位利用率
List<LinkedHashMap<String, Object>> getLocationProp();
}