Sybase- Could not find SQL statement to include with refid 'getOrderInHdStatisDetailsql'
2013-09-24 11:05
716 查看
要把<procedure>、<select> 放在 <sql >的后面,如下:
<sql id="getOrderYchdCountsql">
select workid workId,
orgrowid,
orgName,
dataValue,
remark
from order_ychd where alarmType = $alarmType$
and dateData >= '$startDate$'
and dateData < '$endDate$'
]]>
</sql>
<procedure id="getOrderYchdByPage"
parameterClass="map"
resultClass="orderYchd">
{call ams_query_page('select aa.* from (
<include refid="getOrderYchdByPagesql" />
) aa ',$start$,$end$)}
</procedure>
<select id="getOrderYchdCount"
parameterClass="map"
resultClass="int">
select count(1) from (
<include refid="getOrderYchdCountsql" />
) sss
</select>
<sql id="getOrderYchdCountsql">
select workid workId,
orgrowid,
orgName,
dataValue,
remark
from order_ychd where alarmType = $alarmType$
and dateData >= '$startDate$'
and dateData < '$endDate$'
]]>
</sql>
<procedure id="getOrderYchdByPage"
parameterClass="map"
resultClass="orderYchd">
{call ams_query_page('select aa.* from (
<include refid="getOrderYchdByPagesql" />
) aa ',$start$,$end$)}
</procedure>
<select id="getOrderYchdCount"
parameterClass="map"
resultClass="int">
select count(1) from (
<include refid="getOrderYchdCountsql" />
) sss
</select>
相关文章推荐
- Sybase- Could not find SQL statement to include with refid 'getOrderInHdStatisDetailsql'
- ibatis Could not find SQL statement to include with refid 'xxx' 问题
- ibatis Could not find SQL statement to include with refid 'xxx' 问题
- ibatis Could not find SQL statement to include with refid 'xxx' 问题
- MyBatis3: Could not find SQL statement to include with refid ‘
- Could not find SQL statement to include with refid :XXX这样的问题
- ibatis Could not find SQL statement to include with refid 'xxx' 问题。
- mysql查询报错: ORDER BY clause is not in GROUP BY..this is incompatible with sql_mode=only_full_group_by
- mysql查询报错: ORDER BY clause is not in GROUP BY..this is incompatible with sql_mode=only_full_group_by
- How to deal with "Could not find component on update server. Contact VMware Support or your system administrator." in Vmware.
- SparkSQL错误:Could not find uri with key [dfs.encryption.key.provider.uri] to create a keyProvider
- ### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: An attempt by a client to chec
- PANIC: ANDROID_SDK_HOME is defined but could not find Test.ini file in $ANDROID_SDK_HOME\.android\av
- Service Broker message delivery is not enabled in this database. Use the ALTER DATABASE statement to
- This application failed to start because it could not find or load the Qt platform plugin "xcb" in "
- 在PL/SQL DEV里面有把锁一样的按钮,点击它会跳出“these query result are not updateable,include the ROWID to get updateab
- SQL---Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column '
- PL/SQL dev工具 使用for update-->Edit Date 时出错"These query results are not updateable,Include the ROWID to get updateable results."
- 在PL/SQL 里面有把锁一样的按钮,点击它会跳出“these query result are not updateable,include the ROWID to get updateab
- Internet Information Services is not installed. You must have Internet Information Services installed in order to use the SharePoint Products and Technologies Configuration Wizard