insert into bns_czl_pm_device_type( type_name,pId,IS_ACTIVE,current_day) values ( #{name},#{parentId},'1',now()) update bns_czl_pm_device_type type_name =#{name}, where ID = #{id} update bns_czl_pm_device_type set IS_ACTIVE = 0 WHERE ID = #{id}