|
|
@@ -3,12 +3,8 @@ package seecoder.devcloud.web.dao.user;
|
|
|
|
|
|
|
|
|
import org.apache.ibatis.annotations.*;
|
|
|
-import seecoder.devcloud.web.dao.InsertUpdateSqlProvider;
|
|
|
+import seecoder.devcloud.web.dao.GeneralInsertUpdateSqlProvider;
|
|
|
import seecoder.devcloud.web.po.user.Group;
|
|
|
-import seecoder.devcloud.web.po.user.User;
|
|
|
-
|
|
|
-import java.awt.geom.GeneralPath;
|
|
|
-import java.util.List;
|
|
|
|
|
|
/**
|
|
|
* @author PuHong Weng
|
|
|
@@ -22,10 +18,10 @@ public interface GroupMapper {
|
|
|
/**
|
|
|
* id并非由此后端生成,而是gitlab创建后,将gitlab groupid填入
|
|
|
*/
|
|
|
- @InsertProvider(type = InsertUpdateSqlProvider.class, method = "insert")
|
|
|
+ @InsertProvider(type = GeneralInsertUpdateSqlProvider.class, method = "insert")
|
|
|
int insert(Group group,String... ignoredCols);
|
|
|
|
|
|
- @UpdateProvider(type= InsertUpdateSqlProvider.class, method="updateById")
|
|
|
+ @UpdateProvider(type= GeneralInsertUpdateSqlProvider.class, method="updateById")
|
|
|
int update(Group group);
|
|
|
|
|
|
@Select("select * from `group` where id = #{id}")
|
|
|
@@ -35,7 +31,6 @@ public interface GroupMapper {
|
|
|
Group findGroupByName(String name);
|
|
|
|
|
|
@Select("select *, id as group_id from `group` where id = #{id}")
|
|
|
-
|
|
|
@Result(column = "group_id", property = "members", many = @Many(select = "seecoder.devcloud.web.dao.user.GroupMemberMapper.selectUsersByGroupId"))
|
|
|
Group findWithMembersById(Integer id);
|
|
|
|