这是xml,sql在本地数据库和linux数据库测试都没问题,部署就报错,有人知道这是什么问题吗,非常感谢!!!
names的结果集为空了 , 导致 sql成为 where m.model_name in and starttime >
需要判断一下空结果集。 建议写法
where 1=1
if test="names != null and names.size()>0 "
and m.model_name in
foreach
foreach
if
names的结果集为空了 , 导致 sql成为 where m.model_name in and starttime >
需要判断一下空结果集。 建议写法
where 1=1
names的结果集为空了 , 导致 sql成为 where m.model_name in and starttime >
需要判断一下空结果集。 建议写法
where 1=1
names的结果集为空。。。。。。。导致sql成为 where m.model_name in and starttime。。。。。
names的结果集为空了 , 导致 sql成为 where m.model_name in and starttime >
需要判断一下空结果集。 建议写法
where 1=1
if test="names != null and names.size()>0 "
and m.model_name in
foreach
foreach
if
names的结果集为空 建议使用where标签 另外再判断一下就行了
条件语句加上1=1防止出现m.model_name为空的情况
names的结果集为空了 , 导致 sql成为 where m.model_name in and starttime >
需要判断一下空结果集。 建议写法
where 1=1
凡是需要组合sql 的 加上 where 1=1 条件,后面根据需要 添加 and 条件。
names的结果集null, 导致 sql成为 where m.model_name in and starttime >
需要判断一下空结果集。 建议写法
where 1=1
names的结果集为空了 , 导致 sql成为 where m.model_name in and starttime >
需要判断一下空结果集。 建议写法
where 1=1