mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-17 05:39:50 +08:00
add 新增sim卡充值记录实体类
This commit is contained in:
@@ -0,0 +1,96 @@
|
||||
<?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.jsowell.pile.mapper.SimRechargeRecordMapper">
|
||||
|
||||
<resultMap type="com.jsowell.pile.domain.SimRechargeRecord" id="SimRechargeRecordResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="rechargeOrderCode" column="recharge_order_code" />
|
||||
<result property="iccId" column="iccid" />
|
||||
<result property="payAmount" column="pay_amount" />
|
||||
<result property="status" column="status" />
|
||||
<result property="orderAmount" column="order_amount" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSimRechargeRecordVo">
|
||||
select id, recharge_order_code, iccid, pay_amount, status, order_amount, create_by, create_time, update_by, update_time, del_flag from sim_recharge_record
|
||||
</sql>
|
||||
|
||||
<select id="selectSimRechargeRecordList" parameterType="com.jsowell.pile.domain.SimRechargeRecord" resultMap="SimRechargeRecordResult">
|
||||
<include refid="selectSimRechargeRecordVo"/>
|
||||
<where>
|
||||
<if test="rechargeOrderCode != null and rechargeOrderCode != ''"> and recharge_order_code = #{rechargeOrderCode}</if>
|
||||
<if test="iccId != null and iccId != ''"> and iccid = #{iccId}</if>
|
||||
<if test="payAmount != null "> and pay_amount = #{payAmount}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
<if test="orderAmount != null "> and order_amount = #{orderAmount}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSimRechargeRecordById" parameterType="Long" resultMap="SimRechargeRecordResult">
|
||||
<include refid="selectSimRechargeRecordVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertSimRechargeRecord" parameterType="com.jsowell.pile.domain.SimRechargeRecord" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into sim_recharge_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="rechargeOrderCode != null">recharge_order_code,</if>
|
||||
<if test="iccId != null">iccid,</if>
|
||||
<if test="payAmount != null">pay_amount,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="orderAmount != null">order_amount,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="rechargeOrderCode != null">#{rechargeOrderCode},</if>
|
||||
<if test="iccId != null">#{iccId},</if>
|
||||
<if test="payAmount != null">#{payAmount},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="orderAmount != null">#{orderAmount},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSimRechargeRecord" parameterType="com.jsowell.pile.domain.SimRechargeRecord">
|
||||
update sim_recharge_record
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="rechargeOrderCode != null">recharge_order_code = #{rechargeOrderCode},</if>
|
||||
<if test="iccId != null">iccid = #{iccid},</if>
|
||||
<if test="payAmount != null">pay_amount = #{payAmount},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="orderAmount != null">order_amount = #{orderAmount},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSimRechargeRecordById" parameterType="Long">
|
||||
delete from sim_recharge_record where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSimRechargeRecordByIds" parameterType="String">
|
||||
delete from sim_recharge_record where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user