You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.2 KiB

<?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.example.demo.mapper.coin.ExportMapper">
<update id="updateExportData">
UPDATE export
<set>
<if test="state != null">state = #{state},</if>
<if test="url != null and url != ''">url = #{url},</if>
<if test="reason != null and reason != ''">reason = #{reason},</if>
<if test="dataNum != null and dataNum != ''">data_num = #{dataNum},</if>
</set>
WHERE id = #{recordId}
</update>
<select id="getExportData" resultType="com.example.demo.domain.vo.coin.ExportVo">
select id,file_name,url,state from export where id=#{recordId}
</select>
<select id="getExportRecord" resultType="com.example.demo.domain.entity.Export">
select * from export
<where>
<if test="account != null">
and account = #{account}
</if>
<if test="type != null">
and type = #{type}
</if>
</where>
order by create_time desc
</select>
</mapper>