1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.emato.cus.supervise.mapper.WmsAcqShelfLoadMapper">
- <!-- 企业货物上下架信息: 上架查询 -->
- <select id="getWmsAcqShelfLoadUp" parameterType="java.util.Map" resultType="com.emato.cus.supervise.domain.WmsAcqShelfLoad">
- SELECT
- rc.created AS shelfLoadTime,
- rc.itemCode AS skuNo,
- rc.itemCode AS codeTs,
- rc.itemCode AS goodsId,
- rc.quantity AS gQty,
- rc.toLocation AS seatNo,
- i.unitDesc AS gUnit,
- 'I' AS shelfLoadType,
- i.`name` AS goodsName,
- CONCAT(i.itemSize, '-', i.itemColor, '-', i.itemStyle) AS goodsModel
- FROM receipt_container rc
- LEFT JOIN item i ON rc.itemcode = i. CODE
- LEFT JOIN location l ON rc.toLocation = l.CODE
- <where>
- 1 = 1
- and l.zoneCode in ('A区', 'B区', 'C区', 'GQ区', 'F区', 'P区')
- <if test="thisTime != null">
- and rc.lastUpdated >= #{thisTime}
- </if>
- </where>
- </select>
- <!-- 企业货物上下架信息: 下架查询 -->
- <select id="getWmsAcqShelfLoadDown" parameterType="java.util.Map" resultType="com.emato.cus.supervise.domain.WmsAcqShelfLoad">
- SELECT
- i.`name` AS goodsName,
- itemCode AS codeTs,
- itemCode AS skuNo,
- itemCode AS goodsId,
- quantity AS gQty,
- i.unitDesc AS gUnit,
- CONCAT(i.itemSize, '-', i.itemColor, '-', i.itemStyle) AS goodsModel,
- originalPickLoc AS seatNo,
- scd.created AS shelfLoadTime,
- 'E' AS shelfLoadType
- FROM Shipping_container_detail scd
- LEFT JOIN item i ON scd.itemCode = i.`code`
- LEFT JOIN location l ON scd.originalPickLoc = l.CODE
- <where>
- 1 = 1
- and l.zoneCode in ('A区', 'B区', 'C区', 'GQ区', 'F区', 'P区')
- <if test="thisTime != null">
- and scd.lastUpdated >= #{thisTime}
- </if>
- </where>
- </select>
- </mapper>
|