Skip to content

Commit

Permalink
-mUserMapper 添加插入用户作答表的方法
Browse files Browse the repository at this point in the history
  • Loading branch information
suvvm committed Nov 29, 2019
1 parent d167080 commit d9fb088
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ public interface UserMapper {
@Insert("insert into usertag values(#{uid},#{tid})")
public int insertUserTag(Integer uid, Integer tid);

// 添加user与inv的关系
@Insert("insert into userresults values(#{uid},#{iid},#{ans})")
public int insertUserResult(Integer uid, Integer iid, String ans);

// 根据公司id查询用户
@Select("select * from users where cmp_id=#{id}")
public User getUserByCompanyId(Integer id);
Expand Down

0 comments on commit d9fb088

Please sign in to comment.