集成oms服务模块
This commit is contained in:
@@ -0,0 +1,218 @@
|
||||
<?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.purchaseOrder.repository.mapper.PurchaseOrderMapper">
|
||||
|
||||
<resultMap type="com.mhd.oms.domain.purchaseOrder.repository.po.PurchaseOrderPO" id="PurchaseOrderResult">
|
||||
<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="auditBy" column="audit_by" />
|
||||
<result property="auditTime" column="audit_time" />
|
||||
<result property="auditState" column="audit_state" />
|
||||
<result property="auditResult" column="audit_result" />
|
||||
<result property="orderNo" column="order_no" />
|
||||
<result property="orderState" column="order_state" />
|
||||
<result property="supplierId" column="supplier_id" />
|
||||
<result property="supplier" column="supplier" />
|
||||
<result property="shipperId" column="shipper_id" />
|
||||
<result property="shipper" column="shipper" />
|
||||
<result property="orgId" column="org_id" />
|
||||
<result property="org" column="org" />
|
||||
<result property="orderTime" column="order_time" />
|
||||
<result property="orderTypeId" column="order_type_id" />
|
||||
<result property="orderType" column="order_type" />
|
||||
<result property="jobTaskTypeId" column="job_task_type_id" />
|
||||
<result property="jobTaskType" column="job_task_type" />
|
||||
<result property="receivingWarehouseId" column="receiving_warehouse_id" />
|
||||
<result property="receivingWarehouse" column="receiving_warehouse" />
|
||||
<result property="deliveryDate" column="delivery_date" />
|
||||
<result property="customerOrders" column="customer_orders" />
|
||||
<result property="contractNo" column="contract_no" />
|
||||
<result property="projectId" column="project_id" />
|
||||
<result property="project" column="project" />
|
||||
<result property="rateConcession" column="rate_concession" />
|
||||
<result property="discountAmount" column="discount_amount" />
|
||||
<result property="totalAmount" column="total_amount" />
|
||||
<result property="fileName" column="file_name" />
|
||||
<result property="fileUrl" column="file_url" />
|
||||
<result property="source" column="source" />
|
||||
<result property="tacklState" column="tackl_state" />
|
||||
<result property="tacklTime" column="tackl_time" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="settlementObj" column="settlement_obj" />
|
||||
<result property="settlementWay" column="settlement_way" />
|
||||
<result property="payStatus" column="pay_status" />
|
||||
<result property="totalPriceTax" column="total_price_tax" />
|
||||
<result property="materialInfo" column="material_info" />
|
||||
<result property="materialNum" column="material_num" />
|
||||
<result property="inStorageNum" column="in_storage_num" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectPurchaseOrderPo">
|
||||
SELECT
|
||||
a.id,
|
||||
a.create_by,
|
||||
a.create_by_name,
|
||||
a.create_time,
|
||||
a.update_by,
|
||||
a.update_by_name,
|
||||
a.update_time,
|
||||
a.del_flag,
|
||||
a.top_organization_id,
|
||||
a.organization_id,
|
||||
a.organization_name,
|
||||
a.audit_by,
|
||||
a.audit_time,
|
||||
a.audit_state,
|
||||
a.audit_result,
|
||||
a.order_no,
|
||||
a.order_state,
|
||||
a.supplier_id,
|
||||
a.supplier,
|
||||
a.shipper_id,
|
||||
a.shipper,
|
||||
a.org_id,
|
||||
a.org,
|
||||
a.order_time,
|
||||
a.order_type_id,
|
||||
a.order_type,
|
||||
a.job_task_type_id,
|
||||
a.job_task_type,
|
||||
a.receiving_warehouse_id,
|
||||
a.receiving_warehouse,
|
||||
a.delivery_date,
|
||||
a.customer_orders,
|
||||
a.contract_no,
|
||||
a.project_id,
|
||||
a.project,
|
||||
a.rate_concession,
|
||||
a.discount_amount,
|
||||
a.total_amount,
|
||||
a.file_name,
|
||||
a.file_url,
|
||||
a.source,
|
||||
a.tackl_state,
|
||||
a.tackl_time,
|
||||
a.remark,
|
||||
a.total_price_tax,
|
||||
a.material_info,
|
||||
a.material_num,
|
||||
a.in_storage_num,
|
||||
b.settlement_obj,
|
||||
b.settlement_way,
|
||||
b.pay_status
|
||||
FROM
|
||||
oms_purchase_order a
|
||||
LEFT JOIN oms_settlement b on a.id = b.order_id
|
||||
WHERE
|
||||
a.del_flag = 1
|
||||
</sql>
|
||||
|
||||
<sql id="selectPurchaseOrderPo1">
|
||||
|
||||
<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="auditBy != null and auditBy != ''">
|
||||
and a.audit_by = #{auditBy}
|
||||
</if>
|
||||
<if test="auditTime != null ">
|
||||
and a.audit_time = #{auditTime}
|
||||
</if>
|
||||
<if test="auditState != null ">
|
||||
and a.audit_state = #{auditState}
|
||||
</if>
|
||||
<if test="auditResult != null and auditResult != ''">
|
||||
and a.audit_result = #{auditResult}
|
||||
</if>
|
||||
<if test="orderNo != null and orderNo != ''">
|
||||
and a.order_no = #{orderNo}
|
||||
</if>
|
||||
<if test="orderState != null ">
|
||||
and a.order_state = #{orderState}
|
||||
</if>
|
||||
<if test="supplierId != null ">
|
||||
and a.supplier_id = #{supplierId}
|
||||
</if>
|
||||
<if test="supplier != null and supplier != ''">
|
||||
and a.supplier = #{supplier}
|
||||
</if>
|
||||
<if test="shipperId != null ">
|
||||
and a.shipper_id = #{shipperId}
|
||||
</if>
|
||||
<if test="shipper != null and shipper != ''">
|
||||
and a.shipper = #{shipper}
|
||||
</if>
|
||||
<if test="orgId != null ">
|
||||
and a.org_id = #{orgId}
|
||||
</if>
|
||||
<if test="org != null and org != ''">
|
||||
and a.org = #{org}
|
||||
</if>
|
||||
<if test="orderTime != null ">
|
||||
and a.order_time = #{orderTime}
|
||||
</if>
|
||||
<if test="orderTypeId != null ">
|
||||
and a.order_type_id = #{orderTypeId}
|
||||
</if>
|
||||
<if test="orderType != null and orderType != ''">
|
||||
and a.order_type = #{orderType}
|
||||
</if>
|
||||
<if test="jobTaskTypeId != null and jobTaskTypeId != ''">
|
||||
and a.job_task_type_id = #{jobTaskTypeId}
|
||||
</if>
|
||||
<if test="jobTaskType != null and jobTaskType != ''">
|
||||
and a.job_task_type = #{jobTaskType}
|
||||
</if>
|
||||
<if test="receivingWarehouseId != null ">
|
||||
and a.receiving_warehouse_id = #{receivingWarehouseId}
|
||||
</if>
|
||||
<if test="receivingWarehouse != null and receivingWarehouse != ''">
|
||||
and a.receiving_warehouse = #{receivingWarehouse}
|
||||
</if>
|
||||
<if test="deliveryDate != null ">
|
||||
and a.delivery_date = #{deliveryDate}
|
||||
</if>
|
||||
<if test="customerOrders != null and customerOrders != ''">
|
||||
and a.customer_orders = #{customerOrders}
|
||||
</if>
|
||||
<if test="contractNo != null and contractNo != ''">
|
||||
and a.contract_no = #{contractNo}
|
||||
</if>
|
||||
<if test="projectId != null and projectId != ''">
|
||||
and a.project_id = #{projectId}
|
||||
</if>
|
||||
<if test="project != null and project != ''">
|
||||
and a.project = #{project}
|
||||
</if>
|
||||
<if test="tacklState != null ">
|
||||
and a.tackl_state = #{tacklState}
|
||||
</if>
|
||||
<if test="tacklTime != null ">
|
||||
and a.tackl_time = #{tacklTime}
|
||||
</if>
|
||||
<if test="source != null ">
|
||||
and a.source = #{source}
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.oms.domain.purchaseOrder.repository.todo.PurchaseOrderDO" resultMap="PurchaseOrderResult">
|
||||
<include refid="selectPurchaseOrderPo"/>
|
||||
<include refid="selectPurchaseOrderPo1"/>
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user