XMTT 5 anos atrás
pai
commit
139ec3c9aa

+ 1 - 1
src/main/java/com/ekexiu/portal/team/TeamDao.java

72
72
73
    @PageSelect
73
    @PageSelect
74
    @OrderBy("ORDER BY CREATE_TIME DESC")
74
    @OrderBy("ORDER BY CREATE_TIME DESC")
75
    PageQueryResult<Team> pageQuery(Connection con, String status, @Nullable @SqlColumn(handlerClass = StringHandler.class, value = {"name like ?", "orgName like ?", "subject like ?", "industry like ?"}) String key, @Nullable @Like String subject, @Nullable @Like String industry, @Nullable String city, int pageSize, int pageNo) throws SQLException;
75
    PageQueryResult<Team> pageQuery(Connection con, String status, @Nullable @SqlColumn(handlerClass = StringHandler.class, value = {"name like ?", "org_ame like ?", "subject like ?", "industry like ?"}) String key, @Nullable @Like String subject, @Nullable @Like String industry, @Nullable String city, int pageSize, int pageNo) throws SQLException;
76
76
77
    @PageQuery
77
    @PageQuery
78
    @OrderBy("ORDER BY SECRETARY DESC NULLS LAST, CREATE_TIME DESC")
78
    @OrderBy("ORDER BY SECRETARY DESC NULLS LAST, CREATE_TIME DESC")

+ 1 - 1
src/main/java/com/ekexiu/portal/team/TeamService.java

329
    public void quit(@JdbcConn(true) Connection con,String id,String professor)throws SQLException,JfwBaseException{
329
    public void quit(@JdbcConn(true) Connection con,String id,String professor)throws SQLException,JfwBaseException{
330
        Team team = teamDao.query(con, id);
330
        Team team = teamDao.query(con, id);
331
        if (professor.equals(team.getSecretary())) {
331
        if (professor.equals(team.getSecretary())) {
332
            throw new JfwBaseException(801, "团队秘书不能退出团队");
332
            throw new JfwBaseException(801, "Team secretary can't leave the team");
333
        }else {
333
        }else {
334
            teamDao.deletePro(con, id, professor);
334
            teamDao.deletePro(con, id, professor);
335
            if (team.getChief().equals(professor)) {
335
            if (team.getChief().equals(professor)) {