自动化立体仓库 - WMS系统
zjj
2023-05-26 6cc705d10d7d0366eb7aa4797acdf137e4b7576f
src/main/resources/mapper/LocCheckMapper.xml
@@ -15,6 +15,9 @@
        <result column="update_by" property="updateBy" />
        <result column="update_time" property="updateTime" />
        <result column="memo" property="memo" />
        <result column="examine" property="examine" />
        <result column="owner" property="owner" />
        <result column="payment" property="payment" />
    </resultMap>
    <!-- 通用查询映射结果 -->
@@ -81,4 +84,35 @@
          and matnr = #{matnr}
        ORDER BY NEWID()
    </select>
    <select id="getLocCountLocDetl" resultMap="BaseResultMap2">
        SELECT TOP ${count}
            *
        FROM
            man_loc_detl
        WHERE
            1 = 1
          and loc_no = #{loc_no}
        ORDER BY NEWID()
    </select>
    <select id="getLocCount" resultType="java.lang.String">
        SELECT loc_no FROM man_loc_check
        GROUP BY loc_no
    </select>
    <select id="getOwnerCount" resultType="com.zy.asrs.entity.LocOwner">
        select * from bas_loc_owner
    </select>
    <select id="getOwnerCountLocDetl" resultMap="BaseResultMap2">
        SELECT TOP ${count}
            *
        FROM
            man_loc_detl
        WHERE
            1 = 1
          and owner = #{owner}
        ORDER BY NEWID()
    </select>
</mapper>