集成wms服务模块
This commit is contained in:
@@ -0,0 +1,107 @@
|
||||
<?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.materialCommon.repository.mapper.MaterialCommonMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.materialCommon.repository.po.MaterialCommonPO" id="MaterialCommonResult">
|
||||
<result property="materialCommonId" column="material_common_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="materialBaseInfoId" column="material_base_info_id" />
|
||||
<result property="temperatureControl" column="temperature_control" />
|
||||
<result property="minTemperature" column="min_temperature" />
|
||||
<result property="maxTemperature" column="max_temperature" />
|
||||
<result property="warmLayer" column="warm_layer" />
|
||||
<result property="warmLayerName" column="warm_layer_name" />
|
||||
<result property="flashPoint" column="flash_point" />
|
||||
<result property="ignitionPoint" column="ignition_point" />
|
||||
<result property="dangerGoods" column="danger_goods" />
|
||||
<result property="dangerLevel" column="danger_level" />
|
||||
<result property="dangerLevelName" column="danger_level_name" />
|
||||
<result property="productionTime" column="production_time" />
|
||||
<result property="expirationTime" column="expiration_time" />
|
||||
<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="selectMaterialCommonPo">
|
||||
select material_common_id, organization_id, organization_name, top_organization_id, material_base_info_id, temperature_control, min_temperature, max_temperature, warm_layer, warm_layer_name, flash_point, ignition_point, danger_goods, danger_level, danger_level_name, production_time, expiration_time, remark, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag from material_common
|
||||
</sql>
|
||||
|
||||
<sql id="selectMaterialCommonPo1">
|
||||
<where>
|
||||
<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="materialBaseInfoId != null ">
|
||||
and material_base_info_id = #{materialBaseInfoId}
|
||||
</if>
|
||||
<if test="temperatureControl != null ">
|
||||
and temperature_control = #{temperatureControl}
|
||||
</if>
|
||||
<if test="minTemperature != null ">
|
||||
and min_temperature = #{minTemperature}
|
||||
</if>
|
||||
<if test="maxTemperature != null ">
|
||||
and max_temperature = #{maxTemperature}
|
||||
</if>
|
||||
<if test="warmLayer != null and warmLayer != ''">
|
||||
and warm_layer = #{warmLayer}
|
||||
</if>
|
||||
<if test="warmLayerName != null and warmLayerName != ''">
|
||||
and warm_layer_name like concat('%', #{warmLayerName}, '%')
|
||||
</if>
|
||||
<if test="flashPoint != null and flashPoint != ''">
|
||||
and flash_point = #{flashPoint}
|
||||
</if>
|
||||
<if test="ignitionPoint != null and ignitionPoint != ''">
|
||||
and ignition_point = #{ignitionPoint}
|
||||
</if>
|
||||
<if test="dangerGoods != null ">
|
||||
and danger_goods = #{dangerGoods}
|
||||
</if>
|
||||
<if test="dangerLevel != null and dangerLevel != ''">
|
||||
and danger_level = #{dangerLevel}
|
||||
</if>
|
||||
<if test="dangerLevelName != null and dangerLevelName != ''">
|
||||
and danger_level_name like concat('%', #{dangerLevelName}, '%')
|
||||
</if>
|
||||
<if test="productionTime != null ">
|
||||
and production_time = #{productionTime}
|
||||
</if>
|
||||
<if test="expirationTime != null ">
|
||||
and expiration_time = #{expirationTime}
|
||||
</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>
|
||||
<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.materialCommon.repository.todo.MaterialCommonDO" resultMap="MaterialCommonResult">
|
||||
<include refid="selectMaterialCommonPo"/>
|
||||
<include refid="selectMaterialCommonPo1"/>
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user