集成wms服务模块
This commit is contained in:
@@ -0,0 +1,155 @@
|
||||
<?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.investigationManage.repository.mapper.InvestigationManageMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.investigationManage.repository.po.InvestigationManagePO" id="InvestigationManageResult">
|
||||
<result property="investigationManageId" column="investigation_manage_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="investigationNumber" column="investigation_number" />
|
||||
<result property="oldInvestigationNumber" column="old_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="differentNumber" column="different_number" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="warehouseCode" column="warehouse_code" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="auditStatus" column="audit_status" />
|
||||
<result property="auditRemark" column="audit_remark" />
|
||||
<result property="auditBy" column="audit_by" />
|
||||
<result property="auditByName" column="audit_by_name" />
|
||||
<result property="auditTime" column="audit_time" />
|
||||
<result property="taskDistribution" column="task_distribution" />
|
||||
<result property="taskDistributionTime" column="task_distribution_time" />
|
||||
<result property="operatorsBy" column="operators_by" />
|
||||
<result property="operatorsName" column="operators_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" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectInvestigationManagePo">
|
||||
select investigation_manage_id, organization_id, organization_name, top_organization_id, investigation_number, old_investigation_number,investigation_status, investigation_range, investigation_type, investigation_method, investigation_frequency, different_number, warehouse_id, warehouse_code, warehouse_name, audit_status, audit_remark, audit_by, audit_by_name, audit_time, task_distribution, task_distribution_time, operators_by, operators_name, nullify, remark, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag from investigation_manage
|
||||
</sql>
|
||||
|
||||
<sql id="selectInvestigationManagePo1">
|
||||
<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="investigationNumber != null and investigationNumber != ''">
|
||||
and investigation_number like concat('%',#{investigationNumber},'%')
|
||||
</if><if test="oldInvestigationNumber != null and oldInvestigationNumber != ''">
|
||||
and old_investigation_number = concat('%',#{oldInvestigationNumber},'%')
|
||||
</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="differentNumber != null and differentNumber != ''">
|
||||
and different_number = #{differentNumber}
|
||||
</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="auditStatus != null ">
|
||||
and audit_status = #{auditStatus}
|
||||
</if>
|
||||
<if test="auditRemark != null and auditRemark != ''">
|
||||
and audit_remark = #{auditRemark}
|
||||
</if>
|
||||
<if test="auditBy != null ">
|
||||
and audit_by = #{auditBy}
|
||||
</if>
|
||||
<if test="auditByName != null and auditByName != ''">
|
||||
and audit_by_name like concat('%', #{auditByName}, '%')
|
||||
</if>
|
||||
<if test="auditTime != null ">
|
||||
and audit_time = #{auditTime}
|
||||
</if>
|
||||
<if test="taskDistribution != null ">
|
||||
and task_distribution = #{taskDistribution}
|
||||
</if>
|
||||
<if test="taskDistributionTime != null ">
|
||||
and task_distribution_time = #{taskDistributionTime}
|
||||
</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="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="createStartTime != null">
|
||||
and date_format(create_time,'%Y-%m-%d %H:%i:%s') <![CDATA[>=]]> #{createStartTime}
|
||||
</if>
|
||||
<if test="createEndTime != null">
|
||||
and date_format(create_time,'%Y-%m-%d %H:%i:%s') <![CDATA[<=]]> #{createEndTime}
|
||||
</if>
|
||||
<if test="remark != null and remark != ''">
|
||||
and remark like concat('%',#{remark},'%')
|
||||
</if>
|
||||
<if test="investigationManageIds != null and investigationManageIds.size > 0 ">
|
||||
and investigation_manage_id in
|
||||
<foreach collection="investigationManageIds" item="item" index="index" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<choose>
|
||||
<when test="delFlag != null"> and del_flag = #{delFlag} </when>
|
||||
<otherwise> and del_flag = 1 </otherwise>
|
||||
</choose>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.investigationManage.repository.todo.InvestigationManageDO" resultMap="InvestigationManageResult">
|
||||
<include refid="selectInvestigationManagePo"/>
|
||||
<include refid="selectInvestigationManagePo1"/>
|
||||
order by create_time desc
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user