集成oms服务模块
This commit is contained in:
@@ -0,0 +1,99 @@
|
||||
<?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.settlement.repository.mapper.SettlementMapper">
|
||||
|
||||
<resultMap type="com.mhd.oms.domain.settlement.repository.po.SettlementPO" id="SettlementResult">
|
||||
<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="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="settlementObjId" column="settlement_obj_id" />
|
||||
<result property="settlementObj" column="settlement_obj" />
|
||||
<result property="settlementWayId" column="settlement_way_id" />
|
||||
<result property="settlementWay" column="settlement_way" />
|
||||
<result property="payMethod" column="pay_method" />
|
||||
<result property="payStatusId" column="pay_status_id" />
|
||||
<result property="payStatus" column="pay_status" />
|
||||
<result property="prepaidAmount" column="prepaid_amount" />
|
||||
<result property="paidAmount" column="paid_amount" />
|
||||
<result property="debtAmount" column="debt_amount" />
|
||||
<result property="paymentAccNo" column="payment_acc_no" />
|
||||
<result property="paymentOrderNo" column="payment_order_no" />
|
||||
<result property="fileUrl" column="file_url" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectSettlementPo">
|
||||
select id, create_by, create_time, update_by, update_time, top_organization_id, organization_id, organization_name, del_flag, order_id, settlement_obj_id, settlement_obj, settlement_way_id, settlement_way, pay_method, pay_status_id, pay_status, prepaid_amount, paid_amount, debt_amount, payment_acc_no, payment_order_no, file_url, remark from oms_settlement
|
||||
</sql>
|
||||
|
||||
<sql id="selectSettlementPo1">
|
||||
<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="settlementObjId != null ">
|
||||
and settlement_obj_id = #{settlementObjId}
|
||||
</if>
|
||||
<if test="settlementObj != null and settlementObj != ''">
|
||||
and settlement_obj = #{settlementObj}
|
||||
</if>
|
||||
<if test="settlementWayId != null and settlementWayId != ''">
|
||||
and settlement_way_id = #{settlementWayId}
|
||||
</if>
|
||||
<if test="settlementWay != null and settlementWay != ''">
|
||||
and settlement_way = #{settlementWay}
|
||||
</if>
|
||||
<if test="payMethod != null and payMethod != ''">
|
||||
and pay_method = #{payMethod}
|
||||
</if>
|
||||
<if test="payStatusId != null and payStatusId != ''">
|
||||
and pay_status_id = #{payStatusId}
|
||||
</if>
|
||||
<if test="payStatus != null and payStatus != ''">
|
||||
and pay_status = #{payStatus}
|
||||
</if>
|
||||
<if test="prepaidAmount != null ">
|
||||
and prepaid_amount = #{prepaidAmount}
|
||||
</if>
|
||||
<if test="paidAmount != null ">
|
||||
and paid_amount = #{paidAmount}
|
||||
</if>
|
||||
<if test="debtAmount != null ">
|
||||
and debt_amount = #{debtAmount}
|
||||
</if>
|
||||
<if test="paymentAccNo != null and paymentAccNo != ''">
|
||||
and payment_acc_no = #{paymentAccNo}
|
||||
</if>
|
||||
<if test="paymentOrderNo != null and paymentOrderNo != ''">
|
||||
and payment_order_no = #{paymentOrderNo}
|
||||
</if>
|
||||
<if test="fileUrl != null and fileUrl != ''">
|
||||
and file_url = #{fileUrl}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.oms.domain.settlement.repository.todo.SettlementDO" resultMap="SettlementResult">
|
||||
<include refid="selectSettlementPo"/>
|
||||
<include refid="selectSettlementPo1"/>
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user