12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?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.companyCode AS merchSn,
- rc.created AS shelfLoadTime,
- rc.itemCode AS skuNo,
- 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,
- rc.warehouseCode as storeCode
- 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区', 'ZS')
- <if test="thisTime != null">
- and rc.lastUpdated >= #{thisTime}
- </if>
- /*and rc.lastUpdated >= '2019-01-01 00:00:00'*/
- </where>
- </select>
- <!-- 企业货物上下架信息: 下架查询 -->
- <select id="getWmsAcqShelfLoadDown" parameterType="java.util.Map" resultType="com.emato.cus.supervise.domain.WmsAcqShelfLoad">
- SELECT
- i.`companyCode` AS merchSn,
- 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,
- scd.warehouseCode as storeCode
- 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区', 'ZS')
- <if test="thisTime != null">
- and scd.lastUpdated >= #{thisTime}
- </if>
- /*and scd.lastUpdated >= '2019-01-01 00:00:00'*/
- </where>
- </select>
- </mapper>
|