XMTT 6 ans auparavant
Parent
commit
3fcad650f7

+ 2 - 2
src/main/java/com/ekexiu/project/platform/article/ArticleService.java

@ -113,8 +113,8 @@ public class ArticleService {
113 113
    @Get
114 114
    public int invalid(@JdbcConn(true) Connection con, final String id, final @LoginUser AuthUser user) throws SQLException {
115 115
        if (articleDao.invalid(con, id) != 0) {
116
            JdbcUtil.execute(con, "INSERT INTO INVALID_ARTICLE (ID,TITLE,CREATOR,CREATE_TIME,INVALID_TIME,INVALID_OPERATOR) "
117
                    + "SELECT ID,TITLE,CREATOR,CREATE_TIME,TO_CHAR(NOW(),'YYYYMMDDHH24MISS'),? FROM ARTICLE WHERE ID=?", new PreparedStatementConfig() {
116
            JdbcUtil.execute(con, "INSERT INTO INVALID_ARTICLE (ID,TITLE,CATALOG,CREATOR,CREATE_TIME,INVALID_TIME,INVALID_OPERATOR) "
117
                    + "SELECT ID,TITLE,CATALOG,CREATOR,CREATE_TIME,TO_CHAR(NOW(),'YYYYMMDDHH24MISS'),? FROM ARTICLE WHERE ID=?", new PreparedStatementConfig() {
118 118
                @Override
119 119
                public void config(PreparedStatement ps) throws SQLException {
120 120
                    ps.setString(1, user.getId());