bms改造;
This commit is contained in:
@@ -210,6 +210,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="contractManageDO.firstSubjectCode != null and contractManageDO.firstSubjectCode != ''">
|
||||
and b.FIRST_SUBJECT_CODE = #{contractManageDO.firstSubjectCode}
|
||||
</if>
|
||||
<if test="contractManageDO.renewalAdvanceDays != null">
|
||||
and a.renewal_advance_days = #{contractManageDO.renewalAdvanceDays}
|
||||
</if>
|
||||
<if test="contractManageDO.subjectMatter != null and contractManageDO.subjectMatter != ''">
|
||||
and a.subject_matter like concat('%', #{contractManageDO.subjectMatter}, '%')
|
||||
</if>
|
||||
<if test="contractManageDO.nature != null and contractManageDO.nature != ''">
|
||||
and a.nature = #{contractManageDO.nature}
|
||||
</if>
|
||||
<if test="contractManageDO.initialStartDate != null">
|
||||
and a.initial_start_date = #{contractManageDO.initialStartDate}
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
</mapper>
|
||||
+53
@@ -0,0 +1,53 @@
|
||||
<?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.basic.domain.contractManageParameters.repository.mapper.ContractManageParametersMapper">
|
||||
|
||||
|
||||
|
||||
<sql id="selectContractManageParametersPo">
|
||||
select
|
||||
*
|
||||
from contract_manage_parameters
|
||||
</sql>
|
||||
|
||||
<sql id="selectContractManageParametersPo1">
|
||||
<where>
|
||||
<if test="contractManageId != null ">
|
||||
and contract_manage_id = #{contractManageId}
|
||||
</if>
|
||||
<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="contractNumber != null and contractNumber != ''">
|
||||
and contract_number like concat('%', #{contractNumber}, '%')
|
||||
</if>
|
||||
<if test="contractName != null and contractName != ''">
|
||||
and contract_name like concat('%', #{contractName}, '%')
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.basic.domain.contractManageParameters.repository.todo.ContractManageParametersDO"
|
||||
resultType="com.mhd.basic.domain.contractManageParameters.repository.po.ContractManageParametersPO">
|
||||
<include refid="selectContractManageParametersPo"/>
|
||||
<include refid="selectContractManageParametersPo1"/>
|
||||
</select>
|
||||
|
||||
<select id="getListByContractManageId"
|
||||
resultType="com.mhd.basic.domain.contractManageParameters.repository.po.ContractManageParametersPO" parameterType="java.lang.Long">
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
contract_manage_parameters
|
||||
WHERE
|
||||
contract_manage_id = #{contractManageId}
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user