wms-acq-shelf-load.xml 2.1 KB

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