|
|
@@ -66,7 +66,9 @@
|
|
|
a.describe_content AS "describeContent",
|
|
|
a.contract_record_state AS "contractRecordState",
|
|
|
a.over_due_status AS "overDueStatus",
|
|
|
- a.letter_of_acceptance_remarks AS "letterOfAcceptanceRemarks"
|
|
|
+ a.letter_of_acceptance_remarks AS "letterOfAcceptanceRemarks",
|
|
|
+ a.contract_scale AS "contractScale",
|
|
|
+ a.project_leader_ids AS "projectLeaderIds"
|
|
|
</sql>
|
|
|
|
|
|
<sql id="workContractInfoJoins">
|
|
|
@@ -145,10 +147,14 @@
|
|
|
a.describe_content AS "describeContent",
|
|
|
a.contract_record_state AS "contractRecordState",
|
|
|
a.over_due_status AS "overDueStatus",
|
|
|
- a.letter_of_acceptance_remarks AS "letterOfAcceptanceRemarks"
|
|
|
+ a.letter_of_acceptance_remarks AS "letterOfAcceptanceRemarks",
|
|
|
+ a.contract_scale AS "contractScale",
|
|
|
+ a.project_leader_ids AS "projectLeaderIds",
|
|
|
+ pu.name AS "leaderNameStr"
|
|
|
FROM work_contract_info a
|
|
|
<include refid="workContractInfoJoins"/>
|
|
|
LEFT JOIN work_contract_record wcr ON wcr.contract_info_id = a.id
|
|
|
+ LEFT JOIN sys_user pu on pu.id = a.project_leader_ids
|
|
|
WHERE a.id = #{id}
|
|
|
</select>
|
|
|
|
|
|
@@ -276,7 +282,9 @@
|
|
|
ifnull(wcr.file_num,"") as "recordNum",
|
|
|
wcr.id as "contrractRecordId",
|
|
|
a.describe_content AS "describeContent",
|
|
|
- o.name as "createUserOfficeName"
|
|
|
+ o.name as "createUserOfficeName",
|
|
|
+ a.contract_scale AS "contractScale",
|
|
|
+ a.project_leader_ids AS "projectLeaderIds"
|
|
|
FROM work_contract_info a
|
|
|
<include refid="workContractInfoJoins"/>
|
|
|
left join work_contract_record wcr on wcr.contract_info_id = a.id
|
|
|
@@ -458,7 +466,9 @@
|
|
|
ifnull(wcr.file_num,"") as "recordNum",
|
|
|
wcr.id as "contrractRecordId",
|
|
|
a.describe_content AS "describeContent",
|
|
|
- o.name as "createUserOfficeName"
|
|
|
+ o.name as "createUserOfficeName",
|
|
|
+ a.contract_scale AS "contractScale",
|
|
|
+ a.project_leader_ids AS "projectLeaderIds"
|
|
|
FROM work_contract_info a
|
|
|
<include refid="workContractInfoJoins"/>
|
|
|
left join work_contract_record wcr on wcr.contract_info_id = a.id
|
|
|
@@ -632,7 +642,9 @@
|
|
|
a.alterbefore_id AS "alterBeforeId",
|
|
|
(select name from work_contract_info where id = a.total_contract_id) AS "totalContractName",
|
|
|
a.common_flag AS "commonFlag",
|
|
|
- (select count(1) from work_contract_info c where c.total_contract_id = a.id) cnt
|
|
|
+ (select count(1) from work_contract_info c where c.total_contract_id = a.id) cnt,
|
|
|
+ a.contract_scale AS "contractScale",
|
|
|
+ a.project_leader_ids AS "projectLeaderIds"
|
|
|
FROM work_contract_info a
|
|
|
<include refid="workContractInfoJoins"/>
|
|
|
<where>
|
|
|
@@ -733,7 +745,9 @@
|
|
|
a.alterbefore_id AS "alterBeforeId",
|
|
|
(select name from work_contract_info where id = a.total_contract_id) AS "totalContractName",
|
|
|
a.common_flag AS "commonFlag",
|
|
|
- (select count(1) from work_contract_info c where c.total_contract_id = a.id) cnt
|
|
|
+ (select count(1) from work_contract_info c where c.total_contract_id = a.id) cnt,
|
|
|
+ a.contract_scale AS "contractScale",
|
|
|
+ a.project_leader_ids AS "projectLeaderIds"
|
|
|
FROM work_contract_info a
|
|
|
<include refid="workContractInfoJoins"/>
|
|
|
<where>
|
|
|
@@ -854,7 +868,9 @@
|
|
|
a.completion_status AS "completionStatus",
|
|
|
(select name from work_contract_info where id = a.total_contract_id) AS "totalContractName",
|
|
|
a.common_flag AS "commonFlag",
|
|
|
- (select count(1) from work_contract_info c where c.total_contract_id = a.id) cnt
|
|
|
+ (select count(1) from work_contract_info c where c.total_contract_id = a.id) cnt,
|
|
|
+ a.contract_scale AS "contractScale",
|
|
|
+ a.project_leader_ids AS "projectLeaderIds"
|
|
|
FROM work_contract_info a
|
|
|
<include refid="workContractInfoJoins"/>
|
|
|
<where>
|
|
|
@@ -971,7 +987,9 @@
|
|
|
a.construction_project_type AS "constructionProjectType",
|
|
|
(select name from work_contract_info where id = a.total_contract_id) AS "totalContractName",
|
|
|
a.common_flag AS "commonFlag",
|
|
|
- (select count(1) from work_contract_info c where c.total_contract_id = a.id) cnt
|
|
|
+ (select count(1) from work_contract_info c where c.total_contract_id = a.id) cnt,
|
|
|
+ a.contract_scale AS "contractScale",
|
|
|
+ a.project_leader_ids AS "projectLeaderIds"
|
|
|
FROM work_contract_info a
|
|
|
<include refid="workContractInfoJoins"/>
|
|
|
<where>
|
|
|
@@ -1099,7 +1117,9 @@
|
|
|
charge_criterion,
|
|
|
other_details,
|
|
|
contract_information,
|
|
|
- describe_content
|
|
|
+ describe_content,
|
|
|
+ contract_scale,
|
|
|
+ project_leader_ids
|
|
|
) VALUES (
|
|
|
#{id},
|
|
|
#{project.id},
|
|
|
@@ -1158,7 +1178,9 @@
|
|
|
#{chargeCriterion},
|
|
|
#{otherDetails},
|
|
|
#{contractInformation},
|
|
|
- #{describeContent}
|
|
|
+ #{describeContent},
|
|
|
+ #{contractScale},
|
|
|
+ #{projectLeaderIds}
|
|
|
)
|
|
|
</insert>
|
|
|
|
|
|
@@ -1226,6 +1248,12 @@
|
|
|
<if test="letterOfAcceptanceRemarks != null and letterOfAcceptanceRemarks!= ''">
|
|
|
,letter_of_acceptance_remarks = #{letterOfAcceptanceRemarks}
|
|
|
</if>
|
|
|
+ <if test="contractScale != null and contractScale!= ''">
|
|
|
+ ,contract_scale = #{contractScale}
|
|
|
+ </if>
|
|
|
+ <if test="projectLeaderIds != null and projectLeaderIds!= ''">
|
|
|
+ ,project_leader_ids = #{projectLeaderIds}
|
|
|
+ </if>
|
|
|
WHERE id = #{id}
|
|
|
</update>
|
|
|
|
|
|
@@ -1411,7 +1439,9 @@
|
|
|
a.another_contract_num AS "anotherContractNum",
|
|
|
client.name AS "client.name",
|
|
|
a.is_total AS "isTotal",
|
|
|
- a.total_contract_id AS "totalContractId"
|
|
|
+ a.total_contract_id AS "totalContractId",
|
|
|
+ a.contract_scale AS "contractScale",
|
|
|
+ a.project_leader_ids AS "projectLeaderIds"
|
|
|
FROM work_contract_info a
|
|
|
<include refid="workContractInfoJoins"/>
|
|
|
WHERE
|
|
|
@@ -1589,7 +1619,9 @@
|
|
|
wcr.file_num as "fileNum",
|
|
|
wcr.file_num_tow as "fileNumTow",
|
|
|
a.contract_record_state as "contrractRecordStatus",
|
|
|
- a.describe_content AS "describeContent"
|
|
|
+ a.describe_content AS "describeContent",
|
|
|
+ a.contract_scale AS "contractScale",
|
|
|
+ a.project_leader_ids AS "projectLeaderIds"
|
|
|
FROM work_contract_info a
|
|
|
<include refid="workContractInfoJoins"/>
|
|
|
LEFT JOIN work_contract_record wcr ON wcr.contract_info_id = a.id
|
|
|
@@ -1672,7 +1704,9 @@
|
|
|
ifnull(wcr.file_num,"") as "recordNum",
|
|
|
wcr.id as "contrractRecordId",
|
|
|
a.describe_content AS "describeContent",
|
|
|
- o.name as "createUserOfficeName"
|
|
|
+ o.name as "createUserOfficeName",
|
|
|
+ a.contract_scale AS "contractScale",
|
|
|
+ a.project_leader_ids AS "projectLeaderIds"
|
|
|
FROM work_contract_info a
|
|
|
<include refid="workContractInfoJoins"/>
|
|
|
left join work_contract_record wcr on wcr.contract_info_id = a.id
|
|
|
@@ -2105,7 +2139,9 @@
|
|
|
ifnull(wcr.file_num,"") as "recordNum",
|
|
|
wcr.id as "contrractRecordId",
|
|
|
a.describe_content AS "describeContent",
|
|
|
- o.name as "createUserOfficeName"
|
|
|
+ o.name as "createUserOfficeName",
|
|
|
+ a.contract_scale AS "contractScale",
|
|
|
+ a.project_leader_ids AS "projectLeaderIds"
|
|
|
FROM work_contract_info a
|
|
|
<include refid="workContractInfoJoins"/>
|
|
|
left join work_contract_record wcr on wcr.contract_info_id = a.id
|