select id, task_code, standard_title, standard_sort,(select count(*) from by_day_flow_unscramble where standard_id=by_day_flow_standard.id) unscramble_count, createuser, createtime, updateuser, updatetime from by_day_flow_standard insert into by_day_flow_standard task_code, standard_title, standard_sort, createuser, createtime, updateuser, updatetime, #{taskCode}, #{standardTitle}, #{standardSort}, #{createuser}, #{createtime}, #{updateuser}, #{updatetime}, update by_day_flow_standard task_code = #{taskCode}, standard_title = #{standardTitle}, standard_sort = #{standardSort}, createuser = #{createuser}, createtime = #{createtime}, updateuser = #{updateuser}, updatetime = #{updatetime}, where id = #{id} delete from by_day_flow_standard where id = #{id} delete from by_day_flow_standard where id in #{id}