INSERT INTO tb_project
pro_id,
user_id,
sign_code,
bid_code,
pro_code,
pro_name,
pro_cost,
sg_unit,
jl_unit,
pro_type,
pro_scale,
manager,
pro_brief,
now_gx,
status,
plan_start_time,
plan_end_time,
start_time,
end_time,
org,
del_flag,
bid_type,
sg_manage,
jl_manage,
sub_type,
tc_date,
#{proId},
#{userId},
#{signCode},
#{bidCode},
#{proCode},
#{proName},
#{proCost},
#{sgUnit},
#{jlUnit},
#{proType},
#{proScale},
#{manager},
#{proBrief},
#{nowGx},
#{status},
#{planStartTime},
#{planEndTime},
#{startTime},
#{endTime},
#{org},
0,
#{bidType},
#{sgManage},
#{jlManage},
#{subType},
#{tcDate},
UPDATE tb_project SET sign_code = #{signCode},bid_code = #{bidCode},pro_code = #{proCode},
pro_name = #{proName},pro_cost = #{proCost},sg_unit = #{sgUnit},jl_unit = #{jlUnit},pro_type = #{proType},
pro_scale = #{proScale},manager = #{manager},now_gx = #{nowGx},status = #{status},plan_start_time = #{planStartTime},
plan_end_time = #{planEndTime},start_time = #{startTime},end_time = #{endTime},org = #{org},bid_type = #{bidType},
sg_manage = #{sgManage},jl_manage = #{jlManage},sub_type = #{subType},tc_date = #{tcDate},pro_brief = #{proBrief} WHERE pro_id = #{proId}
INSERT INTO tb_resource_file
id,
file_type,
file_id,
file_suffix,
file_name,
source_id,
source_type,
del_flag,
update_time,
#{resourceId},
#{fileType},
#{fileId},
#{fileSuffix},
#{fileName},
#{sourceId},
#{sourceType},
0,
#{updateTime},
INSERT INTO tb_gx_plan
plan_id,
bid_code,
gx_id,
gx_weight,
plan_start_time,
plan_end_time,
start_time,
end_time,
dela_reason,
del_flag,
#{planId},
#{bidCode},
#{gxId},
#{gxWeight},
#{planStartTime},
#{planEndTime},
#{startTime},
#{endTime},
#{delaReason},
0,
UPDATE tb_gx_plan
gx_id = #{gxId},
gx_weight = #{gxWeight},
plan_start_time = #{planStartTime},
plan_end_time = #{planEndTime},
start_time = #{startTime},
end_time = #{endTime},
dela_reason = #{delaReason},
WHERE plan_id = #{planId}
UPDATE tb_project
start_time = #{startTime},
end_time = #{endTime},
status = '完工',
WHERE pro_id = #{proId}
UPDATE tb_project SET del_flag = 1 WHERE pro_id = #{proId}
# DELETE FROM tb_gx_plan WHERE
DELETE FROM tb_resource_file WHERE file_id = #{fileId}
DELETE FROM tb_gx_plan WHERE plan_id = #{planId}