|
|
@ -38,8 +38,7 @@ public interface RateMapper { |
|
|
|
"<if test='updateTime!=null'>update_time=#{updateTime},</if>", |
|
|
|
"<if test='adminId!=null'>admin_id=#{adminId},</if>", |
|
|
|
"</set>", |
|
|
|
"where rate_id = #{rateId}", |
|
|
|
"</script>" |
|
|
|
"where rate_id = #{rateId}", "</script>" |
|
|
|
}) |
|
|
|
int update(Rate rate); |
|
|
|
|
|
|
@ -50,7 +49,7 @@ public interface RateMapper { |
|
|
|
|
|
|
|
@Select({ |
|
|
|
"<script>", |
|
|
|
"SELECT r.*, a.name AS submitName, u.name AS updateName", |
|
|
|
"SELECT r.*, a.name AS adminName", |
|
|
|
"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", |
|
|
|