Commit 01a06fec1fd8fe51679487b6e6e4fdabd2031888

Authored by pengcheng
1 parent b3d4da81

合并分支

src/main/java/com/huaheng/pc/config/location/mapper/LocationMapper.java
... ... @@ -16,4 +16,6 @@ public interface LocationMapper extends BaseMapper<Location> {
16 16  
17 17 int addList(@Param("locations") List<Location> locations);
18 18  
  19 + Location getAllLocation(@Param("warehouseCode") String warehouseCode, @Param("type") String type);
  20 +
19 21 }
20 22 \ No newline at end of file
... ...
src/main/resources/mybatis/config/LocationMapper.xml
... ... @@ -83,4 +83,8 @@
83 83 </foreach>
84 84 </insert>
85 85  
  86 + <select id="getAllLocation" resultType="com.huaheng.pc.config.location.domain.Location">
  87 + select max(iRow) as iRow,max(iColumn) as iColumn,max(iLayer) as iLayer,max(iGrid) as iGrid from location l where l.warehouseCode=#{warehouseCode} AND l.locationType=#{type}
  88 + </select>
  89 +
86 90 </mapper>
87 91 \ No newline at end of file
... ...