`id`,`tenant_id`,`name`,`remarks`,`preview_url`,`type`,`mould_type`,`create_date`,`update_date` where del_status = 0 and `id` = #{id} and (`tenant_id` = 1 or`tenant_id` = #{tenantId}) and `name` like concat('%', #{name},'%') and `type` = #{type} and `mould_type` = #{mouldType} order by id asc update wx_miniapp_theme set `del_status` = 1, update_date = now() where id = #{id}; delete from wx_miniapp_theme_value where miniapp_theme_id = #{id}; INSERT INTO wx_miniapp_theme_value (id,miniapp_theme_id,miniapp_deploy_id,icon,style_class) VALUES (#{id},#{miniappThemeId},#{miniappDeployId},#{icon},#{styleClass});