商户应用管理

This commit is contained in:
lu7213 committed 2026-10-08 09:45:11 -04:00
1 parent 71035c7fa0
commit 02664623f7
8 files changed
+300 -28

No files matched your search

@@ -30,7 +30,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectAppsList" parameterType="Apps" resultMap="AppsResult">
<include refid="selectAppsVo"/>
<where>
<where>
and deleted_at is null
<if test="userId != null "> and user_id = #{userId}</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="description != null and description != ''"> and description = #{description}</if>
@@ -52,8 +53,24 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectAppsById" parameterType="Long" resultMap="AppsResult">
<include refid="selectAppsVo"/>
where id = #{id}
where id = #{id} and deleted_at is null
</select>
<update id="updatePublicKey">
update apps
set public_key = #{publicKey}, updated_at = #{updatedAt}
where id = #{id} and deleted_at is null
</update>
<update id="softDeleteAppsByIds">
update apps
set status = 0, deleted_at = #{deletedAt}, updated_at = #{deletedAt}
where deleted_at is null
and id in
<foreach item="id" collection="ids" open="(" separator="," close=")">
#{id}
</foreach>
</update>
<insert id="insertApps" parameterType="Apps" useGeneratedKeys="true" keyProperty="id">
insert into apps
@@ -115,7 +132,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="googlePicture != null">google_picture = #{googlePicture},</if>
<if test="distTokenAddress != null">dist_token_address = #{distTokenAddress},</if>
</trim>
where id = #{id}
where id = #{id} and deleted_at is null
</update>
<delete id="deleteAppsById" parameterType="Long">
@@ -128,4 +145,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{id}
</foreach>
</delete>
</mapper>
</mapper>