You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
111 lines
3.9 KiB
111 lines
3.9 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
<mapper namespace="com.gaotao.modules.dashboard.dao.DashboardDao">
|
|
|
|
<!-- 查询分切区助力臂数据 -->
|
|
<select id="querySlittingAssistArmData" resultType="map">
|
|
SELECT
|
|
storage_location AS storageLocation,
|
|
pallet_code AS palletCode,
|
|
picking_location AS pickingLocation,
|
|
material_name AS materialName,
|
|
quantity,
|
|
status
|
|
FROM view_board_slitting_assist_arm
|
|
ORDER BY picking_location ASC
|
|
</select>
|
|
|
|
<!-- 查询分切区入库数据 -->
|
|
<select id="querySlittingInboundData" resultType="map">
|
|
SELECT
|
|
storage_location AS storageLocation,
|
|
pallet_code AS palletCode,
|
|
task_type AS taskType,
|
|
status
|
|
FROM view_board_slitting_inbound
|
|
ORDER BY storage_location ASC
|
|
</select>
|
|
|
|
<!-- 查询成品包装区数据 -->
|
|
<select id="queryFinishPackageData" resultType="map">
|
|
SELECT
|
|
storage_location AS storageLocation,
|
|
pallet_code AS palletCode,
|
|
picking_location AS pickingLocation,
|
|
material_name AS materialName,
|
|
quantity,
|
|
status
|
|
FROM view_board_finish_package
|
|
ORDER BY picking_location ASC
|
|
</select>
|
|
|
|
<!-- 查询成品入库区数据 -->
|
|
<select id="queryFinishInboundData" resultType="map">
|
|
SELECT
|
|
storage_location AS storageLocation,
|
|
pallet_code AS palletCode,
|
|
task_type AS taskType,
|
|
status
|
|
FROM view_board_finish_inbound
|
|
ORDER BY storage_location ASC
|
|
</select>
|
|
|
|
<!-- 查询原材收货区数据 -->
|
|
<select id="queryReceivingReceiveData" resultType="map">
|
|
SELECT
|
|
arrival_time AS arrivalTime,
|
|
material_name AS materialName,
|
|
quantity,
|
|
location,
|
|
status
|
|
FROM view_board_receiving_receive
|
|
ORDER BY arrival_time DESC
|
|
</select>
|
|
|
|
<!-- 查询原材入库区数据 -->
|
|
<select id="queryReceivingInboundData" resultType="map">
|
|
SELECT
|
|
storage_location AS storageLocation,
|
|
pallet_code AS palletCode,
|
|
task_type AS taskType,
|
|
status
|
|
FROM view_board_receiving_inbound
|
|
ORDER BY storage_location ASC
|
|
</select>
|
|
|
|
<!-- ==================== 智能立体仓库看板查询 ==================== -->
|
|
|
|
<!-- 查询立体仓库任务统计数据 -->
|
|
<select id="queryWarehouseTaskStats" resultType="map">
|
|
-- 说明:从 wms_order_task 表统计任务数据
|
|
-- 只统计已完成的任务(status='已完成')
|
|
-- source_type 包含"入库"两个字的是入库任务,其他都是出库任务
|
|
select * from view_board_master_task;
|
|
</select>
|
|
|
|
<!-- ==================== 库存趋势统计查询 ==================== -->
|
|
|
|
<!-- 查询原材料库存量趋势(当月每日数据) -->
|
|
<select id="queryRawMaterialInventoryTrend" resultType="map">
|
|
-- 说明:统计原材料(料号不以80开头)的当月每日库存数量
|
|
-- 原材料判断:料号不以 80 开头
|
|
select * from view_board_master_raw
|
|
</select>
|
|
|
|
<!-- 查询规格料库存量趋势(当月每日数据) -->
|
|
<select id="querySpecifiedMaterialInventoryTrend" resultType="map">
|
|
-- 说明:统计规格料的当月每日库存数量
|
|
-- 规格料判断:料号以 - 分割的
|
|
select * from view_board_master_specified
|
|
</select>
|
|
|
|
<!-- 查询产成品库存量趋势(当月每日数据) -->
|
|
<select id="queryFinishedGoodsInventoryTrend" resultType="map">
|
|
-- 说明:统计产成品(料号以80开头)的当月每日库存数量
|
|
-- 产成品判断:料号以 80 开头
|
|
select * from view_board_master_finish
|
|
</select>
|
|
|
|
</mapper>
|
|
|