集成oms服务模块

This commit is contained in:
hjx
2026-01-19 15:20:20 +08:00
parent 1837337488
commit 56356839bf
163 changed files with 16893 additions and 0 deletions
@@ -0,0 +1,82 @@
<?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.oms.domain.logistics.repository.mapper.LogisticsMapper">
<resultMap type="com.mhd.oms.domain.logistics.repository.po.LogisticsPO" id="LogisticsResult">
<result property="id" column="id" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="delFlag" column="del_flag" />
<result property="topOrganizationId" column="top_organization_id" />
<result property="organizationId" column="organization_id" />
<result property="organizationName" column="organization_name" />
<result property="orderId" column="order_id" />
<result property="shippingTypeId" column="shipping_type_id" />
<result property="shippingType" column="shipping_type" />
<result property="carrierId" column="carrier_id" />
<result property="carrier" column="carrier" />
<result property="trackingNum" column="tracking_num" />
<result property="freightAmount" column="freight_amount" />
<result property="plateNum" column="plate_num" />
<result property="driverName" column="driver_name" />
<result property="driverPhone" column="driver_phone" />
</resultMap>
<sql id="selectLogisticsPo">
select id, create_by, create_time, update_by, update_time, del_flag, top_organization_id, organization_id, organization_name, order_id, shipping_type_id, shipping_type, carrier_id, carrier, tracking_num, freight_amount, plate_num, driver_name, driver_phone from oms_logistics
</sql>
<sql id="selectLogisticsPo1">
<where>
<if test="topOrganizationId != null ">
and top_organization_id = #{topOrganizationId}
</if>
<if test="organizationId != null ">
and organization_id = #{organizationId}
</if>
<if test="organizationName != null and organizationName != ''">
and organization_name like concat('%', #{organizationName}, '%')
</if>
<if test="orderId != null ">
and order_id = #{orderId}
</if>
<if test="shippingTypeId != null and shippingTypeId != ''">
and shipping_type_id = #{shippingTypeId}
</if>
<if test="shippingType != null and shippingType != ''">
and shipping_type = #{shippingType}
</if>
<if test="carrierId != null ">
and carrier_id = #{carrierId}
</if>
<if test="carrier != null and carrier != ''">
and carrier = #{carrier}
</if>
<if test="trackingNum != null and trackingNum != ''">
and tracking_num = #{trackingNum}
</if>
<if test="freightAmount != null ">
and freight_amount = #{freightAmount}
</if>
<if test="plateNum != null and plateNum != ''">
and plate_num = #{plateNum}
</if>
<if test="driverName != null and driverName != ''">
and driver_name like concat('%', #{driverName}, '%')
</if>
<if test="driverPhone != null and driverPhone != ''">
and driver_phone = #{driverPhone}
</if>
</where>
</sql>
<select id="queryList" parameterType="com.mhd.oms.domain.logistics.repository.todo.LogisticsDO" resultMap="LogisticsResult">
<include refid="selectLogisticsPo"/>
<include refid="selectLogisticsPo1"/>
</select>
</mapper>