select state_id, state_name, state_code, color_number, create_time, create_by, update_time, update_by from state_type
insert into state_type
state_id,
state_name,
state_code,
color_number,
create_time,
create_by,
update_time,
update_by,
#{stateId},
#{stateName},
#{stateCode},
#{colorNumber},
#{createTime},
#{createBy},
#{updateTime},
#{updateBy},
update state_type
state_name = #{stateName},
state_code = #{stateCode},
color_number = #{colorNumber},
create_time = #{createTime},
create_by = #{createBy},
update_time = #{updateTime},
update_by = #{updateBy},
where state_id = #{stateId}
delete from state_type where state_id = #{stateId}
delete from state_type where state_id in
#{stateId}