Sql Query:
UPDATE_CHILD=UPDATE ANALYSIS_EXEC_CHILD SET STATUS = :tostatus
WHERE PARENT_EXEC_ID = :parentId AND STATUS IN (:currentStatus)
Java代码:
sql = propUtil.getPropertyValue("UPDATE_CHILD");
paramMap = new MapSqlParameterSource();
paramMap.addValue("tostatus", toStatus);
paramMap.addValue("parentId", parentExecId);
paramMap.addValue("currentStatus", Arrays.asList(currentStatuses.toArray()));
updateStatus = this.jdbcTemplate.update(sql,paramMap);
获取错误:
SQL状态[99999];错误代码[17004];列类型无效;嵌套异常是java.sql.SQLException:无效的列类型JDBC