关于ibatis 框架的sql配置文件,执行时出现sql命令未正确结束,但却能查出数据,sql语句如下,怎么回事? 10
<selectid="queryInfoList"parameterClass="java.util.HashMap"resultClass="java.util.Has...
<select id="queryInfoList" parameterClass="java.util.HashMap" resultClass="java.util.HashMap">
select a.APP_ID,
a.APP_NAME,
a.APP_IMAGE,
b.idc_value1,
b.idc_value2,
b.idc_value3,
b.idc_value4,
b.idc_value5,
b.idc_value6,
b.idc_value7,
b.idc_value8,
b.idc_value9
from ITM_APP_INFO a JOIN ITM_DETL_INDC_INFO b
ON a.app_id = b.app_id
where b.MON_TYPE='X101'
<isNotEmpty prepend="and" property="app_name">
a.APP_NAME like '%$app_name$%'
</isNotEmpty>
<isNotEmpty prepend="and" property="app_id">
a.APP_ID in $app_id$
</isNotEmpty>
order by a.APP_ID
</select> 展开
select a.APP_ID,
a.APP_NAME,
a.APP_IMAGE,
b.idc_value1,
b.idc_value2,
b.idc_value3,
b.idc_value4,
b.idc_value5,
b.idc_value6,
b.idc_value7,
b.idc_value8,
b.idc_value9
from ITM_APP_INFO a JOIN ITM_DETL_INDC_INFO b
ON a.app_id = b.app_id
where b.MON_TYPE='X101'
<isNotEmpty prepend="and" property="app_name">
a.APP_NAME like '%$app_name$%'
</isNotEmpty>
<isNotEmpty prepend="and" property="app_id">
a.APP_ID in $app_id$
</isNotEmpty>
order by a.APP_ID
</select> 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询