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

3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.gaotao.modules.dashboard.dao.DashboardDao">
  4. <!-- 查询分切区助力臂数据 -->
  5. <select id="querySlittingAssistArmData" resultType="map">
  6. SELECT
  7. storage_location AS storageLocation,
  8. pallet_code AS palletCode,
  9. picking_location AS pickingLocation,
  10. material_name AS materialName,
  11. quantity,
  12. status
  13. FROM view_board_slitting_assist_arm
  14. ORDER BY picking_location ASC
  15. </select>
  16. <!-- 查询分切区入库数据 -->
  17. <select id="querySlittingInboundData" resultType="map">
  18. SELECT
  19. storage_location AS storageLocation,
  20. pallet_code AS palletCode,
  21. task_type AS taskType,
  22. status
  23. FROM view_board_slitting_inbound
  24. ORDER BY storage_location ASC
  25. </select>
  26. <!-- 查询成品包装区数据 -->
  27. <select id="queryFinishPackageData" resultType="map">
  28. SELECT
  29. storage_location AS storageLocation,
  30. pallet_code AS palletCode,
  31. picking_location AS pickingLocation,
  32. material_name AS materialName,
  33. quantity,
  34. status
  35. FROM view_board_finish_package
  36. ORDER BY picking_location ASC
  37. </select>
  38. <!-- 查询成品入库区数据 -->
  39. <select id="queryFinishInboundData" resultType="map">
  40. SELECT
  41. storage_location AS storageLocation,
  42. pallet_code AS palletCode,
  43. task_type AS taskType,
  44. status
  45. FROM view_board_finish_inbound
  46. ORDER BY storage_location ASC
  47. </select>
  48. <!-- 查询原材收货区数据 -->
  49. <select id="queryReceivingReceiveData" resultType="map">
  50. SELECT
  51. arrival_time AS arrivalTime,
  52. material_name AS materialName,
  53. quantity,
  54. location,
  55. status
  56. FROM view_board_receiving_receive
  57. ORDER BY arrival_time DESC
  58. </select>
  59. <!-- 查询原材入库区数据 -->
  60. <select id="queryReceivingInboundData" resultType="map">
  61. SELECT
  62. storage_location AS storageLocation,
  63. pallet_code AS palletCode,
  64. task_type AS taskType,
  65. status
  66. FROM view_board_receiving_inbound
  67. ORDER BY storage_location ASC
  68. </select>
  69. <!-- ==================== 智能立体仓库看板查询 ==================== -->
  70. <!-- 查询立体仓库任务统计数据 -->
  71. <select id="queryWarehouseTaskStats" resultType="map">
  72. -- 说明:从 wms_order_task 表统计任务数据
  73. -- 只统计已完成的任务(status='已完成')
  74. -- source_type 包含"入库"两个字的是入库任务,其他都是出库任务
  75. select * from view_board_master_task;
  76. </select>
  77. <!-- ==================== 库存趋势统计查询 ==================== -->
  78. <!-- 查询原材料库存量趋势(当月每日数据) -->
  79. <select id="queryRawMaterialInventoryTrend" resultType="map">
  80. -- 说明:统计原材料(料号不以80开头)的当月每日库存数量
  81. -- 原材料判断:料号不以 80 开头
  82. select * from view_board_master_raw
  83. </select>
  84. <!-- 查询规格料库存量趋势(当月每日数据) -->
  85. <select id="querySpecifiedMaterialInventoryTrend" resultType="map">
  86. -- 说明:统计规格料的当月每日库存数量
  87. -- 规格料判断:料号以 - 分割的
  88. select * from view_board_master_specified
  89. </select>
  90. <!-- 查询产成品库存量趋势(当月每日数据) -->
  91. <select id="queryFinishedGoodsInventoryTrend" resultType="map">
  92. -- 说明:统计产成品(料号以80开头)的当月每日库存数量
  93. -- 产成品判断:料号以 80 开头
  94. select * from view_board_master_finish
  95. </select>
  96. </mapper>