Files
nanguangszwlback/mhd_wms/src/main/resources/mapper/differentManage/DifferentManageMapper.xml
T
2026-03-11 17:14:00 +08:00

121 lines
6.3 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.differentManage.repository.mapper.DifferentManageMapper">
<resultMap type="com.mhd.wms.domain.differentManage.repository.po.DifferentManagePO" id="DifferentManageResult">
<result property="differentManageId" column="different_manage_id" />
<result property="organizationId" column="organization_id" />
<result property="organizationName" column="organization_name" />
<result property="topOrganizationId" column="top_organization_id" />
<result property="differentNumber" column="different_number" />
<result property="investigationNumber" column="investigation_number" />
<result property="investigationStatus" column="investigation_status" />
<result property="investigationRange" column="investigation_range" />
<result property="investigationType" column="investigation_type" />
<result property="investigationMethod" column="investigation_method" />
<result property="investigationFrequency" column="investigation_frequency" />
<result property="investigationManBy" column="investigation_man_by" />
<result property="investigationManName" column="investigation_man_name" />
<result property="operatorsBy" column="operators_by" />
<result property="operatorsName" column="operators_name" />
<result property="warehouseId" column="warehouse_id" />
<result property="warehouseCode" column="warehouse_code" />
<result property="warehouseName" column="warehouse_name" />
<result property="nullify" column="nullify" />
<result property="remark" column="remark" />
<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" />
<result property="postedFlag" column="posted_flag" />
<result property="reCountedFlag" column="re_counted_flag" />
</resultMap>
<sql id="selectDifferentManagePo">
select different_manage_id, organization_id, organization_name, top_organization_id, different_number, investigation_number, investigation_status, investigation_range, investigation_type, investigation_method, investigation_frequency, investigation_man_by, investigation_man_name, operators_by, operators_name, warehouse_id, warehouse_code, warehouse_name, nullify, remark, create_time, create_by, create_by_name, update_time, update_by, update_by_name,posted_flag,re_counted_flag, del_flag,inventory_discrepancy_status from different_manage
</sql>
<sql id="selectDifferentManagePo1">
<where>
and del_flag = 1
<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="differentNumber != null and differentNumber != ''">
and different_number = #{differentNumber}
</if>
<if test="investigationNumber != null and investigationNumber != ''">
and investigation_number = #{investigationNumber}
</if>
<if test="investigationStatus != null ">
and investigation_status = #{investigationStatus}
</if>
<if test="investigationRange != null and investigationRange != ''">
and investigation_range = #{investigationRange}
</if>
<if test="investigationType != null ">
and investigation_type = #{investigationType}
</if>
<if test="investigationMethod != null ">
and investigation_method = #{investigationMethod}
</if>
<if test="investigationFrequency != null ">
and investigation_frequency = #{investigationFrequency}
</if>
<if test="investigationManBy != null ">
and investigation_man_by = #{investigationManBy}
</if>
<if test="investigationManName != null and investigationManName != ''">
and investigation_man_name like concat('%', #{investigationManName}, '%')
</if>
<if test="operatorsBy != null ">
and operators_by = #{operatorsBy}
</if>
<if test="operatorsName != null and operatorsName != ''">
and operators_name like concat('%', #{operatorsName}, '%')
</if>
<if test="warehouseId != null ">
and warehouse_id = #{warehouseId}
</if>
<if test="warehouseCode != null and warehouseCode != ''">
and warehouse_code = #{warehouseCode}
</if>
<if test="warehouseName != null and warehouseName != ''">
and warehouse_name like concat('%', #{warehouseName}, '%')
</if>
<if test="nullify != null ">
and nullify = #{nullify}
</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>
<if test="postedFlag != null ">
and posted_flag = #{postedFlag}
</if>
<if test="reCountedFlag != null ">
and re_counted_flag = #{reCountedFlag}
</if>
</where>
</sql>
<select id="queryList" parameterType="com.mhd.wms.domain.differentManage.repository.todo.DifferentManageDO" resultMap="DifferentManageResult">
<include refid="selectDifferentManagePo"/>
<include refid="selectDifferentManagePo1"/>
order by create_time desc
</select>
</mapper>