jiapeng 7 years ago
parent
commit
f92ce3f4f6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/com/ekexiu/portal/leavemsg/Service.java

+ 1 - 1
src/main/java/com/ekexiu/portal/leavemsg/Service.java

@ -300,7 +300,7 @@ public class Service {
300 300
	@Path("/counts")
301 301
	public List<Map<String, Object>> query(@JdbcConn Connection con, final String stype, final String[] ids) throws SQLException {
302 302
		StringBuilder sb = new StringBuilder();
303
		sb.append("SELECT REF_ID rid,COUNT(1) num FROM LEAVE_MSG WHERE REF_TYPE =? AND REF_ID IN (?");
303
		sb.append("SELECT REF_ID rid,COUNT(1) num FROM LEAVE_MSG WHERE STATE='1' AND REF_TYPE =? AND REF_ID IN (?");
304 304
		for (int i = 1; i < ids.length; ++i) {
305 305
			sb.append(",?");
306 306
		}