|
|
@@ -23,7 +23,7 @@ |
|
|
where del_status = 0 |
|
|
where del_status = 0 |
|
|
<if test=" null != id "> and `id` = #{id} </if> |
|
|
<if test=" null != id "> and `id` = #{id} </if> |
|
|
<if test=" null != tenantId and '' != tenantId"> |
|
|
<if test=" null != tenantId and '' != tenantId"> |
|
|
and (`tenant_id` = 0 or`tenant_id` = #{tenantId}) |
|
|
|
|
|
|
|
|
and (`tenant_id` = 1 or`tenant_id` = #{tenantId}) |
|
|
</if> |
|
|
</if> |
|
|
<if test=" null != name and '' != name "> and `name` like concat('%', #{name},'%') </if> |
|
|
<if test=" null != name and '' != name "> and `name` like concat('%', #{name},'%') </if> |
|
|
<if test=" null != type"> |
|
|
<if test=" null != type"> |
|
|
@@ -46,6 +46,12 @@ |
|
|
left join wx_miniapp_theme_value mtv on mtv.miniapp_deploy_id = mtd.id and mtv.miniapp_theme_id = #{id}; |
|
|
left join wx_miniapp_theme_value mtv on mtv.miniapp_deploy_id = mtd.id and mtv.miniapp_theme_id = #{id}; |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
<select id="findDefaultList" resultType="com.iformall.domain.po.WxMiniappThemeValue"> |
|
|
|
|
|
SELECT `name`, remarks,default_icon icon,default_style styleClass |
|
|
|
|
|
FROM wx_miniapp_theme_deploy |
|
|
|
|
|
where theme_type = #{themeType}; |
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
<update id="updateDel" parameterType="com.iformall.domain.po.WxMiniappTheme"> |
|
|
<update id="updateDel" parameterType="com.iformall.domain.po.WxMiniappTheme"> |
|
|
update wx_miniapp_theme set `del_status` = 1, update_date = now() where id = #{id}; |
|
|
update wx_miniapp_theme set `del_status` = 1, update_date = now() where id = #{id}; |
|
|
</update> |
|
|
</update> |
|
|
@@ -73,7 +79,8 @@ |
|
|
FROM wx_miniapp_theme_deploy mtd |
|
|
FROM wx_miniapp_theme_deploy mtd |
|
|
left join wx_miniapp_theme_value mtv on mtv.miniapp_deploy_id = mtd.id |
|
|
left join wx_miniapp_theme_value mtv on mtv.miniapp_deploy_id = mtd.id |
|
|
left join wx_theme_mall tm on tm.theme_id = mtv.miniapp_theme_id and tm.theme_type = mtd.theme_type |
|
|
left join wx_theme_mall tm on tm.theme_id = mtv.miniapp_theme_id and tm.theme_type = mtd.theme_type |
|
|
where mtd.theme_type = #{themeType} and tm.tenant_id = #{tenantId} |
|
|
|
|
|
|
|
|
left join wx_miniapp_theme mt on tm.id = tm.theme_id |
|
|
|
|
|
where mtd.theme_type = #{themeType} and mt.del_status = 0 and tm.tenant_id = #{tenantId} |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|