|
@@ -66,6 +66,9 @@
|
|
a.office_id AS "officeId",
|
|
a.office_id AS "officeId",
|
|
a.uscCode AS "uscCode",
|
|
a.uscCode AS "uscCode",
|
|
a.hasUscc AS "hasUscc"
|
|
a.hasUscc AS "hasUscc"
|
|
|
|
+ a.address AS "address",
|
|
|
|
+ a.our_bank AS "ourBank",
|
|
|
|
+ a.bank_number AS "bankNumber",
|
|
(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_information AS "contractInformation",
|
|
a.contract_information AS "contractInformation",
|
|
a.describe_content AS "describeContent",
|
|
a.describe_content AS "describeContent",
|
|
@@ -125,6 +128,9 @@
|
|
a.telephone AS "telephone",
|
|
a.telephone AS "telephone",
|
|
a.uscCode AS "uscCode",
|
|
a.uscCode AS "uscCode",
|
|
a.hasUscc AS "hasUscc",
|
|
a.hasUscc AS "hasUscc",
|
|
|
|
+ a.address AS "address",
|
|
|
|
+ a.our_bank AS "ourBank",
|
|
|
|
+ a.bank_number AS "bankNumber",
|
|
a.is_total AS "isTotal",
|
|
a.is_total AS "isTotal",
|
|
a.total_contract_id AS "totalContractId",
|
|
a.total_contract_id AS "totalContractId",
|
|
a.status AS "status",
|
|
a.status AS "status",
|
|
@@ -189,6 +195,9 @@
|
|
a.telephone AS "telephone",
|
|
a.telephone AS "telephone",
|
|
a.uscCode AS "uscCode",
|
|
a.uscCode AS "uscCode",
|
|
a.hasUscc AS "hasUscc",
|
|
a.hasUscc AS "hasUscc",
|
|
|
|
+ a.address AS "address",
|
|
|
|
+ a.our_bank AS "ourBank",
|
|
|
|
+ a.bank_number AS "bankNumber",
|
|
a.clientName AS "clientName",
|
|
a.clientName AS "clientName",
|
|
FROM work_contract_info a
|
|
FROM work_contract_info a
|
|
<include refid="workContractInfoJoins"/>
|
|
<include refid="workContractInfoJoins"/>
|
|
@@ -259,6 +268,9 @@
|
|
a.telephone AS "telephone",
|
|
a.telephone AS "telephone",
|
|
a.uscCode AS "uscCode",
|
|
a.uscCode AS "uscCode",
|
|
a.hasUscc AS "hasUscc",
|
|
a.hasUscc AS "hasUscc",
|
|
|
|
+ a.address AS "address",
|
|
|
|
+ a.our_bank AS "ourBank",
|
|
|
|
+ a.bank_number AS "bankNumber",
|
|
a.is_total AS "isTotal",
|
|
a.is_total AS "isTotal",
|
|
a.total_contract_id AS "totalContractId",
|
|
a.total_contract_id AS "totalContractId",
|
|
a.status AS "status",
|
|
a.status AS "status",
|
|
@@ -475,6 +487,9 @@
|
|
a.telephone AS "telephone",
|
|
a.telephone AS "telephone",
|
|
a.uscCode AS "uscCode",
|
|
a.uscCode AS "uscCode",
|
|
a.hasUscc AS "hasUscc",
|
|
a.hasUscc AS "hasUscc",
|
|
|
|
+ a.address AS "address",
|
|
|
|
+ a.our_bank AS "ourBank",
|
|
|
|
+ a.bank_number AS "bankNumber",
|
|
a.is_total AS "isTotal",
|
|
a.is_total AS "isTotal",
|
|
a.total_contract_id AS "totalContractId",
|
|
a.total_contract_id AS "totalContractId",
|
|
a.status AS "status",
|
|
a.status AS "status",
|
|
@@ -577,6 +592,9 @@
|
|
a.telephone AS "telephone",
|
|
a.telephone AS "telephone",
|
|
a.uscCode AS "uscCode",
|
|
a.uscCode AS "uscCode",
|
|
a.hasUscc AS "hasUscc",
|
|
a.hasUscc AS "hasUscc",
|
|
|
|
+ a.address AS "address",
|
|
|
|
+ a.our_bank AS "ourBank",
|
|
|
|
+ a.bank_number AS "bankNumber",
|
|
a.is_total AS "isTotal",
|
|
a.is_total AS "isTotal",
|
|
a.total_contract_id AS "totalContractId",
|
|
a.total_contract_id AS "totalContractId",
|
|
a.status AS "status",
|
|
a.status AS "status",
|
|
@@ -702,6 +720,9 @@
|
|
a.telephone AS "telephone",
|
|
a.telephone AS "telephone",
|
|
a.uscCode AS "uscCode",
|
|
a.uscCode AS "uscCode",
|
|
a.hasUscc AS "hasUscc",
|
|
a.hasUscc AS "hasUscc",
|
|
|
|
+ a.address AS "address",
|
|
|
|
+ a.our_bank AS "ourBank",
|
|
|
|
+ a.bank_number AS "bankNumber",
|
|
a.is_total AS "isTotal",
|
|
a.is_total AS "isTotal",
|
|
a.total_contract_id AS "totalContractId",
|
|
a.total_contract_id AS "totalContractId",
|
|
a.status AS "status",
|
|
a.status AS "status",
|
|
@@ -827,6 +848,9 @@
|
|
a.telephone AS "telephone",
|
|
a.telephone AS "telephone",
|
|
a.uscCode AS "uscCode",
|
|
a.uscCode AS "uscCode",
|
|
a.hasUscc AS "hasUscc",
|
|
a.hasUscc AS "hasUscc",
|
|
|
|
+ a.address AS "address",
|
|
|
|
+ a.our_bank AS "ourBank",
|
|
|
|
+ a.bank_number AS "bankNumber",
|
|
a.is_total AS "isTotal",
|
|
a.is_total AS "isTotal",
|
|
a.total_contract_id AS "totalContractId",
|
|
a.total_contract_id AS "totalContractId",
|
|
a.status AS "status",
|
|
a.status AS "status",
|
|
@@ -975,7 +999,10 @@
|
|
clientName,
|
|
clientName,
|
|
telephone,
|
|
telephone,
|
|
uscCode,
|
|
uscCode,
|
|
- hasUscc
|
|
|
|
|
|
+ hasUscc,
|
|
|
|
+ address,
|
|
|
|
+ our_bank,
|
|
|
|
+ bank_number
|
|
) VALUES (
|
|
) VALUES (
|
|
#{id},
|
|
#{id},
|
|
#{project.id},
|
|
#{project.id},
|
|
@@ -1039,7 +1066,10 @@
|
|
#{clientName},
|
|
#{clientName},
|
|
#{telephone},
|
|
#{telephone},
|
|
#{uscCode},
|
|
#{uscCode},
|
|
- #{hasUscc}
|
|
|
|
|
|
+ #{hasUscc},
|
|
|
|
+ #{address},
|
|
|
|
+ #{ourBank},
|
|
|
|
+ #{bankNumber}
|
|
)
|
|
)
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -1059,6 +1089,9 @@
|
|
telephone = #{telephone},
|
|
telephone = #{telephone},
|
|
uscCode = #{uscCode},
|
|
uscCode = #{uscCode},
|
|
hasUscc =#{hasUscc},
|
|
hasUscc =#{hasUscc},
|
|
|
|
+ address =#{address},
|
|
|
|
+ our_bank =#{ourBank},
|
|
|
|
+ bank_number =#{bankNumber},
|
|
contract_category = #{contractCategory},
|
|
contract_category = #{contractCategory},
|
|
contract_num = #{contractNum},
|
|
contract_num = #{contractNum},
|
|
contract_price = #{contractPrice},
|
|
contract_price = #{contractPrice},
|
|
@@ -1327,6 +1360,9 @@
|
|
a.telephone AS "telephone",
|
|
a.telephone AS "telephone",
|
|
a.uscCode AS "uscCode",
|
|
a.uscCode AS "uscCode",
|
|
a.hasUscc AS "hasUscc",
|
|
a.hasUscc AS "hasUscc",
|
|
|
|
+ a.address AS "address",
|
|
|
|
+ a.our_bank AS "ourBank",
|
|
|
|
+ a.bank_number AS "bankNumber",
|
|
a.contractTypeDoc,
|
|
a.contractTypeDoc,
|
|
a.contractFeeDoc,
|
|
a.contractFeeDoc,
|
|
a.charge_company_name AS "chargeCompanyName",
|
|
a.charge_company_name AS "chargeCompanyName",
|
|
@@ -1487,6 +1523,9 @@
|
|
a.telephone AS "telephone",
|
|
a.telephone AS "telephone",
|
|
a.uscCode AS "uscCode",
|
|
a.uscCode AS "uscCode",
|
|
a.hasUscc AS "hasUscc",
|
|
a.hasUscc AS "hasUscc",
|
|
|
|
+ a.address AS "address",
|
|
|
|
+ a.our_bank AS "ourBank",
|
|
|
|
+ a.bank_number AS "bankNumber",
|
|
a.is_total AS "isTotal",
|
|
a.is_total AS "isTotal",
|
|
a.total_contract_id AS "totalContractId",
|
|
a.total_contract_id AS "totalContractId",
|
|
a.status AS "status",
|
|
a.status AS "status",
|
|
@@ -1564,6 +1603,9 @@
|
|
a.telephone AS "telephone",
|
|
a.telephone AS "telephone",
|
|
a.uscCode AS "uscCode",
|
|
a.uscCode AS "uscCode",
|
|
a.hasUscc AS "hasUscc",
|
|
a.hasUscc AS "hasUscc",
|
|
|
|
+ a.address AS "address",
|
|
|
|
+ a.our_bank AS "ourBank",
|
|
|
|
+ a.bank_number AS "bankNumber",
|
|
a.is_total AS "isTotal",
|
|
a.is_total AS "isTotal",
|
|
a.total_contract_id AS "totalContractId",
|
|
a.total_contract_id AS "totalContractId",
|
|
a.status AS "status",
|
|
a.status AS "status",
|
|
@@ -1593,8 +1635,12 @@
|
|
FROM work_contract_info a
|
|
FROM work_contract_info a
|
|
<include refid="workContractInfoJoins"/>
|
|
<include refid="workContractInfoJoins"/>
|
|
LEFT JOIN work_contract_record wcr ON wcr.contract_info_id = a.id
|
|
LEFT JOIN work_contract_record wcr ON wcr.contract_info_id = a.id
|
|
- WHERE a.contract_num = #{contractNum}
|
|
|
|
- and a.id != #{id}
|
|
|
|
|
|
+ <where >
|
|
|
|
+ <if test="contractNum != null and contractNum != ''">
|
|
|
|
+ and a.contract_num = #{contractNum}
|
|
|
|
+ </if>
|
|
|
|
+ and a.id != #{id}
|
|
|
|
+ </where>
|
|
order by a.id
|
|
order by a.id
|
|
limit 1
|
|
limit 1
|
|
</select>
|
|
</select>
|
|
@@ -1666,6 +1712,9 @@ UPDATE work_client_linkman SET
|
|
a.telephone AS "telephone",
|
|
a.telephone AS "telephone",
|
|
a.uscCode AS "uscCode",
|
|
a.uscCode AS "uscCode",
|
|
a.hasUscc AS "hasUscc",
|
|
a.hasUscc AS "hasUscc",
|
|
|
|
+ a.address AS "address",
|
|
|
|
+ a.our_bank AS "ourBank",
|
|
|
|
+ a.bank_number AS "bankNumber",
|
|
a.is_total AS "isTotal",
|
|
a.is_total AS "isTotal",
|
|
a.total_contract_id AS "totalContractId",
|
|
a.total_contract_id AS "totalContractId",
|
|
a.status AS "status",
|
|
a.status AS "status",
|