insert into sj_project_quality(
pro_type,pro_structure,total_item,
accept_item,accept_table,accept_qualified_table,
accept_rate,accept_tb_rate,main_accept_num,
main_one_accept_num,main_accept_rate,comm_accept,
comm_one_accept,comm_accept_rate
)values (#{proType},#{proStructure},#{totalItem},#{acceptItem},#{acceptTable},#{acceptQualifiedTable},
#{acceptRate},#{acceptTbRate},#{mainAcceptNum},#{mainOneAcceptNum},#{mainAcceptRate},#{commAccept},
#{commOneAccept},#{commAcceptRate}
)
insert into sj_new_project_quality(
team_name,content,test_day,
test_result,test_report,create_time,project_id
)values (#{teamId},#{content},#{testDay},#{testResult},#{testReport},now(),#{bidCode})
update sj_new_project_quality set team_name=#{teamId},content=#{content},
test_day=#{testDay},test_result=#{testResult},
test_report=#{testReport},
project_id=#{bidCode}
where id=#{id}
insert into sj_new_async_warn(
tx_time, tx_type, content, data_type, remark, create_time, project_id
)values (#{txTime},#{txType},#{content},#{dataType},#{remark},now(),#{bidCode})
delete from sj_new_project_quality where id=#{id}
update sj_project_quality set pro_type=#{proType},pro_structure=#{proStructure},total_item=#{totalItem},
accept_item=#{acceptItem},accept_table=#{acceptTable},accept_qualified_table=#{acceptQualifiedTable},
accept_rate=#{acceptRate},accept_tb_rate=#{acceptTbRate},main_accept_num=#{mainAcceptRate},
main_one_accept_num=#{mainOneAcceptNum},main_accept_rate=#{mainAcceptRate},comm_accept=#{commAccept},
comm_one_accept=#{commOneAccept},comm_accept_rate=#{commAcceptRate}
where id=#{id}
update sj_new_async_warn set
tx_time=#{txTime}, tx_type=#{txType}, content=#{content}, data_type=#{dataType},
remark=#{remark}, create_time=now(), project_id=#{bidCode}
where id=#{id}
delete from sj_new_project_quality where id=#{id}
delete from sj_new_async_warn where id=#{id}