a.id AS "id",
a.create_by AS "createBy.id",
a.create_date AS "createDate",
a.update_by AS "updateBy.id",
a.update_date AS "updateDate",
a.remarks AS "remarks",
a.del_flag AS "delFlag",
a.company_id AS "companyId",
a.office_id AS "officeId",
a.project_id AS "project.id",
a.name AS "name",
a.number AS "number",
a.type AS "type",
a.achievement_type AS "achievementType",
a.review_standard AS "reviewStandard",
a.sign_cost_one AS "signCostOne.id",
a.sign_cost_two AS "signCostTwo.id",
a.master AS "master.id",
a.report_date AS "reportDate",
a.file_status AS "fileStatus",
a.status AS "status",
a.invalid_status AS "invalidStatus",
a.report_type AS "reportType",
a.process_instance_id AS "processInstanceId",
a.invalid_process_instance_id AS "invalidProcessInstanceId",
m.name AS "master.name",
a.number_path as "numberPath",
a.update_process_instance_id as "upId",
a.review_fee AS "reviewFee",
a.approval_fee AS "approvalFee",
a.contract_fee AS "contractFee",
a.verify_fee AS "verifyFee",
a.verify_rate AS "verifyRate",
a.consult_fee AS "consultFee",
a.building_fee AS "buildingFee",
a.install_fee AS "installFee"
LEFT JOIN sys_user m ON m.id = a.master
INSERT INTO project_report_data(
id,
create_by,
create_date,
update_by,
update_date,
remarks,
del_flag,
company_id,
office_id,
project_id,
name,
number,
type,
achievement_type,
review_standard,
sign_cost_one,
sign_cost_two,
master,
report_date,
file_status,
status,
invalid_status,
report_type,
number_path,
review_fee,
approval_fee,
contract_fee,
verify_fee,
verify_rate,
consult_fee,
building_fee,
install_fee
) VALUES (
#{id},
#{createBy.id},
#{createDate},
#{updateBy.id},
#{updateDate},
#{remarks},
#{delFlag},
#{companyId},
#{officeId},
#{project.id},
#{name},
#{number},
#{type},
#{achievementType},
#{reviewStandard},
#{signCostOne.id},
#{signCostTwo.id},
#{master.id},
#{reportDate},
#{fileStatus},
#{status},
#{invalidStatus},
#{reportType},
#{numberPath},
#{reviewFee},
#{approvalFee},
#{contractFee},
#{verifyFee},
#{verifyRate},
#{consultFee},
#{buildingFee},
#{installFee}
)
UPDATE project_report_data SET
update_by = #{updateBy.id},
update_date = #{updateDate},
remarks = #{remarks},
company_id = #{companyId},
office_id = #{officeId},
project_id = #{project.id},
name = #{name},
number = #{number},
type = #{type},
achievement_type = #{achievementType},
review_standard = #{reviewStandard},
sign_cost_one = #{signCostOne.id},
sign_cost_two = #{signCostTwo.id},
master = #{master.id},
report_date = #{reportDate},
status = #{status},
invalid_status = #{invalidStatus},
report_type = #{reportType},
number_path = #{numberPath},
review_fee = #{reviewFee},
approval_fee = #{approvalFee},
contract_fee = #{contractFee},
verify_fee = #{verifyFee},
verify_rate = #{verifyRate},
consult_fee = #{consultFee},
building_fee = #{buildingFee},
install_fee = #{installFee}
WHERE id = #{id}
UPDATE project_report_data SET
file_status = #{fileStatus}
WHERE id = #{id}
UPDATE project_report_data SET
update_by = #{updateBy.id},
update_date = #{updateDate},
remarks = #{remarks},
invalid_status = #{invalidStatus},
status = #{status}
WHERE id = #{id}
DELETE FROM project_report_data
WHERE id = #{id}
UPDATE project_report_data SET
del_flag = #{DEL_FLAG_DELETE}
WHERE id = #{id}
UPDATE project_report_data SET
process_instance_id = #{processInstanceId}
WHERE id = #{id}
UPDATE project_report_data SET
invalid_process_instance_id = #{invalidProcessInstanceId}
WHERE id = #{id}
DELETE FROM project_report_content WHERE report_id = #{reportId} AND type = '1'
DELETE FROM project_report_content WHERE report_id = #{reportId} AND type = '3'
DELETE FROM project_content_change WHERE info_id = #{infoId}
UPDATE project_report_data SET
number = #{number},number_path = #{url}
WHERE id = #{reportId}
update project_report_data
set update_process_instance_id = #{upId}
id = #{id}