first commit
This commit is contained in:
+70
@@ -0,0 +1,70 @@
|
||||
<?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.linke.finance.domain.approvalDocumentDetail.repository.mapper.ApprovalDocumentDetailMapper">
|
||||
|
||||
<resultMap type="com.linke.finance.domain.approvalDocumentDetail.repository.po.ApprovalDocumentDetailPO" id="ApprovalDocumentDetailResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="approvalDocumentId" column="approval_document_id" />
|
||||
<result property="waybillNumber" column="waybill_number" />
|
||||
<result property="amount" column="amount" />
|
||||
<result property="payName" column="pay_name" />
|
||||
<result property="licenseNumber" column="license_number" />
|
||||
<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="organizationId" column="organization_id" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectApprovalDocumentDetailPo">
|
||||
select id, approval_document_id, waybill_number, amount, pay_name, license_number, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag, organization_id, top_organization_id, organization_name from approval_document_detail
|
||||
</sql>
|
||||
|
||||
<sql id="selectApprovalDocumentDetailPo1">
|
||||
<where>
|
||||
<if test="approvalDocumentId != null ">
|
||||
and approval_document_id = #{approvalDocumentId}
|
||||
</if>
|
||||
<if test="waybillNumber != null and waybillNumber != ''">
|
||||
and waybill_number = #{waybillNumber}
|
||||
</if>
|
||||
<if test="amount != null ">
|
||||
and amount = #{amount}
|
||||
</if>
|
||||
<if test="payName != null and payName != ''">
|
||||
and pay_name like concat('%', #{payName}, '%')
|
||||
</if>
|
||||
<if test="licenseNumber != null and licenseNumber != ''">
|
||||
and license_number = #{licenseNumber}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.linke.finance.domain.approvalDocumentDetail.repository.todo.ApprovalDocumentDetailDO" resultMap="ApprovalDocumentDetailResult">
|
||||
<include refid="selectApprovalDocumentDetailPo"/>
|
||||
<include refid="selectApprovalDocumentDetailPo1"/>
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user