XMTT 6 years ago
parent
commit
97615dd097

+ 5 - 5
src/main/java/com/ekexiu/project/platform/company/CompanyDao.java

33
33
34
    @UpdateWith
34
    @UpdateWith
35
    @From(Company.class)
35
    @From(Company.class)
36
    @Where("ACTIVE = '1'")
37
    @SetSentence("ACTIVE = '0'")
36
    @Where("ACTIVED = '1'")
37
    @SetSentence("ACTIVED = '0'")
38
    int delete(Connection con, String id) throws SQLException;
38
    int delete(Connection con, String id) throws SQLException;
39
39
40
    @SelectOne
40
    @SelectOne
47
47
48
    @PageSelect
48
    @PageSelect
49
    @OrderBy("ORDER BY CREATE_TIME DESC")
49
    @OrderBy("ORDER BY CREATE_TIME DESC")
50
    PageQueryResult<Company> pageQuery(Connection con, @Nullable Boolean active, @Nullable String name, int pageSize, int pageNo) throws SQLException;
50
    PageQueryResult<Company> pageQuery(Connection con, @Nullable Boolean actived, @Nullable String name, int pageSize, int pageNo) throws SQLException;
51
51
52
    @Insert
52
    @Insert
53
    int insert(Connection con, CompKeyWord compKeyWord) throws SQLException;
53
    int insert(Connection con, CompKeyWord compKeyWord) throws SQLException;
61
61
62
    @UpdateWith
62
    @UpdateWith
63
    @From(CompInvite.class)
63
    @From(CompInvite.class)
64
    @Where("ACTIVE = '1'")
65
    @SetSentence("ACTIVE = '0'")
64
    @Where("ACTIVED = '1'")
65
    @SetSentence("ACTIVED = '0'")
66
    int invited(Connection con, String id) throws SQLException;
66
    int invited(Connection con, String id) throws SQLException;
67
67
68
}
68
}