Преглед на файлове

修改库位显示问题

zhifei преди 1 година
родител
ревизия
fd1abf9a81

+ 2 - 0
warewms-base/src/main/java/com/ruoyi/base/mapper/BaseLocationInfoMapper.java

@@ -253,4 +253,6 @@ public interface BaseLocationInfoMapper {
     int updateAddress(BaseLocationInfo baseLocationInfo);
 
     List<BaseLocationInfo> selectSortedLocatinListByZoneIdNoTask(BaseLocationInfo baseLocationInfo);
+
+    BaseLocationInfo selectLocationByAddress(@Param("colNo") String colNo,@Param("rowNo") String rowNo,@Param("shiftNo") String shiftNo,@Param("zoneId") String zoneId);
 }

+ 11 - 0
warewms-base/src/main/resources/mapper/base/BaseLocationInfoMapper.xml

@@ -663,6 +663,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <when test=" sort == '2'.toString() ">
                 ORDER BY t1.col_no + 0,t1.location_no
             </when >
+            <when test=" sort == '3'.toString() ">
+                ORDER BY t1.col_no + 0,t1.col_index,t1.row_no + 0,t1.row_index,t1.shift_no + 0,t1.shift_index
+            </when >
             <otherwise>
                 ORDER BY ${sort}
             </otherwise>
@@ -700,4 +703,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         </where>
 
     </select>
+    <select id="selectLocationByAddress" resultType="BaseLocationInfo" resultMap="BaseLocationInfoResult">
+        <include refid="selectBaseLocationInfoVo"/>
+        where
+        zone_id = #{zoneId}
+        and shift_no = #{shiftNo}
+        and row_no	= #{rowNo}
+        and col_no = #{colNo}
+    </select>
 </mapper>