|
@ -26,7 +26,7 @@ public interface AdminMapper { |
|
|
"<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 '>admin_flag =#{adminFlag},</if>", |
|
|
"</set>", |
|
|
"</set>", |
|
|
"where jwcode =#{jwcode}", |
|
|
"where jwcode =#{jwcode}", |
|
|
"</script>" |
|
|
"</script>" |
|
@ -46,14 +46,14 @@ public interface AdminMapper { |
|
|
"<script>", |
|
|
"<script>", |
|
|
"SELECT * from admin", |
|
|
"SELECT * from admin", |
|
|
"<where>", |
|
|
"<where>", |
|
|
"permission is not null", |
|
|
|
|
|
|
|
|
"permission is not null and admin_flag=1", |
|
|
"<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>", |
|
|
"<if test='area!=null and area.length()>0'> and `area`=#{area}</if>", |
|
|
"<if test='area!=null and area.length()>0'> and `area`=#{area}</if>", |
|
|
"<if test='store!=null and store.length()>0'> and `store`=#{store}</if>", |
|
|
"<if test='store!=null and store.length()>0'> and `store`=#{store}</if>", |
|
|
"<if test='adminFlag!=null'> and admin_flag =#{adminFlag}</if>", |
|
|
|
|
|
"</where>", |
|
|
"</where>", |
|
|
|
|
|
"ORDER BY permission ASC", |
|
|
"</script>" |
|
|
"</script>" |
|
|
}) |
|
|
}) |
|
|
List<Admin> select(Admin admin); |
|
|
List<Admin> select(Admin admin); |
|
@ -79,7 +79,9 @@ public interface AdminMapper { |
|
|
|
|
|
|
|
|
@Select({ |
|
|
@Select({ |
|
|
"select * from admin", |
|
|
"select * from admin", |
|
|
"where jwcode=#{jwcode}" |
|
|
|
|
|
|
|
|
"where jwcode=#{jwcode}", |
|
|
|
|
|
"and", |
|
|
|
|
|
"admin_flag = 1" |
|
|
}) |
|
|
}) |
|
|
Admin selectByJwcode(Admin admin); |
|
|
Admin selectByJwcode(Admin admin); |
|
|
|
|
|
|
|
|