|
@@ -75,7 +75,8 @@
|
|
|
a.reviewer_person as "reviewerPerson",
|
|
|
a.reviewer_person_id as "reviewerPersonId",
|
|
|
a.company_type as "companyType",
|
|
|
- a.contracts_num as "contractsNum"
|
|
|
+ a.contracts_num as "contractsNum",
|
|
|
+ a.project_definition_id as "projectDefinitionId"
|
|
|
|
|
|
</sql>
|
|
|
|
|
@@ -130,7 +131,8 @@
|
|
|
a.reviewer_person as "reviewerPerson",
|
|
|
a.reviewer_person_id as "reviewerPersonId",
|
|
|
a.company_type as "companyType",
|
|
|
- a.contracts_num as "contractsNum"
|
|
|
+ a.contracts_num as "contractsNum",
|
|
|
+ a.project_definition_id as "projectDefinitionId"
|
|
|
</sql>
|
|
|
|
|
|
<sql id="projectRecordsJoins">
|
|
@@ -411,6 +413,9 @@
|
|
|
<if test="projectId != null and projectId != ''">
|
|
|
AND a.project_id like concat('%',#{projectId},'%')
|
|
|
</if>
|
|
|
+ <if test="projectDefinitionId != null and projectDefinitionId != ''">
|
|
|
+ AND a.project_definition_id like concat('%',#{projectDefinitionId},'%')
|
|
|
+ </if>
|
|
|
<if test="projectName != null and projectName != ''">
|
|
|
AND a.project_name like concat(concat('%',#{projectName}),'%')
|
|
|
</if>
|
|
@@ -542,6 +547,9 @@
|
|
|
<if test="projectType!=null and projectType!=''">
|
|
|
and a.project_type = #{projectType}
|
|
|
</if>
|
|
|
+ <if test="projectDefinitionId != null and projectDefinitionId != ''">
|
|
|
+ AND a.project_definition_id like concat('%',#{projectDefinitionId},'%')
|
|
|
+ </if>
|
|
|
<if test="projectId != null and projectId != ''">
|
|
|
AND a.project_id like concat('%',#{projectId},'%')
|
|
|
</if>
|
|
@@ -817,7 +825,8 @@
|
|
|
reviewer_person,
|
|
|
reviewer_person_id,
|
|
|
company_type,
|
|
|
- contracts_num
|
|
|
+ contracts_num,
|
|
|
+ project_definition_id
|
|
|
) VALUES (
|
|
|
#{id},
|
|
|
#{createBy.id},
|
|
@@ -874,7 +883,8 @@
|
|
|
#{reviewerPerson},
|
|
|
#{reviewerPersonId},
|
|
|
#{companyType},
|
|
|
- #{contractsNum}
|
|
|
+ #{contractsNum},
|
|
|
+ #{projectDefinitionId}
|
|
|
)
|
|
|
</insert>
|
|
|
|
|
@@ -930,7 +940,8 @@
|
|
|
emergency_project=#{emergencyProject},
|
|
|
reviewer_person = #{reviewerPerson},
|
|
|
reviewer_person_id = #{reviewerPersonId},
|
|
|
- contracts_num = #{contractsNum}
|
|
|
+ contracts_num = #{contractsNum},
|
|
|
+ project_definition_id = #{projectDefinitionId}
|
|
|
<choose>
|
|
|
<when test="reportedState ==null or reportedState == ''">
|
|
|
,reported_state = null
|
|
@@ -994,7 +1005,8 @@
|
|
|
belonging_department = #{belongingDepartment},
|
|
|
reviewer_person = #{reviewerPerson},
|
|
|
reviewer_person_id = #{reviewerPersonId},
|
|
|
- contracts_num = #{contractsNum}
|
|
|
+ contracts_num = #{contractsNum},
|
|
|
+ project_definition_id = #{projectDefinitionId}
|
|
|
<if test="engineeringType != null and engineeringType != ''">
|
|
|
,engineering_type =#{engineeringType}
|
|
|
</if>
|