数据库错误Cause: org.postgresql.util.PSQLException: ERROR: syntax error at or near "WHERE"


### Error querying database.  Cause: org.postgresql.util.PSQLException: ERROR: syntax error at or near "WHERE"
  位置:81
### The error may exist in class path resource [mybatis/mapper/Changes.xml]
### The error may involve com.huawei.promethues.demo.dao.ChangesDao.selectChangeCount-Inline
### The error occurred while setting parameters
### SQL: SELECT DISTINCT count(*) FROM SUB_CHANGE_ORDER_DO where  STATUS !='ready'       WHERE  GMT_CREATED>=? and  and  GMT_CREATED <= ?                          AND CHANGE_ORDER_TYPE=?
### Cause: org.postgresql.util.PSQLException: ERROR: syntax error at or near "WHERE"
  位置:81
; bad SQL grammar []
数据库错误Cause: org.postgresql.util.PSQLException: ERROR: syntax error at or near

错误原因:语法错误,标签中的标签自带where,因此不需要再自己写where


你可能感兴趣的:(后端)