UPDATE EPC_COST_TYPE_TEMPLATE_GROUP SET name = #{name}, cost_desc = #{costDesc}, form_id_str = #{formIdStr} WHERE id = #{id} INSERT INTO EPC_COST_TYPE_TEMPLATE_GROUP ( NAME, COST_DESC, INS_T, INS_P, UPD_T, UPD_P, DATA_START ) VALUE ( #{name}, #{costDesc}, #{insT}, #{insP}, #{updT}, #{updP}, #{dataStart} ) update epc_cost_supp_stander_template SET data_start=99 where ct_id #{sup.ctId} and cg_id #{sup.cgId} update epc_cost_app_stander_def_template SET data_start=99 where ss_Id in( select id from epc_cost_supp_stander_template where ct_id #{sup.ctId} and cg_id #{sup.cgId} ) insert into epc_cost_supp_stander_template (id, cg_id,name,type,type_name,sub_type,rule,ct_id,data_start,ins_p,ins_t,upd_p,upd_t) values (null,#{supp.cgId}, #{supp.name},#{supp.type},#{supp.typeName},#{supp.subType},#{supp.rule},#{supp.ctId},#{supp.dataStart},#{supp.insP},#{supp.insT},#{supp.updP},#{supp.updT}) insert into epc_cost_app_stander_def_template (el_iden,mas_define_code,type,def_type,def_name,def_value,row_no,col_no,squ,show_flag,relation,inverse, show_count,count,ss_id,ins_p,ins_t,upd_p,upd_t,data_start) values (#{app.elIden},#{app.masDefineCode},#{app.type},#{app.defType},#{app.defName},#{app.asDefValue},#{app.rowNo},#{app.colNo},#{app.squ},#{app.showFlag},#{app.relation},#{app.inverse},#{app.showCount},#{app.count},#{supp.id},#{supp.insP},#{supp.insT},#{supp.updP},#{supp.updT},#{supp.dataStart})