|
|
@ -35,7 +35,7 @@ public interface RateMapper { |
|
|
|
"<if test='currency!=null and currency.length>0'>currency=#{currency},</if>", |
|
|
|
"<if test='exchangeRate!=null'>exchange_rate=#{exchangeRate},</if>", |
|
|
|
"<if test='updateTime!=null'>update_time=#{updateTime},</if>", |
|
|
|
"<if test='adminId!=null'>admin_id=#{adminId},</if>", |
|
|
|
"<if test='updateId!=null'>update_id=#{updateId},</if>", |
|
|
|
"</set>", |
|
|
|
"where rate_id = #{rateId}", |
|
|
|
"</script>" |
|
|
@ -49,9 +49,10 @@ public interface RateMapper { |
|
|
|
|
|
|
|
@Select({ |
|
|
|
"<script>", |
|
|
|
"SELECT r.*, a.name AS adminName", |
|
|
|
"SELECT r.*, a.name AS submitName, u.name AS updateName", |
|
|
|
"FROM rate r", |
|
|
|
"LEFT JOIN admin a ON r.admin_id = a.admin_id", |
|
|
|
"LEFT JOIN admin u ON r.admin_id = u.admin_id", |
|
|
|
"<where>", |
|
|
|
"<if test='rateId != null'>AND r.rate_id = #{rateId}</if>", |
|
|
|
"<if test='startTime != null'>AND r.start_time >= #{startTime}</if>", |
|
|
@ -60,6 +61,7 @@ public interface RateMapper { |
|
|
|
"<if test='exchangeRate != null'>AND r.exchange_rate LIKE CONCAT('%', #{exchangeRate}, '%')</if>", |
|
|
|
"<if test='updateTime != null'>AND r.update_time LIKE CONCAT('%', #{updateTime}, '%')</if>", |
|
|
|
"<if test='adminId != null'>AND r.admin_id = #{adminId}</if>", |
|
|
|
"<if test='updateId != null'>AND r.update_id = #{updateId}</if>", |
|
|
|
"</where>", |
|
|
|
"</script>" |
|
|
|
|
|
|
|