3.0.5
This commit is contained in:
@@ -6,107 +6,111 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
|
||||
<sql id="selectContractManagePo">
|
||||
select
|
||||
*
|
||||
from contract_manage
|
||||
SELECT DISTINCT a.*
|
||||
FROM CONTRACT_MANAGE a
|
||||
INNER JOIN CONTRACT_MANAGE_DETAIL b
|
||||
ON a.CONTRACT_MANAGE_ID = b.CONTRACT_MANAGE_ID
|
||||
where
|
||||
del_flag = 1
|
||||
a.del_flag = 1
|
||||
</sql>
|
||||
|
||||
<sql id="selectContractManagePo1">
|
||||
<where>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and create_by_name like concat('%', #{createByName}, '%')
|
||||
and a.create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and update_by_name like concat('%', #{updateByName}, '%')
|
||||
and a.update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
and a.top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
and a.organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and organization_name like concat('%', #{organizationName}, '%')
|
||||
and a.organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="contractNumber != null and contractNumber != ''">
|
||||
and contract_number = #{contractNumber}
|
||||
and a.contract_number = #{contractNumber}
|
||||
</if>
|
||||
<if test="contractName != null and contractName != ''">
|
||||
and contract_name like concat('%', #{contractName}, '%')
|
||||
and a.contract_name like concat('%', #{contractName}, '%')
|
||||
</if>
|
||||
<if test="commonContractFlag != null ">
|
||||
and common_contract_flag = #{commonContractFlag}
|
||||
and a.common_contract_flag = #{commonContractFlag}
|
||||
</if>
|
||||
<if test="contractType != null ">
|
||||
and contract_type = #{contractType}
|
||||
and a.contract_type = #{contractType}
|
||||
</if>
|
||||
<if test="contractState != null ">
|
||||
and contract_state = #{contractState}
|
||||
and a.contract_state = #{contractState}
|
||||
</if>
|
||||
<if test="signingUnit != null and signingUnit != ''">
|
||||
and signing_unit = #{signingUnit}
|
||||
and a.signing_unit = #{signingUnit}
|
||||
</if>
|
||||
<if test="settlementCustomers != null and settlementCustomers != ''">
|
||||
and settlement_customers = #{settlementCustomers}
|
||||
and a.settlement_customers = #{settlementCustomers}
|
||||
</if>
|
||||
<if test="settlementCustomersId != null ">
|
||||
and settlement_customers_id = #{settlementCustomersId}
|
||||
and a.settlement_customers_id = #{settlementCustomersId}
|
||||
</if>
|
||||
<if test="settlementCustomersCode != null and settlementCustomersCode != ''">
|
||||
and settlement_customers_code = #{settlementCustomersCode}
|
||||
and a.settlement_customers_code = #{settlementCustomersCode}
|
||||
</if>
|
||||
<if test="ourIdentity != null ">
|
||||
and our_identity = #{ourIdentity}
|
||||
and a.our_identity = #{ourIdentity}
|
||||
</if>
|
||||
<if test="accountingPeriod != null ">
|
||||
and accounting_period = #{accountingPeriod}
|
||||
and a.accounting_period = #{accountingPeriod}
|
||||
</if>
|
||||
<if test="signingDate != null ">
|
||||
and signing_date = #{signingDate}
|
||||
and a.signing_date = #{signingDate}
|
||||
</if>
|
||||
<if test="effectiveDate != null ">
|
||||
and effective_date = #{effectiveDate}
|
||||
and a.effective_date = #{effectiveDate}
|
||||
</if>
|
||||
<if test="expirationDate != null ">
|
||||
and expiration_date = #{expirationDate}
|
||||
and a.expiration_date = #{expirationDate}
|
||||
</if>
|
||||
<if test="contractOriginalUrl != null and contractOriginalUrl != ''">
|
||||
and contract_original_url = #{contractOriginalUrl}
|
||||
and a.contract_original_url = #{contractOriginalUrl}
|
||||
</if>
|
||||
<if test="integrityAgreementUrl != null and integrityAgreementUrl != ''">
|
||||
and integrity_agreement_url = #{integrityAgreementUrl}
|
||||
and a.integrity_agreement_url = #{integrityAgreementUrl}
|
||||
</if>
|
||||
<if test="securityProtocolUrl != null and securityProtocolUrl != ''">
|
||||
and security_protocol_url = #{securityProtocolUrl}
|
||||
and a.security_protocol_url = #{securityProtocolUrl}
|
||||
</if>
|
||||
<if test="otherAttachmentsUrl != null and otherAttachmentsUrl != ''">
|
||||
and other_attachments_url = #{otherAttachmentsUrl}
|
||||
and a.other_attachments_url = #{otherAttachmentsUrl}
|
||||
</if>
|
||||
<if test="ourSinged != null and ourSinged != ''">
|
||||
and our_singed = #{ourSinged}
|
||||
and a.our_singed = #{ourSinged}
|
||||
</if>
|
||||
<if test="ourSingedPhone != null and ourSingedPhone != ''">
|
||||
and our_singed_phone = #{ourSingedPhone}
|
||||
and a.our_singed_phone = #{ourSingedPhone}
|
||||
</if>
|
||||
<if test="ourOperator != null and ourOperator != ''">
|
||||
and our_operator = #{ourOperator}
|
||||
and a.our_operator = #{ourOperator}
|
||||
</if>
|
||||
<if test="ourOperatorPhone != null and ourOperatorPhone != ''">
|
||||
and our_operator_phone = #{ourOperatorPhone}
|
||||
and a.our_operator_phone = #{ourOperatorPhone}
|
||||
</if>
|
||||
<if test="theySinged != null and theySinged != ''">
|
||||
and they_singed = #{theySinged}
|
||||
and a.they_singed = #{theySinged}
|
||||
</if>
|
||||
<if test="theySingedPhone != null and theySingedPhone != ''">
|
||||
and they_singed_phone = #{theySingedPhone}
|
||||
and a.they_singed_phone = #{theySingedPhone}
|
||||
</if>
|
||||
<if test="theyOperator != null and theyOperator != ''">
|
||||
and they_operator = #{theyOperator}
|
||||
and a.they_operator = #{theyOperator}
|
||||
</if>
|
||||
<if test="theyOperatorPhone != null and theyOperatorPhone != ''">
|
||||
and they_operator_phone = #{theyOperatorPhone}
|
||||
and a.they_operator_phone = #{theyOperatorPhone}
|
||||
</if>
|
||||
<if test="firstSubjectCode != null and firstSubjectCode != ''">
|
||||
and b.FIRST_SUBJECT_CODE = #{firstSubjectCode}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
@@ -201,4 +205,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
</mapper>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user