Skip to content

Commit

Permalink
InvMapper 添加插入问卷与tag映射关系的方法
Browse files Browse the repository at this point in the history
  • Loading branch information
suvvm committed Nov 27, 2019
1 parent 29ed88e commit dd214c2
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import org.apache.ibatis.annotations.*;
import org.apache.ibatis.jdbc.SQL;
import qdu.suvvm.onlinesurvey.pojo.Investigate;
import qdu.suvvm.onlinesurvey.pojo.Tag;

import java.util.List;

Expand Down Expand Up @@ -35,6 +36,9 @@ public interface InvMapper {
@Select("select * from investigates where ownerid = #{id}")
public Investigate getInvByUserId(Integer id);

// 插入问卷tag映射关系
@Insert("insert into invtag(iid,tid) values(#{inv.id},#{tag.id})")
public int insertInvTag(Investigate inv, Tag tag);

class InvMapperProvider{
/**
Expand Down

0 comments on commit dd214c2

Please sign in to comment.