支付模块-下单接口
This commit is contained in:
@@ -76,6 +76,27 @@
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectNgUserRechargeRecordsByRechargeCode" parameterType="String" resultMap="NgUserRechargeRecordsResult">
|
||||
<include refid="selectNgUserRechargeRecordsVo"/>
|
||||
<where>
|
||||
|
||||
<if test="cardNumber != null and cardNumber != ''"> card_number = #{cardNumber}</if>
|
||||
<if test="userId != null "> and user_id = #{userId}</if>
|
||||
<if test="userName != null and userName != ''"> and user_name like concat('%', #{userName}, '%')</if>
|
||||
<if test="areaCode != null and areaCode != ''"> and area_code = #{areaCode}</if>
|
||||
<if test="type != null "> and type = #{type}</if>
|
||||
<if test="amount != null "> and amount = #{amount}</if>
|
||||
<if test="balance != null "> and balance = #{balance}</if>
|
||||
<if test="rechargeTime != null "> and recharge_time = #{rechargeTime}</if>
|
||||
<if test="rechargeCode != null and rechargeCode != ''"> and recharge_code = #{rechargeCode}</if>
|
||||
<if test="status != null "> and status = #{status}</if>
|
||||
<if test="serialNumber != null and serialNumber != ''"> and serial_number = #{serialNumber}</if>
|
||||
<if test="deviceNumber != null and deviceNumber != ''"> and device_number = #{deviceNumber}</if>
|
||||
<if test="projectId != null "> and project_id = #{projectId}</if>
|
||||
<if test="deptId != null "> and dept_id = #{deptId}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectNgUserRechargeRecordsBySerialNumber" parameterType="NgUserRechargeRecords" resultMap="NgUserRechargeRecordsResult">
|
||||
<include refid="selectNgUserRechargeRecordsVo"/>
|
||||
<where>
|
||||
@@ -168,6 +189,31 @@
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<update id="updateNgUserRechargeRecordsWechat" parameterType="NgUserRechargeRecords">
|
||||
update ng_user_recharge_records
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="userId != null">user_id = #{userId},</if>
|
||||
<if test="userName != null">user_name = #{userName},</if>
|
||||
<if test="cardNumber != null and cardNumber != ''">card_number = #{cardNumber},</if>
|
||||
<if test="areaCode != null">area_code = #{areaCode},</if>
|
||||
<if test="type != null">type = #{type},</if>
|
||||
<if test="amount != null">amount = #{amount},</if>
|
||||
<if test="balance != null">balance = #{balance},</if>
|
||||
<if test="rechargeTime != null">recharge_time = #{rechargeTime},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="serialNumber != null and serialNumber != ''">serial_number = #{serialNumber},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="deviceNumber != null">device_number = #{deviceNumber},</if>
|
||||
<if test="projectId != null">project_id = #{projectId},</if>
|
||||
<if test="deptId != null">dept_id = #{deptId},</if>
|
||||
</trim>
|
||||
where recharge_code = #{rechargeCode}
|
||||
</update>
|
||||
|
||||
<delete id="deleteNgUserRechargeRecordsById" parameterType="Long">
|
||||
delete from ng_user_recharge_records where id = #{id}
|
||||
</delete>
|
||||
|
Reference in New Issue
Block a user