Initial commit

This commit is contained in:
2026-04-23 16:58:11 +08:00
commit 267eba1eca
2582 changed files with 273338 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.thirdparty.common.mapper.ApiNoticeMapper">
<insert id="addNotice" parameterType="com.ruoyi.domain.other.TtNotice">
insert into tt_notice
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="userId != null">user_id,</if>
<if test="title != null and title != ''">title,</if>
<if test="content != null and content != ''">content,</if>
<if test="read != null">`read`,</if>
<if test="createTime != null">create_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="userId != null">#{userId},</if>
<if test="title != null and title != ''">#{title},</if>
<if test="content != null and content != ''">#{content},</if>
<if test="read != null">#{read},</if>
<if test="createTime != null">#{createTime},</if>
</trim>
</insert>
</mapper>

View File

@@ -0,0 +1,114 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.thirdparty.wechat.mapper.TianXinMapper">
<insert id="insertTianXinOrder" parameterType="com.ruoyi.thirdparty.wechat.entity.TianXinOrder">
insert into tianxin_order
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="orderId != null">order_id,</if>
<if test="payType != null">pay_type,</if>
<if test="goodsId != null">goods_id,</if>
<if test="goodsPrice != null">goods_price,</if>
<if test="goodsNum != null">goods_num,</if>
<if test="totalAmount != null">total_amount,</if>
<if test="userIp != null">user_ip,</if>
<if test="payStatus != null">pay_status,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
<if test="userId != null">user_id,</if>
<if test="userName != null">user_name,</if>
<if test="remark != null">remark,</if>
<if test="callBackOrderId != null">call_back_order_id,</if>
<if test="callBackMsg != null">call_back_msg,</if>
<if test="callBackStatus != null">call_back_status,</if>
<if test="sign != null">sign,</if>
<if test="subject != null">subject,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="orderId != null">#{orderId},</if>
<if test="payType != null">#{payType},</if>
<if test="goodsId != null">#{goodsId},</if>
<if test="goodsPrice != null">#{goodsPrice},</if>
<if test="goodsNum != null">#{goodsNum},</if>
<if test="totalAmount != null">#{totalAmount},</if>
<if test="userIp != null">#{userIp},</if>
<if test="payStatus != null">#{payStatus},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="userId != null">#{userId},</if>
<if test="userName != null">#{userName},</if>
<if test="remark != null">#{remark},</if>
<if test="callBackOrderId != null">#{callBackOrderId},</if>
<if test="callBackMsg != null">#{callBackMsg},</if>
<if test="callBackStatus != null">#{callBackStatus},</if>
<if test="sign != null">#{sign},</if>
<if test="subject != null">#{subject},</if>
</trim>
</insert>
<update id="updateTianXinOrder" parameterType="com.ruoyi.thirdparty.wechat.entity.TianXinOrder">
update tianxin_order
<trim prefix="SET" suffixOverrides=",">
<if test="payType != null">pay_type = #{payType},</if>
<if test="goodsId != null">goods_id = #{goodsId},</if>
<if test="goodsPrice != null">goods_price = #{goodsPrice},</if>
<if test="goodsNum != null">goods_num = #{goodsNum},</if>
<if test="totalAmount != null">total_amount = #{totalAmount},</if>
<if test="userIp != null">user_ip = #{userIp},</if>
<if test="payStatus != null">pay_status = #{payStatus},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="userId != null">user_id = #{userId},</if>
<if test="userName != null">user_name = #{userName},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="callBackOrderId != null">call_back_order_id = #{callBackOrderId},</if>
<if test="callBackMsg != null">call_back_msg = #{callBackMsg},</if>
<if test="callBackStatus != null">call_back_status = #{callBackStatus},</if>
<if test="sign != null">sign = #{sign},</if>
<if test="subject != null">subject = #{subject},</if>
</trim>
where order_id = #{orderId}
</update>
<delete id="deleteDataTianXinOrder">
<![CDATA[
DELETE
FROM tianxin_order
WHERE pay_status = 0
AND create_time < DATE_SUB(NOW(), INTERVAL 10 MINUTE);
]]>
</delete>
<delete id="deleteDataTtCoinRechargeRecord">
<![CDATA[
DELETE
FROM tt_coin_recharge_record
WHERE order_no LIKE '%AL'
AND pay_status = 0
AND create_time < DATE_SUB(NOW(), INTERVAL 10 MINUTE);
]]>
</delete>
<select id="selectTianXinOrderByOrderId" resultType="com.ruoyi.thirdparty.wechat.entity.TianXinOrder">
select order_id as orderId,
pay_type as payType,
goods_id as goodsId,
goods_price as goodsPrice,
goods_num as goodsNum,
total_amount as totalAmount,
user_ip as userIp,
pay_status as payStatus,
create_time as createTime,
update_time as updateTime,
user_id as userId,
user_name as userName,
remark as remark,
call_back_order_id as callBackOrderId,
call_back_msg as callBackMsg,
call_back_status as callBackStatus
from tianxin_order
where order_id = #{sdorderno}
</select>
</mapper>

View File

@@ -0,0 +1,180 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.thirdparty.wechat.mapper.TtCoinRechargeRecordMapper">
<resultMap type="com.ruoyi.thirdparty.wechat.entity.TtCoinRechargeRecord" id="TtCoinRechargeRecordResult">
<result property="id" column="id" />
<result property="coin" column="coin" />
<result property="payStatus" column="pay_status" />
<result property="uid" column="uid" />
<result property="uname" column="uname" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
<result property="orderNo" column="order_no" />
<result property="callbackNo" column="callback_no" />
<result property="callbackMsg" column="callback_msg" />
</resultMap>
<sql id="selectTtCoinRechargeRecordVo">
select
id,
coin,
pay_status,
uid,
uname,
create_time,
update_time,
order_no,
callback_no,
callback_msg
from tt_coin_recharge_record
</sql>
<select id="selectTtCoinRechargeRecordList" parameterType="com.ruoyi.thirdparty.wechat.entity.TtCoinRechargeRecord" resultMap="TtCoinRechargeRecordResult">
<include refid="selectTtCoinRechargeRecordVo"/>
<where>
<if test="coin != null "> and coin = #{coin}</if>
<if test="payStatus != null "> and pay_status = #{payStatus}</if>
<if test="uid != null "> and uid = #{uid}</if>
<if test="uname != null and uname != ''"> and uname like concat('%', #{uname}, '%')</if>
<if test="orderNo != null and orderNo != ''"> and order_no = #{orderNo}</if>
<if test="callbackNo != null and callbackNo != ''"> and callback_no = #{callbackNo}</if>
<if test="callbackMsg != null and callbackMsg != ''"> and callback_msg = #{callbackMsg}</if>
</where>
order BY create_time DESC
</select>
<select id="selectTtCoinRechargeRecordById" parameterType="Long" resultMap="TtCoinRechargeRecordResult">
<include refid="selectTtCoinRechargeRecordVo"/>
where id = #{id}
</select>
<select id="selectTtCoinRechargeRecordByOrder" parameterType="String" resultMap="TtCoinRechargeRecordResult">
<include refid="selectTtCoinRechargeRecordVo"/>
where order_no = #{orderNo}
</select>
<select id="selectTtCoinRechargeList" resultType="com.ruoyi.thirdparty.wechat.entity.TtCoinRechargeRecord"
parameterType="com.ruoyi.thirdparty.wechat.entity.TtCoinRechargeParam">
<include refid="selectTtCoinRechargeRecordVo"/>
<where>
<if test="coin != null "> and coin = #{coin}</if>
<if test="payStatus != null "> and pay_status = #{payStatus}</if>
<if test="uid != null "> and uid = #{uid}</if>
<if test="uname != null and uname != ''"> and uname like concat('%', #{uname}, '%')</if>
<if test="orderNo != null and orderNo != ''"> and order_no = #{orderNo}</if>
<if test="beginTime != null and beginTime != ''"> <![CDATA[ and create_time >= #{beginTime} ]]></if>
<if test="endTime != null and endTime != ''"> <![CDATA[ and create_time <= #{endTime} ]]></if>
<if test="minCoin != null "> <![CDATA[ and coin > #{minCoin} ]]> </if>
<if test="maxCoin != null "> <![CDATA[ and coin <= #{maxCoin} ]]> </if>
</where>
</select>
<select id="selectTtCoinRechargeAmout" resultType="java.math.BigDecimal"
parameterType="com.ruoyi.thirdparty.wechat.entity.TtCoinRechargeParam">
select sum(coin) from tt_coin_recharge_record
<where>
<if test="coin != null "> and coin = #{coin}</if>
<if test="payStatus != null "> and pay_status = #{payStatus}</if>
<if test="uid != null "> and uid = #{uid}</if>
<if test="uname != null and uname != ''"> and uname like concat('%', #{uname}, '%')</if>
<if test="orderNo != null and orderNo != ''"> and order_no = #{orderNo}</if>
<if test="beginTime != null and beginTime != ''"> <![CDATA[ and create_time <= #{beginTime} ]]></if>
<if test="endTime != null and endTime != ''"> <![CDATA[ and create_time >= #{endTime} ]]></if>
<if test="minCoin != null "> <![CDATA[ and coin > #{minCoin} ]]> </if>
<if test="maxCoin != null "> <![CDATA[ and coin <= #{maxCoin} ]]></if>
</where>
</select>
<select id="selectTtCoinRechargeRecordByUid" resultType="com.ruoyi.thirdparty.wechat.entity.TtCoinRechargeRecord">
SELECT
tcrr.id,
tcrr.coin,
tcrr.pay_status payStatus,
tcrr.uid,
tcrr.uname,
tcrr.create_time createTime,
tcrr.update_time updateTime,
tcrr.order_no orderNo,
tcrr.callback_no callbackNo,
tcrr.callback_msg callbackMsg
FROM `tt_coin_recharge_record` tcrr
WHERE tcrr.uid=#{id} AND tcrr.pay_status='1'
</select>
<select id="getUserIsRecharge" resultType="com.ruoyi.thirdparty.wechat.entity.TtCoinRechargeRecord">
SELECT
tcrr.id,
tcrr.coin,
tcrr.pay_status payStatus,
tcrr.uid,
tcrr.uname,
tcrr.create_time createTime,
tcrr.update_time updateTime,
tcrr.order_no orderNo,
tcrr.callback_no callbackNo,
tcrr.callback_msg callbackMsg
FROM `tt_coin_recharge_record` tcrr
WHERE tcrr.uid=#{id} AND tcrr.pay_status='2'
</select>
<insert id="insertTtCoinRechargeRecord" parameterType="com.ruoyi.thirdparty.wechat.entity.TtCoinRechargeRecord">
insert into tt_coin_recharge_record
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="coin != null">coin,</if>
<if test="payStatus != null">pay_status,</if>
<if test="uid != null">uid,</if>
<if test="uname != null">uname,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
<if test="orderNo != null">order_no,</if>
<if test="callbackNo != null">callback_no,</if>
<if test="callbackMsg != null">callback_msg,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="coin != null">#{coin},</if>
<if test="payStatus != null">#{payStatus},</if>
<if test="uid != null">#{uid},</if>
<if test="uname != null">#{uname},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="orderNo != null">#{orderNo},</if>
<if test="callbackNo != null">#{callbackNo},</if>
<if test="callbackMsg != null">#{callbackMsg},</if>
</trim>
</insert>
<update id="updateTtCoinRechargeRecord" parameterType="com.ruoyi.thirdparty.wechat.entity.TtCoinRechargeRecord">
update tt_coin_recharge_record
<trim prefix="SET" suffixOverrides=",">
<if test="coin != null">coin = #{coin},</if>
<if test="payStatus != null">pay_status = #{payStatus},</if>
<if test="uid != null">uid = #{uid},</if>
<if test="uname != null">uname = #{uname},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="orderNo != null">order_no = #{orderNo},</if>
<if test="callbackNo != null">callback_no = #{callbackNo},</if>
<if test="callbackMsg != null">callback_msg = #{callbackMsg},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteTtCoinRechargeRecordById" parameterType="Long">
delete from tt_coin_recharge_record where id = #{id}
</delete>
<delete id="deleteTtCoinRechargeRecordByIds" parameterType="String">
delete from tt_coin_recharge_record where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@@ -0,0 +1,100 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.thirdparty.wechat.mapper.TtCoinRecordMapper">
<resultMap type="com.ruoyi.thirdparty.wechat.entity.TtCoinRecord" id="TtCoinRecordResult">
<result property="id" column="id" />
<result property="uid" column="uid" />
<result property="uname" column="uname" />
<result property="type" column="type" />
<result property="operType" column="oper_type" />
<result property="rewardType" column="reward_type" />
<result property="money" column="money" />
<result property="time" column="time" />
<result property="status" column="status" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectTtCoinRecordVo">
select id, uid, uname, `type`,oper_type, reward_type, money, `time`, status, create_time, update_time from tt_coin_record
</sql>
<select id="selectTtCoinRecordList" parameterType="com.ruoyi.thirdparty.wechat.entity.TtCoinRecordParam" resultMap="TtCoinRecordResult">
<include refid="selectTtCoinRecordVo"/>
<where>
status=1
<if test="uid != null "> and uid = #{uid}</if>
<if test="uname != null and uname != ''"> and uname like concat('%', #{uname}, '%')</if>
<if test="changeType != null and changeType != ''"> and type = #{changeType}</if>
<if test="rewardType != null and rewardType != ''"> and reward_type = #{rewardType}</if>
<if test="beginTime != null "> and `time` &gt;= #{beginTime}</if>
<if test="endTime != null "> and `time` &lt;= #{endTime}</if>
</where>
ORDER BY create_time DESC
</select>
<select id="selectTtCoinRecordById" parameterType="Long" resultMap="TtCoinRecordResult">
<include refid="selectTtCoinRecordVo"/>
where id = #{id}
</select>
<insert id="insertTtCoinRecord" parameterType="com.ruoyi.thirdparty.wechat.entity.TtCoinRecord" useGeneratedKeys="true" keyProperty="id">
insert into tt_coin_record
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="uid != null">uid,</if>
<if test="uname != null">uname,</if>
<if test="type != null">`type`,</if>
<if test="operType != null">oper_type,</if>
<if test="rewardType != null">reward_type,</if>
<if test="money != null">money,</if>
<if test="time != null">`time`,</if>
<if test="status != null">status,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="uid != null">#{uid},</if>
<if test="uname != null">#{uname},</if>
<if test="type != null">#{type},</if>
<if test="operType != null">#{operType},</if>
<if test="rewardType != null">#{rewardType},</if>
<if test="money != null">#{money},</if>
<if test="time != null">#{time},</if>
<if test="status != null">#{status},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateTtCoinRecord" parameterType="com.ruoyi.thirdparty.wechat.entity.TtCoinRecord">
update tt_coin_record
<trim prefix="SET" suffixOverrides=",">
<if test="uid != null">uid = #{uid},</if>
<if test="uname != null">uname = #{uname},</if>
<if test="type != null">type = #{type},</if>
<if test="operType != null">oper_type = #{operType},</if>
<if test="rewardType != null">reward_type = #{rewardType},</if>
<if test="money != null">money = #{money},</if>
<if test="time != null">`time` = #{time},</if>
<if test="status != null">status = #{status},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteTtCoinRecordById" parameterType="Long">
delete from tt_coin_record where id = #{id}
</delete>
<delete id="deleteTtCoinRecordByIds" parameterType="String">
delete from tt_coin_record where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@@ -0,0 +1,142 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.thirdparty.wechat.mapper.TtUserLsjlMapper">
<resultMap type="com.ruoyi.thirdparty.wechat.entity.TtUserLsjl" id="TtUserLsjlResult">
<result property="id" column="id"/>
<result property="ttUserId" column="tt_user_id"/>
<result property="ttSsUserId" column="tt_ss_user_id"/>
<result property="type" column="type"/>
<result property="vCoinBefore" column="v_coin_before"/>
<result property="vCoinAfter" column="v_coin_after"/>
<result property="vCoinChange" column="v_coin_change"/>
<result property="dCoinBefore" column="d_coin_before"/>
<result property="dCoinChange" column="d_coin_change"/>
<result property="dCoinAfter" column="d_coin_after"/>
<result property="createTime" column="create_time"/>
<result property="updateTime" column="update_time"/>
</resultMap>
<resultMap type="com.ruoyi.thirdparty.wechat.entity.TtUserLsjl" id="TtUserLsjlResult1">
<result property="id" column="id"/>
<result property="ttUserId" column="tt_user_id"/>
<result property="type" column="type"/>
<result property="vCoinBefore" column="v_coin_before"/>
<result property="vCoinAfter" column="v_coin_after"/>
<result property="vCoinChange" column="v_coin_change"/>
<result property="dCoinBefore" column="d_coin_before"/>
<result property="dCoinChange" column="d_coin_change"/>
<result property="dCoinAfter" column="d_coin_after"/>
<result property="createTime" column="create_time"/>
</resultMap>
<sql id="selectTtUserLsjlVo">
select id,
tt_user_id,
type,
v_coin_before,
v_coin_after,
v_coin_change,
d_coin_before,
d_coin_change,
d_coin_after,
create_time,
update_time
from tt_user_lsjl
</sql>
<select id="selectTtUserLsjlList" parameterType="com.ruoyi.thirdparty.wechat.entity.TtUserLsjlParam"
resultMap="TtUserLsjlResult1">
SELECT
( @i := @i + 1 ) id,
tt_user_id,
`type` ,
SUM(v_coin_before) v_coin_before,
SUM(v_coin_after) v_coin_after,
SUM(v_coin_change) v_coin_change,
SUM(d_coin_before) d_coin_before,
SUM(d_coin_change) d_coin_change,
SUM(d_coin_after) d_coin_after,
DATE_FORMAT(create_time, '%Y-%m-%d') create_time
FROM tt_user_lsjl,(SELECT @i := 0 ) AS i
<where>
<if test="ttUserId != null ">and tt_user_id = #{ttUserId}</if>
<if test="ttSsUserId != null ">and tt_ss_user_id = #{ttSsUserId}</if>
<if test="type != null and type != ''">and type = #{type}</if>
<!-- <if test="vCoinBefore != null "> and v_coin_before = #{vCoinBefore}</if>-->
<!-- <if test="vCoinAfter != null "> and v_coin_after = #{vCoinAfter}</if>-->
<!-- <if test="vCoinChange != null "> and v_coin_change = #{vCoinChange}</if>-->
<!-- <if test="dCoinBefore != null "> and d_coin_before = #{dCoinBefore}</if>-->
<!-- <if test="dCoinChange != null "> and d_coin_change = #{dCoinChange}</if>-->
<!-- <if test="dCoinAfter != null "> and d_coin_after = #{dCoinAfter}</if>-->
<if test="createTime != null ">and DAY ( create_time ) = DAY ( #{createTime})</if>
</where>
GROUP BY
tt_user_id, create_time, `type`
</select>
<select id="selectTtUserLsjlById" parameterType="Long" resultMap="TtUserLsjlResult">
<include refid="selectTtUserLsjlVo"/>
where id = #{id}
</select>
<insert id="insertTtUserLsjl" parameterType="com.ruoyi.thirdparty.wechat.entity.TtUserLsjl" useGeneratedKeys="true" keyProperty="id">
insert into tt_user_lsjl
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="ttUserId != null">tt_user_id,</if>
<if test="type != null">type,</if>
<if test="vCoinBefore != null">v_coin_before,</if>
<if test="vCoinAfter != null">v_coin_after,</if>
<if test="vCoinChange != null">v_coin_change,</if>
<if test="dCoinBefore != null">d_coin_before,</if>
<if test="dCoinChange != null">d_coin_change,</if>
<if test="dCoinAfter != null">d_coin_after,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="ttUserId != null">#{ttUserId},</if>
<if test="type != null">#{type},</if>
<if test="vCoinBefore != null">#{vCoinBefore},</if>
<if test="vCoinAfter != null">#{vCoinAfter},</if>
<if test="vCoinChange != null">#{vCoinChange},</if>
<if test="dCoinBefore != null">#{dCoinBefore},</if>
<if test="dCoinChange != null">#{dCoinChange},</if>
<if test="dCoinAfter != null">#{dCoinAfter},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateTtUserLsjl" parameterType="com.ruoyi.thirdparty.wechat.entity.TtUserLsjl">
update tt_user_lsjl
<trim prefix="SET" suffixOverrides=",">
<if test="ttUserId != null">tt_user_id = #{ttUserId},</if>
<if test="type != null">type = #{type},</if>
<if test="vCoinBefore != null">v_coin_before = #{vCoinBefore},</if>
<if test="vCoinAfter != null">v_coin_after = #{vCoinAfter},</if>
<if test="vCoinChange != null">v_coin_change = #{vCoinChange},</if>
<if test="dCoinBefore != null">d_coin_before = #{dCoinBefore},</if>
<if test="dCoinChange != null">d_coin_change = #{dCoinChange},</if>
<if test="dCoinAfter != null">d_coin_after = #{dCoinAfter},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteTtUserLsjlById" parameterType="Long">
delete
from tt_user_lsjl
where id = #{id}
</delete>
<delete id="deleteTtUserLsjlByIds" parameterType="String">
delete from tt_user_lsjl where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>