|
@ -23,12 +23,12 @@ public interface AdminMapper { |
|
|
"UPDATE admin", |
|
|
"UPDATE admin", |
|
|
"<set>", |
|
|
"<set>", |
|
|
"<if test='name!=null and name.length()>0'>name =#{name},</if>", |
|
|
"<if test='name!=null and name.length()>0'>name =#{name},</if>", |
|
|
"<if test='jwcode!=null and jwcode.length()>0'>jwcode =#{jwcode},</if>", |
|
|
|
|
|
"<if test='password!=null and password.length()>0'>password =#{password},</if>", |
|
|
"<if test='password!=null and password.length()>0'>password =#{password},</if>", |
|
|
"<if test='permission!=null and permission.length()>0'>permission =#{permission},</if>", |
|
|
"<if test='permission!=null and permission.length()>0'>permission =#{permission},</if>", |
|
|
"<if test='area!=null and area.length()>0'>area =#{area},</if>", |
|
|
"<if test='area!=null and area.length()>0'>area =#{area},</if>", |
|
|
"<if test='adminFlag!=null and adminFlag.length()>0'>admin_flag =#{adminFlag},</if>", |
|
|
"<if test='adminFlag!=null and adminFlag.length()>0'>admin_flag =#{adminFlag},</if>", |
|
|
"</set>", |
|
|
"</set>", |
|
|
|
|
|
"where jwcode =#{jwcode}", |
|
|
"</script>" |
|
|
"</script>" |
|
|
}) |
|
|
}) |
|
|
int update(Admin admin); |
|
|
int update(Admin admin); |
|
@ -46,6 +46,7 @@ public interface AdminMapper { |
|
|
"<script>", |
|
|
"<script>", |
|
|
"SELECT * from admin", |
|
|
"SELECT * from admin", |
|
|
"<where>", |
|
|
"<where>", |
|
|
|
|
|
"permission is not null", |
|
|
"<if test='name!=null and name.length()>0'> and `name` like concat('%',#{name},'%')</if>", |
|
|
"<if test='name!=null and name.length()>0'> and `name` like concat('%',#{name},'%')</if>", |
|
|
"<if test='jwcode!=null and jwcode.length()>0'> and jwcode=#{jwcode}</if>", |
|
|
"<if test='jwcode!=null and jwcode.length()>0'> and jwcode=#{jwcode}</if>", |
|
|
"<if test='permission!=null'> and permission=#{permission}</if>", |
|
|
"<if test='permission!=null'> and permission=#{permission}</if>", |
|
|