97 lines
4.7 KiB
XML
97 lines
4.7 KiB
XML
<?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.mhd.wms.domain.overStock.repository.mapper.OverStockMapper">
|
|
|
|
<resultMap type="com.mhd.wms.domain.overStock.repository.po.OverStockPO" id="OverStockResult">
|
|
<result property="overStockId" column="over_stock_id" />
|
|
<result property="organizationId" column="organization_id" />
|
|
<result property="organizationName" column="organization_name" />
|
|
<result property="topOrganizationId" column="top_organization_id" />
|
|
<result property="shipperId" column="shipper_id" />
|
|
<result property="shipperCode" column="shipper_code" />
|
|
<result property="shipperName" column="shipper_name" />
|
|
<result property="materialCode" column="material_code" />
|
|
<result property="materialName" column="material_name" />
|
|
<result property="type" column="type" />
|
|
<result property="status" column="status" />
|
|
<result property="inOrderNumber" column="in_order_number" />
|
|
<result property="inOrderLine" column="in_order_line" />
|
|
<result property="outOrderNumber" column="out_order_number" />
|
|
<result property="outOrderLine" column="out_order_line" />
|
|
<result property="overStockNumber" column="over_stock_number" />
|
|
<result property="createTime" column="create_time" />
|
|
<result property="createBy" column="create_by" />
|
|
<result property="createByName" column="create_by_name" />
|
|
<result property="updateTime" column="update_time" />
|
|
<result property="updateBy" column="update_by" />
|
|
<result property="updateByName" column="update_by_name" />
|
|
<result property="delFlag" column="del_flag" />
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectOverStockPo">
|
|
select over_stock_id, organization_id, organization_name, top_organization_id, shipper_id, shipper_code, shipper_name, material_code, material_name, type, status, in_order_number, in_order_line, out_order_number, out_order_line, over_stock_number, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag from over_stock
|
|
where del_flag = 1
|
|
</sql>
|
|
|
|
<sql id="selectOverStockPo1">
|
|
<if test="organizationId != null ">
|
|
and organization_id = #{organizationId}
|
|
</if>
|
|
<if test="organizationName != null and organizationName != ''">
|
|
and organization_name like concat('%', #{organizationName}, '%')
|
|
</if>
|
|
<if test="topOrganizationId != null ">
|
|
and top_organization_id = #{topOrganizationId}
|
|
</if>
|
|
<if test="shipperId != null ">
|
|
and shipper_id = #{shipperId}
|
|
</if>
|
|
<if test="shipperCode != null and shipperCode != ''">
|
|
and shipper_code = #{shipperCode}
|
|
</if>
|
|
<if test="shipperName != null and shipperName != ''">
|
|
and shipper_name like concat('%', #{shipperName}, '%')
|
|
</if>
|
|
<if test="materialCode != null and materialCode != ''">
|
|
and material_code = #{materialCode}
|
|
</if>
|
|
<if test="materialName != null and materialName != ''">
|
|
and material_name like concat('%', #{materialName}, '%')
|
|
</if>
|
|
<if test="type != null ">
|
|
and type = #{type}
|
|
</if>
|
|
<if test="status != null ">
|
|
and status = #{status}
|
|
</if>
|
|
<if test="inOrderNumber != null and inOrderNumber != ''">
|
|
and in_order_number = #{inOrderNumber}
|
|
</if>
|
|
<if test="inOrderLine != null and inOrderLine != ''">
|
|
and in_order_line = #{inOrderLine}
|
|
</if>
|
|
<if test="outOrderNumber != null and outOrderNumber != ''">
|
|
and out_order_number = #{outOrderNumber}
|
|
</if>
|
|
<if test="outOrderLine != null and outOrderLine != ''">
|
|
and out_order_line = #{outOrderLine}
|
|
</if>
|
|
<if test="overStockNumber != null ">
|
|
and over_stock_number = #{overStockNumber}
|
|
</if>
|
|
<if test="createByName != null and createByName != ''">
|
|
and create_by_name like concat('%', #{createByName}, '%')
|
|
</if>
|
|
<if test="updateByName != null and updateByName != ''">
|
|
and update_by_name like concat('%', #{updateByName}, '%')
|
|
</if>
|
|
</sql>
|
|
|
|
<select id="queryList" parameterType="com.mhd.wms.domain.overStock.repository.todo.OverStockDO" resultMap="OverStockResult">
|
|
<include refid="selectOverStockPo"/>
|
|
<include refid="selectOverStockPo1"/>
|
|
</select>
|
|
</mapper> |