集成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,106 @@
<?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.interceptOrder.repository.mapper.InterceptOrderMapper">
<resultMap type="com.mhd.oms.domain.interceptOrder.repository.po.InterceptOrderPO" id="InterceptOrderResult">
<result property="id" column="id" />
<result property="createBy" column="create_by" />
<result property="createByName" column="create_by_name" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateByName" column="update_by_name" />
<result property="updateTime" column="update_time" />
<result property="topOrganizationId" column="top_organization_id" />
<result property="organizationId" column="organization_id" />
<result property="organizationName" column="organization_name" />
<result property="delFlag" column="del_flag" />
<result property="orderId" column="order_id" />
<result property="interceptState" column="intercept_state" />
<result property="interceptBy" column="intercept_by" />
<result property="interceptByName" column="intercept_by_name" />
<result property="interceptTime" column="intercept_time" />
<result property="failCause" column="fail_cause" />
<result property="taskNos" column="task_nos" />
<result property="customerOrders" column="customer_orders" />
<result property="orderType" column="order_type" />
<result property="jobTaskType" column="job_task_type" />
<result property="deliverySystem" column="delivery_system" />
</resultMap>
<sql id="selectInterceptOrderPo">
SELECT
a.id,
a.create_by,
a.create_by_name,
a.create_time,
a.update_by,
a.update_by_name,
a.update_time,
a.top_organization_id,
a.organization_id,
a.organization_name,
a.del_flag,
a.order_id,
a.intercept_state,
a.intercept_by,
a.intercept_by_name,
a.intercept_time,
a.fail_cause,
a.task_nos,
b.customer_orders,
b.order_type,
b.job_task_type,
b.delivery_system
FROM
oms_intercept_order a
left join oms_purchase_order b on a.order_id = b.id
where a.del_flag = 1
</sql>
<sql id="selectInterceptOrderPo1">
<!-- <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="topOrganizationId != null ">
and a.top_organization_id = #{topOrganizationId}
</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="orderId != null ">
and a.order_id = #{orderId}
</if>
<if test="interceptState != null ">
and a.intercept_state = #{interceptState}
</if>
<if test="interceptBy != null and interceptBy != ''">
and a.intercept_by = #{interceptBy}
</if>
<if test="interceptByName != null and interceptByName != ''">
and a.intercept_by_name like concat('%', #{interceptByName}, '%')
</if>
<if test="interceptTime != null ">
and a.intercept_time = #{interceptTime}
</if>
<if test="failCause != null and failCause != ''">
and a.fail_cause = #{failCause}
</if>
<if test="taskNos != null and taskNos != ''">
and a.task_nos = #{taskNos}
</if>
</sql>
<select id="queryList" parameterType="com.mhd.oms.domain.interceptOrder.repository.todo.InterceptOrderDO" resultMap="InterceptOrderResult">
<include refid="selectInterceptOrderPo"/>
<include refid="selectInterceptOrderPo1"/>
</select>
</mapper>