集成wms服务模块
This commit is contained in:
@@ -0,0 +1,135 @@
|
||||
<?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.stockReceiptOrder.repository.mapper.StockReceiptOrderMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.stockReceiptOrder.repository.po.StockReceiptOrderPO" id="StockReceiptOrderResult">
|
||||
<result property="receiptOrderId" column="receipt_order_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="receiptOrderNumber" column="receipt_order_number" />
|
||||
<result property="status" column="status" />
|
||||
<result property="platformId" column="platform_id" />
|
||||
<result property="platformCode" column="platform_code" />
|
||||
<result property="platformName" column="platform_name" />
|
||||
<result property="platformUseTimeId" column="platform_use_time_id" />
|
||||
<result property="platformUseStartTime" column="platform_use_start_time" />
|
||||
<result property="platformUseEndTime" column="platform_use_end_time" />
|
||||
<result property="platformUseStatus" column="platform_use_status" />
|
||||
<result property="receiptQuantity" column="receipt_quantity" />
|
||||
<result property="abnormal" column="abnormal" />
|
||||
<result property="taskDistribution" column="task_distribution" />
|
||||
<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="selectStockReceiptOrderPo">
|
||||
a.receipt_order_id, a.organization_id, a.organization_name, a.top_organization_id, a.in_order_number, a.receipt_order_number,
|
||||
a.status, a.platform_id, a.platform_code, a.platform_name, a.platform_use_time_id, a.platform_use_start_time, a.platform_use_end_time,
|
||||
a.platform_use_status, a.quantity, a.receipt_quantity, a.receipt_material_quantity, a.material_quantity, a.abnormal, a.task_distribution, a.task_distribution_time,
|
||||
a.operators_by, a.operators_name, 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
|
||||
</sql>
|
||||
|
||||
<sql id="selectStockReceiptOrderPo1">
|
||||
<if test="receiptOrderId != null ">
|
||||
and a.receipt_order_id = #{receiptOrderId}
|
||||
</if>
|
||||
<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="inOrderNumber != null and inOrderNumber != '' ">
|
||||
and a.in_order_number = #{inOrderNumber}
|
||||
</if>
|
||||
<if test="receiptOrderNumber != null and receiptOrderNumber != ''">
|
||||
and a.receipt_order_number like concat('%', #{receiptOrderNumber}, '%')
|
||||
</if>
|
||||
<if test="status != null ">
|
||||
and a.status = #{status}
|
||||
</if>
|
||||
<if test="ltStatus != null ">
|
||||
and a.status < #{ltStatus}
|
||||
</if>
|
||||
<if test="gtStatus != null ">
|
||||
and a.status > #{gtStatus}
|
||||
</if>
|
||||
<if test="platformId != null ">
|
||||
and a.platform_id = #{platformId}
|
||||
</if>
|
||||
<if test="platformCode != null and platformCode != ''">
|
||||
and a.platform_code = #{platformCode}
|
||||
</if>
|
||||
<if test="platformName != null and platformName != ''">
|
||||
and a.platform_name like concat('%', #{platformName}, '%')
|
||||
</if>
|
||||
<if test="platformUseTimeId != null ">
|
||||
and a.platform_use_time_id = #{platformUseTimeId}
|
||||
</if>
|
||||
<if test="platformUseStartTime != null ">
|
||||
and a.platform_use_start_time = #{platformUseStartTime}
|
||||
</if>
|
||||
<if test="platformUseEndTime != null ">
|
||||
and a.platform_use_end_time = #{platformUseEndTime}
|
||||
</if>
|
||||
<if test="platformUseStatus != null ">
|
||||
and a.platform_use_status = #{platformUseStatus}
|
||||
</if>
|
||||
<if test="receiptQuantity != null ">
|
||||
and a.receipt_quantity = #{receiptQuantity}
|
||||
</if>
|
||||
<if test="abnormal != null ">
|
||||
and a.abnormal = #{abnormal}
|
||||
</if>
|
||||
<if test="taskDistribution != null ">
|
||||
and a.task_distribution = #{taskDistribution}
|
||||
</if>
|
||||
<if test="operatorsBy != null and operatorsBy != ''">
|
||||
and a.operators_by = #{operatorsBy}
|
||||
</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="receiptOrderIds != null and receiptOrderIds.size > 0 ">
|
||||
and a.receipt_order_id in
|
||||
<foreach collection="receiptOrderIds" 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.stockReceiptOrder.repository.todo.StockReceiptOrderDO" resultMap="StockReceiptOrderResult">
|
||||
select
|
||||
<include refid="selectStockReceiptOrderPo"/>
|
||||
<include refid="com.mhd.wms.domain.stockInOrder.repository.mapper.StockInOrderMapper.joinStockInOrderPo"/>
|
||||
from stock_receipt_order a
|
||||
LEFT JOIN stock_in_order b ON a.in_order_number = b.in_order_number
|
||||
<where>
|
||||
<include refid="selectStockReceiptOrderPo1"/>
|
||||
<include refid="com.mhd.wms.domain.stockInOrder.repository.mapper.StockInOrderMapper.joinStockInOrderPoWhere"/>
|
||||
</where>
|
||||
ORDER BY a.create_time DESC
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user