InventoryMaterialSummaryMapper.xml
1.26 KB
<?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.huaheng.pc.inventory.InventoryMaterialSummary.mapper.InventoryMaterialSummaryMapper">
<select id="selectInventoryDetailByInventory" resultType="com.huaheng.pc.inventory.InventoryMaterialSummary.domain.InventoryMaterialSummary">
select warehouseCode,materialCode,materialName,zoneCode,companyCode,qty,taskQty,locationCode,inventorySts from inventory_detail
<where>
<if test="warehouseCode != null and warehouseCode != ''">
and warehouseCode = #{warehouseCode}
</if>
<if test="materialCode != null and materialCode != ''">
and materialCode = #{materialCode}
</if>
<if test="materialName != null and materialName != ''">
and materialName = #{materialName}
</if>
<if test="zoneCode != null and zoneCode != ''">
and zoneCode = #{zoneCode}
</if>
<if test="companyCode != null and companyCode != ''">
and companyCode = #{companyCode}
</if>
and taskQty = 0
</where>
</select>
</mapper>