集成wms服务模块
This commit is contained in:
@@ -0,0 +1,284 @@
|
||||
<?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.stockInOrder.repository.mapper.StockInOrderMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.stockInOrder.repository.po.StockInOrderPO" id="StockInOrderResult">
|
||||
<result property="inOrderId" column="in_order_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="noticeNumber" column="notice_number" />
|
||||
<result property="inOrderNumber" column="in_order_number" />
|
||||
<result property="status" column="status" />
|
||||
<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="warehouseId" column="warehouse_id" />
|
||||
<result property="warehouseCode" column="warehouse_code" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="shipperId" column="shipper_id" />
|
||||
<result property="shipperName" column="shipper_name" />
|
||||
<result property="orderTypeCode" column="order_type_code" />
|
||||
<result property="orderTypeName" column="order_type_name" />
|
||||
<result property="supplierId" column="supplier_id" />
|
||||
<result property="supplierName" column="supplier_name" />
|
||||
<result property="expectTime" column="expect_time" />
|
||||
<result property="supplyChainNumber" column="supply_chain_number" />
|
||||
<result property="priorityLevelCode" column="priority_level_code" />
|
||||
<result property="priorityLevelName" column="priority_level_name" />
|
||||
<result property="directWarehouse" column="direct_warehouse" />
|
||||
<result property="annexUrl" column="annex_url" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="cancelOrder" column="cancel_order" />
|
||||
<result property="cancelRemark" column="cancel_remark" />
|
||||
<result property="cancelBy" column="cancel_by" />
|
||||
<result property="cancelByName" column="cancel_by_name" />
|
||||
<result property="cancelTime" column="cancel_time" />
|
||||
<result property="closeOrder" column="close_order" />
|
||||
<result property="closeRemark" column="close_remark" />
|
||||
<result property="closeBy" column="close_by" />
|
||||
<result property="closeByName" column="close_by_name" />
|
||||
<result property="closeTime" column="close_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" />
|
||||
<result property="overStockId" column="over_stock_id" />
|
||||
<result property="overStockStatus" column="over_stock_status" />
|
||||
<result property="overStockType" column="over_stock_type" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectStockInOrderPo">
|
||||
a.in_order_id, a.organization_id, a.organization_name, a.top_organization_id, a.notice_number, a.in_order_number, a.status,
|
||||
a.audit_status, a.audit_remark, a.audit_by, a.audit_by_name, a.audit_time, a.warehouse_id, a.warehouse_code, a.warehouse_name, a.shipper_id, a.shipper_code,
|
||||
a.shipper_name, a.order_type_code, a.order_type_name, a.supplier_id, a.supplier_code, a.supplier_name, a.expect_time, a.supply_chain_number,
|
||||
a.priority_level_code, a.priority_level_name, a.direct_warehouse, a.annex_url, a.material_quantity, a.quantity, a.weight_limit, a.volume_limit, a.cancel_order, a.cancel_remark, a.cancel_by,
|
||||
a.cancel_by_name, a.cancel_time, a.close_order, a.close_remark, a.close_by, a.close_by_name, a.close_time, a.remark, a.create_time, a.create_by,
|
||||
a.create_by_name, a.update_time, a.update_by, a.update_by_name, a.del_flag, over_stock_id, over_stock_status, over_stock_type
|
||||
</sql>
|
||||
|
||||
<sql id="joinStockInOrderPo">
|
||||
,b.notice_number, b.warehouse_id, b.warehouse_code, b.warehouse_name, b.shipper_id, b.shipper_code, b.shipper_name,
|
||||
b.order_type_code, b.order_type_name, b.supplier_id, b.supplier_code, b.supplier_name, b.expect_time, b.supply_chain_number, b.priority_level_code,
|
||||
b.priority_level_name, b.direct_warehouse, b.annex_url, b.material_quantity, b.quantity
|
||||
</sql>
|
||||
|
||||
<sql id="joinStockInOrderPoWhere">
|
||||
|
||||
<if test="noticeNumber != null and noticeNumber != ''">
|
||||
and b.notice_number = #{noticeNumber}
|
||||
</if>
|
||||
<if test="inOrderNumber != null and inOrderNumber != ''">
|
||||
and b.in_order_number = #{inOrderNumber}
|
||||
</if>
|
||||
<if test="warehouseId != null ">
|
||||
and b.warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''">
|
||||
and b.warehouse_code = #{warehouseCode}
|
||||
</if>
|
||||
<if test="warehouseName != null and warehouseName != ''">
|
||||
and b.warehouse_name like concat('%', #{warehouseName}, '%')
|
||||
</if>
|
||||
<if test="shipperId != null ">
|
||||
and b.shipper_id = #{shipperId}
|
||||
</if>
|
||||
<if test="shipperName != null and shipperName != ''">
|
||||
and b.shipper_name like concat('%', #{shipperName}, '%')
|
||||
</if>
|
||||
<if test="orderTypeCode != null and orderTypeCode != ''">
|
||||
and b.order_type_code = #{orderTypeCode}
|
||||
</if>
|
||||
<if test="orderTypeName != null and orderTypeName != ''">
|
||||
and b.order_type_name like concat('%', #{orderTypeName}, '%')
|
||||
</if>
|
||||
<if test="supplierId != null ">
|
||||
and b.supplier_id = #{supplierId}
|
||||
</if>
|
||||
<if test="supplierName != null and supplierName != ''">
|
||||
and b.supplier_name like concat('%', #{supplierName}, '%')
|
||||
</if>
|
||||
<if test="expectTime != null ">
|
||||
and b.expect_time = #{expectTime}
|
||||
</if>
|
||||
<if test="supplyChainNumber != null and supplyChainNumber != ''">
|
||||
and b.supply_chain_number = #{supplyChainNumber}
|
||||
</if>
|
||||
<if test="priorityLevelCode != null and priorityLevelCode != ''">
|
||||
and b.priority_level_code = #{priorityLevelCode}
|
||||
</if>
|
||||
<if test="priorityLevelName != null and priorityLevelName != ''">
|
||||
and b.priority_level_name like concat('%', #{priorityLevelName}, '%')
|
||||
</if>
|
||||
<if test="directWarehouse != null ">
|
||||
and b.direct_warehouse = #{directWarehouse}
|
||||
</if>
|
||||
<if test="annexUrl != null and annexUrl != ''">
|
||||
and b.annex_url = #{annexUrl}
|
||||
</if>
|
||||
<if test="quantity != null ">
|
||||
and b.quantity = #{quantity}
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
<sql id="selectStockInOrderPo1">
|
||||
<if test="organizationId != null ">
|
||||
and a.organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and a.organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and a.top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="noticeNumber != null and noticeNumber != ''">
|
||||
and a.notice_number = #{noticeNumber}
|
||||
</if>
|
||||
<if test="inOrderNumber != null and inOrderNumber != ''">
|
||||
and a.in_order_number = #{inOrderNumber}
|
||||
</if>
|
||||
<if test="status != null ">
|
||||
and a.status = #{status}
|
||||
</if>
|
||||
<if test="ltStatus != null ">
|
||||
and a.status < #{status}
|
||||
</if>
|
||||
<if test="gtStatus != null ">
|
||||
and a.status > #{status}
|
||||
</if>
|
||||
<if test="auditStatus != null ">
|
||||
and a.audit_status = #{auditStatus}
|
||||
</if>
|
||||
<if test="ltAuditStatus != null ">
|
||||
and a.audit_status < #{ltAuditStatus}
|
||||
</if>
|
||||
<if test="gtAuditStatus != null ">
|
||||
and a.audit_status > #{gtAuditStatus}
|
||||
</if>
|
||||
<if test="auditRemark != null and auditRemark != ''">
|
||||
and a.audit_remark = #{auditRemark}
|
||||
</if>
|
||||
<if test="auditBy != null ">
|
||||
and a.audit_by = #{auditBy}
|
||||
</if>
|
||||
<if test="auditByName != null and auditByName != ''">
|
||||
and a.audit_by_name like concat('%', #{auditByName}, '%')
|
||||
</if>
|
||||
<if test="auditTime != null ">
|
||||
and a.audit_time = #{auditTime}
|
||||
</if>
|
||||
<if test="warehouseId != null ">
|
||||
and a.warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''">
|
||||
and a.warehouse_code = #{warehouseCode}
|
||||
</if>
|
||||
<if test="warehouseName != null and warehouseName != ''">
|
||||
and a.warehouse_name like concat('%', #{warehouseName}, '%')
|
||||
</if>
|
||||
<if test="shipperId != null ">
|
||||
and a.shipper_id = #{shipperId}
|
||||
</if>
|
||||
<if test="shipperName != null and shipperName != ''">
|
||||
and a.shipper_name like concat('%', #{shipperName}, '%')
|
||||
</if>
|
||||
<if test="orderTypeCode != null and orderTypeCode != ''">
|
||||
and a.order_type_code = #{orderTypeCode}
|
||||
</if>
|
||||
<if test="orderTypeName != null and orderTypeName != ''">
|
||||
and a.order_type_name like concat('%', #{orderTypeName}, '%')
|
||||
</if>
|
||||
<if test="supplierId != null ">
|
||||
and a.supplier_id = #{supplierId}
|
||||
</if>
|
||||
<if test="supplierName != null and supplierName != ''">
|
||||
and a.supplier_name like concat('%', #{supplierName}, '%')
|
||||
</if>
|
||||
<if test="expectTime != null ">
|
||||
and a.expect_time = #{expectTime}
|
||||
</if>
|
||||
<if test="supplyChainNumber != null and supplyChainNumber != ''">
|
||||
and a.supply_chain_number = #{supplyChainNumber}
|
||||
</if>
|
||||
<if test="priorityLevelCode != null and priorityLevelCode != ''">
|
||||
and a.priority_level_code = #{priorityLevelCode}
|
||||
</if>
|
||||
<if test="priorityLevelName != null and priorityLevelName != ''">
|
||||
and a.priority_level_name like concat('%', #{priorityLevelName}, '%')
|
||||
</if>
|
||||
<if test="directWarehouse != null ">
|
||||
and a.direct_warehouse = #{directWarehouse}
|
||||
</if>
|
||||
<if test="annexUrl != null and annexUrl != ''">
|
||||
and a.annex_url = #{annexUrl}
|
||||
</if>
|
||||
<if test="quantity != null ">
|
||||
and a.quantity = #{quantity}
|
||||
</if>
|
||||
<if test="cancelOrder != null ">
|
||||
and a.cancel_order = #{cancelOrder}
|
||||
</if>
|
||||
<if test="cancelRemark != null and cancelRemark != ''">
|
||||
and a.cancel_remark = #{cancelRemark}
|
||||
</if>
|
||||
<if test="cancelBy != null ">
|
||||
and a.cancel_by = #{cancelBy}
|
||||
</if>
|
||||
<if test="cancelByName != null and cancelByName != ''">
|
||||
and a.cancel_by_name like concat('%', #{cancelByName}, '%')
|
||||
</if>
|
||||
<if test="cancelTime != null ">
|
||||
and a.cancel_time = #{cancelTime}
|
||||
</if>
|
||||
<if test="closeOrder != null ">
|
||||
and a.close_order = #{closeOrder}
|
||||
</if>
|
||||
<if test="closeRemark != null and closeRemark != ''">
|
||||
and a.close_remark = #{closeRemark}
|
||||
</if>
|
||||
<if test="closeBy != null ">
|
||||
and a.close_by = #{closeBy}
|
||||
</if>
|
||||
<if test="closeByName != null and closeByName != ''">
|
||||
and a.close_by_name like concat('%', #{closeByName}, '%')
|
||||
</if>
|
||||
<if test="closeTime != null ">
|
||||
and a.close_time = #{closeTime}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and a.create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and a.update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<if test="inOrderIds != null and inOrderIds.size > 0 ">
|
||||
and a.in_order_id in
|
||||
<foreach collection="inOrderIds" item="item" index="index" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<choose>
|
||||
<when test="delFlag != null"> and a.del_flag = #{delFlag} </when>
|
||||
<otherwise> and a.del_flag = 1 </otherwise>
|
||||
</choose>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.stockInOrder.repository.todo.StockInOrderDO" resultMap="StockInOrderResult">
|
||||
select
|
||||
<include refid="selectStockInOrderPo"/>
|
||||
from stock_in_order a
|
||||
<where>
|
||||
<include refid="selectStockInOrderPo1"/>
|
||||
</where>
|
||||
ORDER BY a.create_time DESC
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user