字段新增

This commit is contained in:
lu7213 committed 2026-10-08 05:26:34 -04:00
1 parent cf8220edbd
commit 71035c7fa0
3 files changed
+304 -41

No files matched your search

@@ -13,16 +13,24 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="createdAt" column="created_at" />
<result property="updatedAt" column="updated_at" />
<result property="deletedAt" column="deleted_at" />
<result property="trxBalance" column="trx_balance" />
<result property="usdtBalance" column="usdt_balance" />
<result property="publicKey" column="public_key" />
<result property="creditLimit" column="credit_limit" />
<result property="googleSub" column="google_sub" />
<result property="googleEmail" column="google_email" />
<result property="googleName" column="google_name" />
<result property="googlePicture" column="google_picture" />
<result property="distTokenAddress" column="dist_token_address" />
</resultMap>
<sql id="selectAppsVo">
select id, user_id, name, dist_token_address, description, status, created_at, updated_at, deleted_at from apps
select id, user_id, name, description, status, created_at, updated_at, deleted_at, trx_balance, usdt_balance, public_key, credit_limit, google_sub, google_email, google_name, google_picture, dist_token_address from apps
</sql>
<select id="selectAppsList" parameterType="Apps" resultMap="AppsResult">
<include refid="selectAppsVo"/>
<where>
<where>
<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>
@@ -30,7 +38,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="createdAt != null "> and created_at = #{createdAt}</if>
<if test="updatedAt != null "> and updated_at = #{updatedAt}</if>
<if test="deletedAt != null "> and deleted_at = #{deletedAt}</if>
<if test="distTokenAddress != null and distTokenAddress != ''"> and dist_token_address like concat('%', #{distTokenAddress}, '%')</if>
<if test="trxBalance != null "> and trx_balance = #{trxBalance}</if>
<if test="usdtBalance != null "> and usdt_balance = #{usdtBalance}</if>
<if test="publicKey != null and publicKey != ''"> and public_key = #{publicKey}</if>
<if test="creditLimit != null "> and credit_limit = #{creditLimit}</if>
<if test="googleSub != null and googleSub != ''"> and google_sub = #{googleSub}</if>
<if test="googleEmail != null and googleEmail != ''"> and google_email = #{googleEmail}</if>
<if test="googleName != null and googleName != ''"> and google_name like concat('%', #{googleName}, '%')</if>
<if test="googlePicture != null and googlePicture != ''"> and google_picture = #{googlePicture}</if>
<if test="distTokenAddress != null and distTokenAddress != ''"> and dist_token_address = #{distTokenAddress}</if>
</where>
</select>
@@ -49,6 +65,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="createdAt != null">created_at,</if>
<if test="updatedAt != null">updated_at,</if>
<if test="deletedAt != null">deleted_at,</if>
<if test="trxBalance != null">trx_balance,</if>
<if test="usdtBalance != null">usdt_balance,</if>
<if test="publicKey != null">public_key,</if>
<if test="creditLimit != null">credit_limit,</if>
<if test="googleSub != null">google_sub,</if>
<if test="googleEmail != null">google_email,</if>
<if test="googleName != null">google_name,</if>
<if test="googlePicture != null">google_picture,</if>
<if test="distTokenAddress != null">dist_token_address,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
@@ -59,6 +83,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="createdAt != null">#{createdAt},</if>
<if test="updatedAt != null">#{updatedAt},</if>
<if test="deletedAt != null">#{deletedAt},</if>
<if test="trxBalance != null">#{trxBalance},</if>
<if test="usdtBalance != null">#{usdtBalance},</if>
<if test="publicKey != null">#{publicKey},</if>
<if test="creditLimit != null">#{creditLimit},</if>
<if test="googleSub != null">#{googleSub},</if>
<if test="googleEmail != null">#{googleEmail},</if>
<if test="googleName != null">#{googleName},</if>
<if test="googlePicture != null">#{googlePicture},</if>
<if test="distTokenAddress != null">#{distTokenAddress},</if>
</trim>
</insert>
@@ -73,6 +105,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="createdAt != null">created_at = #{createdAt},</if>
<if test="updatedAt != null">updated_at = #{updatedAt},</if>
<if test="deletedAt != null">deleted_at = #{deletedAt},</if>
<if test="trxBalance != null">trx_balance = #{trxBalance},</if>
<if test="usdtBalance != null">usdt_balance = #{usdtBalance},</if>
<if test="publicKey != null">public_key = #{publicKey},</if>
<if test="creditLimit != null">credit_limit = #{creditLimit},</if>
<if test="googleSub != null">google_sub = #{googleSub},</if>
<if test="googleEmail != null">google_email = #{googleEmail},</if>
<if test="googleName != null">google_name = #{googleName},</if>
<if test="googlePicture != null">google_picture = #{googlePicture},</if>
<if test="distTokenAddress != null">dist_token_address = #{distTokenAddress},</if>
</trim>
where id = #{id}
@@ -88,4 +128,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{id}
</foreach>
</delete>
</mapper>
</mapper>