156 lines
7.9 KiB
XML
156 lines
7.9 KiB
XML
<?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.handoverTaskOrder.repository.mapper.HandoverTaskOrderMapper">
|
|
|
|
<resultMap type="com.mhd.wms.domain.handoverTaskOrder.repository.po.HandoverTaskOrderPO" id="HandoverTaskOrderResult">
|
|
<result property="handoverTaskOrderId" column="handover_task_order_id" />
|
|
<result property="organizationId" column="organization_id" />
|
|
<result property="organizationName" column="organization_name" />
|
|
<result property="topOrganizationId" column="top_organization_id" />
|
|
<result property="serialNumber" column="serial_number" />
|
|
<result property="taskNumber" column="task_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="orderTypeCode" column="order_type_code" />
|
|
<result property="orderTypeName" column="order_type_name" />
|
|
<result property="expectTime" column="expect_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="orderNumber" column="order_number" />
|
|
<result property="pickingOrderNumber" column="picking_order_number" />
|
|
<result property="remark" column="remark" />
|
|
<result property="taskDistribution" column="task_distribution" />
|
|
<result property="taskDistributionTime" column="task_distribution_time" />
|
|
<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="pictureApp" column="picture_app" />
|
|
<result property="billingJson" column="billing_json" />
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectHandoverTaskOrderPo">
|
|
a.handover_task_order_id, a.organization_id, a.organization_name, a.top_organization_id, a.serial_number, a.task_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.order_type_code, a.order_type_name, a.expect_time, a.warehouse_id, a.warehouse_code, a.warehouse_name, a.shipper_id,
|
|
a.shipper_name, a.order_number, a.picking_order_number, a.remark, a.task_distribution, a.task_distribution_time, a.create_time, a.create_by, a.create_by_name, a.update_time,
|
|
a.update_by, a.update_by_name, a.del_flag, a.picture_app,a.billing_json
|
|
</sql>
|
|
|
|
<sql id="selectHandoverTaskOrderPo1">
|
|
<if test="organizationId != null ">
|
|
and a.organization_id = #{organizationId}
|
|
</if>
|
|
<if test="handoverTaskOrderId != null ">
|
|
and a.handover_task_order_id = #{handoverTaskOrderId}
|
|
</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="serialNumber != null and serialNumber != ''">
|
|
and a.serial_number = #{serialNumber}
|
|
</if>
|
|
<if test="taskNumber != null and taskNumber != ''">
|
|
and a.task_number = #{taskNumber}
|
|
</if>
|
|
<if test="status != null ">
|
|
and a.status = #{status}
|
|
</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="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="expectTime != null ">
|
|
and a.expect_time = #{expectTime}
|
|
</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="orderNumber != null and orderNumber != ''">
|
|
and a.order_number = #{orderNumber}
|
|
</if>
|
|
<if test="pickingOrderNumber != null and pickingOrderNumber != ''">
|
|
and a.picking_order_number = #{pickingOrderNumber}
|
|
</if>
|
|
<if test="operatorsBy != null">
|
|
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>
|
|
<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.handoverTaskOrder.repository.todo.HandoverTaskOrderDO" resultMap="HandoverTaskOrderResult">
|
|
select
|
|
<include refid="selectHandoverTaskOrderPo"/>
|
|
from handover_task_order a
|
|
<where>
|
|
<include refid="selectHandoverTaskOrderPo1"/>
|
|
</where>
|
|
order by a.create_time desc
|
|
</select>
|
|
|
|
<update id="updateOmsOrder">
|
|
update "NGWL_TEST_OMS".RESERVATION_STOCK_OUT_ORDER set ISSUE_STATUS = #{status},OUTBOUND_TIME = CURRENT_TIMESTAMP where OUT_ORDER_NUMBER = #{orderNumber}
|
|
</update>
|
|
</mapper> |