diff --git a/src/main/java/com/genersoft/iot/vmp/storager/dao/UserMapper.java b/src/main/java/com/genersoft/iot/vmp/storager/dao/UserMapper.java index f8507cb0..6ecc8280 100644 --- a/src/main/java/com/genersoft/iot/vmp/storager/dao/UserMapper.java +++ b/src/main/java/com/genersoft/iot/vmp/storager/dao/UserMapper.java @@ -13,21 +13,21 @@ public interface UserMapper { int add(User user); @Update("UPDATE user " + - "SET username=#{username}," + - "password=#{password}," + - "roleId=#{roleId}" + + "SET username=#{username}, " + + "password=#{password}, " + + "roleId=#{roleId} " + "WHERE id=#{id}") int update(User user); @Delete("DELETE FROM user WHERE app=#{app} AND id=#{id}") int delete(User user); - @Select("select * FROM user WHERE username= #{username} AND password=#{password}") + @Select("select * FROM user WHERE username=#{username} AND password=#{password}") User select(String username, String password); - @Select("select * FROM user WHERE id= #{id}") + @Select("select * FROM user WHERE id=#{id}") User selectById(int id); - @Select("select * FROM user WHERE username= #{username}") + @Select("select * FROM user WHERE username=#{username}") User getUserByUsername(String username); } diff --git a/web_src/src/components/dialog/StreamProxyEdit.vue b/web_src/src/components/dialog/StreamProxyEdit.vue index f558ed64..e1d224a7 100644 --- a/web_src/src/components/dialog/StreamProxyEdit.vue +++ b/web_src/src/components/dialog/StreamProxyEdit.vue @@ -36,7 +36,7 @@ - +