select mid, temp_name, temp_type, remark, create_by, create_time, update_by, update_time, deleted
from tj_survey_template
insert into tj_survey_template
temp_name,
temp_type,
remark,
create_by,
create_time,
update_by,
update_time,
deleted,
#{tempName},
#{tempType},
#{remark},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{deleted},
update tj_survey_template
temp_name =
#{tempName},
temp_type =
#{tempType},
remark =
#{remark},
create_by =
#{createBy},
create_time =
#{createTime},
update_by =
#{updateBy},
update_time =
#{updateTime},
deleted =
#{deleted},
where mid = #{mid}
delete
from tj_survey_template where mid = #{mid}
delete from tj_survey_template where mid in
#{mid}
delete from tj_survey_temp_ques where mid in
#{mid}
delete
from tj_survey_temp_ques where mid = #{mid}
insert into tj_survey_temp_ques
( tqid , mid , qid , qname , create_by , create_time , update_by , update_time , deleted) values
( #{item.tqid
}, #{item.mid
}, #{item.qid
}, #{item.qname
}, #{item.createBy
}, #{item.createTime
}, #{item.updateBy
}, #{item.updateTime
}, #{item.deleted
})