12345678910111213141516171819202122232425262728293031 |
- <?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.WmsAcqInventoryInfoMapper">
- <!-- 企业库存信息查询 -->
- <select id="getWmsAcqInventoryInfo" parameterType="java.util.Map"
- resultType="com.emato.cus.supervise.domain.WmsAcqInventoryInfo">
- SELECT
- li.companyCode AS merchSn,
- li.itemName AS goodsName,
- li.itemCode AS codeTs,
- i.unitDesc AS gUnit,
- SUM(li.onHandQty) AS gQty,
- CONCAT(i.itemSize,'-',i.itemColor,'-',i.itemStyle) as goodsModel
- FROM location_inventory li
- LEFT JOIN item i ON li.itemCode = i.CODE
- LEFT JOIN location l ON li.locationCode = l.CODE
- <where>
- 1 = 1
- and l.zoneCode in ('A区', 'B区', 'C区', 'GQ区', 'F区', 'P区')
- <if test="thisTime != null">
- and li.lastUpdated >= #{thisTime}
- </if>
- </where>
- GROUP BY li.itemCode
- </select>
- </mapper>
|