集成wms服务模块
This commit is contained in:
+159
@@ -0,0 +1,159 @@
|
||||
<?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.sowingDistributionDetails.repository.mapper.SowingDistributionDetailsMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.sowingDistributionDetails.repository.po.SowingDistributionDetailsPO" id="SowingDistributionDetailsResult">
|
||||
<result property="sowingDistributionDetailsId" column="sowing_distribution_details_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="warehouseCode" column="warehouse_code" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="orderNumber" column="order_number" />
|
||||
<result property="type" column="type" />
|
||||
<result property="materialDetailId" column="material_detail_id" />
|
||||
<result property="materialCode" column="material_code" />
|
||||
<result property="materialName" column="material_name" />
|
||||
<result property="barCode" column="bar_code" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="inventoryQuantity" column="inventory_quantity" />
|
||||
<result property="allocationQuantity" column="allocation_quantity" />
|
||||
<result property="pickingQuantity" column="picking_quantity" />
|
||||
<result property="sowingWallCode" column="sowing_wall_code" />
|
||||
<result property="sowingWallNumber" column="sowing_wall_number" />
|
||||
<result property="sowingQuantity" column="sowing_quantity" />
|
||||
<result property="status" column="status" />
|
||||
<result property="sowingTime" column="sowing_time" />
|
||||
<result property="sowingBy" column="sowing_by" />
|
||||
<result property="sowingByName" column="sowing_by_name" />
|
||||
<result property="storageSectionId" column="storage_section_id" />
|
||||
<result property="storageCode" column="storage_code" />
|
||||
<result property="storageName" column="storage_name" />
|
||||
<result property="storageLocationId" column="storage_location_id" />
|
||||
<result property="storageLocationCode" column="storage_location_code" />
|
||||
<result property="storageLocationName" column="storage_location_name" />
|
||||
<result property="serialNumberManage" column="serial_number_manage" />
|
||||
<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="selectSowingDistributionDetailsPo">
|
||||
select sowing_distribution_details_id, organization_id, organization_name, top_organization_id, warehouse_id, warehouse_code, warehouse_name, order_number, type, material_detail_id, material_code, material_name, bar_code, quantity, inventory_quantity, allocation_quantity, picking_quantity, sowing_wall_code, sowing_wall_number, sowing_quantity, status, sowing_time, sowing_by, sowing_by_name, storage_section_id, storage_code, storage_name, storage_location_id, storage_location_code, storage_location_name, serial_number_manage, remark, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag from sowing_distribution_details
|
||||
</sql>
|
||||
|
||||
<sql id="selectSowingDistributionDetailsPo1">
|
||||
<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="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="orderNumber != null and orderNumber != ''">
|
||||
and order_number = #{orderNumber}
|
||||
</if>
|
||||
<if test="type != null ">
|
||||
and type = #{type}
|
||||
</if>
|
||||
<if test="materialDetailId != null ">
|
||||
and material_detail_id = #{materialDetailId}
|
||||
</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="barCode != null and barCode != ''">
|
||||
and bar_code = #{barCode}
|
||||
</if>
|
||||
<if test="quantity != null ">
|
||||
and quantity = #{quantity}
|
||||
</if>
|
||||
<if test="inventoryQuantity != null ">
|
||||
and inventory_quantity = #{inventoryQuantity}
|
||||
</if>
|
||||
<if test="allocationQuantity != null ">
|
||||
and allocation_quantity = #{allocationQuantity}
|
||||
</if>
|
||||
<if test="pickingQuantity != null ">
|
||||
and picking_quantity = #{pickingQuantity}
|
||||
</if>
|
||||
<if test="sowingWallCode != null and sowingWallCode != ''">
|
||||
and sowing_wall_code = #{sowingWallCode}
|
||||
</if>
|
||||
<if test="sowingWallNumber != null ">
|
||||
and sowing_wall_number = #{sowingWallNumber}
|
||||
</if>
|
||||
<if test="sowingQuantity != null ">
|
||||
and sowing_quantity = #{sowingQuantity}
|
||||
</if>
|
||||
<if test="status != null ">
|
||||
and status = #{status}
|
||||
</if>
|
||||
<if test="sowingTime != null ">
|
||||
and sowing_time = #{sowingTime}
|
||||
</if>
|
||||
<if test="sowingBy != null ">
|
||||
and sowing_by = #{sowingBy}
|
||||
</if>
|
||||
<if test="sowingByName != null and sowingByName != ''">
|
||||
and sowing_by_name like concat('%', #{sowingByName}, '%')
|
||||
</if>
|
||||
<if test="storageSectionId != null ">
|
||||
and storage_section_id = #{storageSectionId}
|
||||
</if>
|
||||
<if test="storageCode != null and storageCode != ''">
|
||||
and storage_code = #{storageCode}
|
||||
</if>
|
||||
<if test="storageName != null and storageName != ''">
|
||||
and storage_name like concat('%', #{storageName}, '%')
|
||||
</if>
|
||||
<if test="storageLocationId != null ">
|
||||
and storage_location_id = #{storageLocationId}
|
||||
</if>
|
||||
<if test="storageLocationCode != null and storageLocationCode != ''">
|
||||
and storage_location_code = #{storageLocationCode}
|
||||
</if>
|
||||
<if test="storageLocationName != null and storageLocationName != ''">
|
||||
and storage_location_name like concat('%', #{storageLocationName}, '%')
|
||||
</if>
|
||||
<if test="serialNumberManage != null ">
|
||||
and serial_number_manage = #{serialNumberManage}
|
||||
</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>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.sowingDistributionDetails.repository.todo.SowingDistributionDetailsDO" resultMap="SowingDistributionDetailsResult">
|
||||
<include refid="selectSowingDistributionDetailsPo"/>
|
||||
<include refid="selectSowingDistributionDetailsPo1"/>
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user