wms-acq-shelf-load.xml 1.8 KB

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