wms-acq-shelf-load.xml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. <where>
  28. <if test="thisTime != null">
  29. rc.lastUpdated &gt;= #{thisTime}
  30. </if>
  31. </where>
  32. </select>
  33. <!-- 企业货物上下架信息: 下架查询 -->
  34. <select id="getWmsAcqShelfLoadDown" parameterType="java.util.Map"
  35. resultType="com.emato.cus.supervise.domain.WmsAcqShelfLoad">
  36. SELECT
  37. i.`name` AS goodsName,
  38. itemCode AS codeTs,
  39. itemCode AS skuNo,
  40. itemCode AS goodsId,
  41. quantity AS gQty,
  42. i.unitDesc AS gUnit,
  43. CONCAT(
  44. i.itemSize,
  45. '-',
  46. i.itemColor,
  47. '-',
  48. i.itemStyle
  49. ) AS goodsModel,
  50. originalPickLoc AS seatNo,
  51. scd.created AS shelfLoadTime,
  52. 'E' AS shelfLoadType
  53. FROM
  54. Shipping_container_detail scd
  55. LEFT JOIN item i ON scd.itemCode = i.`code`
  56. <where>
  57. <if test="thisTime != null">
  58. scd.lastUpdated &gt;= #{thisTime}
  59. </if>
  60. </where>
  61. </select>
  62. </mapper>