我收到错误 - “在index :: 1处缺少IN或OUT参数;”在一个环境中,而不是另一个代码完全相同。数据库是一样的。 我检查了路径,环境变量,版本,其中,找到了。 代码如下
<bean id="stRulesExecutionReader"
class="org.springframework.batch.item.database.JdbcPagingItemReader" scope="step">
<property name="dataSource" ref="dataSource" />
<property name="queryProvider">
<bean
class="org.springframework.batch.item.database.support.SqlPagingQueryProviderFactoryBean">
<property name="dataSource" ref="dataSource" />
<property name="selectClause"
value="select STID, RULEID, ITMVALSTR, ITMBSNSTR,SLS_TTY_RL_EFF_TS, SLS_TTY_RL_XPRY_TS,RULE_DLT_IND " />
<property name="fromClause" value="from MDM_EXTEND.STRULES_FETCH_CRITERIA" />
<property name="whereClause" value=" WHERE ITMVALSTR IS NOT NULL AND (PROCESSED !='Y' OR PROCESSED IS NULL) AND ( NVL(RULE_SUCCESS,'NULL')!='MANUAL' AND (RULE_SUCCESS IS NULL OR RULE_SUCCESS IN (SELECT DECODE(to_char(CURRENT_TIMESTAMP, 'DY'),'SAT','WEEKEND','SUN','WEEKEND',null) FROM DUAL))) " />
<property name="sortKey" value="RULEID" />
</bean>
</property>
<property name="pageSize" value="10" />
<property name="rowMapper">