wms-acq-shelf-load.xml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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.emato.cus.supervise.mapper.WmsAcqShelfLoadMapper">
  4. <!-- 企业货物上下架信息: 上架查询 -->
  5. <select id="getWmsAcqShelfLoadUp" parameterType="java.util.Map"
  6. resultType="com.emato.cus.supervise.domain.WmsAcqShelfLoad">
  7. SELECT
  8. rc.created AS shelfLoadTime,
  9. rc.itemCode AS skuNo,
  10. rc.itemCode AS codeTs,
  11. rc.itemCode AS goodsId,
  12. rc.quantity AS gQty,
  13. rc.toLocation AS seatNo,
  14. i.unitDesc AS gUnit,
  15. 'I' AS shelfLoadType,
  16. i.`name` AS goodsName,
  17. CONCAT(
  18. i.itemSize,
  19. '-',
  20. i.itemColor,
  21. '-',
  22. i.itemStyle
  23. ) AS goodsModel
  24. FROM
  25. receipt_container rc
  26. LEFT JOIN item i ON rc.itemcode = i. CODE
  27. LEFT JOIN location l ON rc.toLocation = l.CODE
  28. <where>
  29. 1 = 1
  30. and l.zoneCode in ('A区', 'B区', 'C区', 'D区')
  31. <if test="thisTime != null">
  32. and rc.lastUpdated &gt;= #{thisTime}
  33. </if>
  34. </where>
  35. </select>
  36. <!-- 企业货物上下架信息: 下架查询 -->
  37. <select id="getWmsAcqShelfLoadDown" parameterType="java.util.Map"
  38. resultType="com.emato.cus.supervise.domain.WmsAcqShelfLoad">
  39. SELECT
  40. i.`name` AS goodsName,
  41. itemCode AS codeTs,
  42. itemCode AS skuNo,
  43. itemCode AS goodsId,
  44. quantity AS gQty,
  45. i.unitDesc AS gUnit,
  46. CONCAT(
  47. i.itemSize,
  48. '-',
  49. i.itemColor,
  50. '-',
  51. i.itemStyle
  52. ) AS goodsModel,
  53. originalPickLoc AS seatNo,
  54. scd.created AS shelfLoadTime,
  55. 'E' AS shelfLoadType
  56. FROM
  57. Shipping_container_detail scd
  58. LEFT JOIN item i ON scd.itemCode = i.`code`
  59. LEFT JOIN location l ON scd.originalPickLoc = l.CODE
  60. <where>
  61. 1 = 1
  62. and l.zoneCode in ('A区', 'B区', 'C区', 'D区')
  63. <if test="thisTime != null">
  64. and scd.lastUpdated &gt;= #{thisTime}
  65. </if>
  66. </where>
  67. </select>
  68. </mapper>