lfkglfkg
java大哥哥
采纳率0%
2017-08-20 08:58 阅读 842

jfinal项目查询时报错

业务逻辑代码遇到异常Exception = com.jfinal.plugin.activerecord.ActiveRecordException: java.sql.SQLException: sql injection violation, syntax error: syntax error, error in :'ct * mt.names,mt.title as picsids ,',expect DOT, actual DOT mt : select * mt.names,mt.title as picsids , up.path as videosids, mt.revision,up.path, up.originalfilename as message from pt_media_channel ch left join pt_media_channelmaterial ma on ch.ids = ma.channelids left join pt_media_material mt on ma.materialids=mt.ids left join pt_sys_upload up on mt.uploadids=up.ids where 1=1 <% if(!isEmpty(ids)){ %> and ch.ids = #'$ids$'# <% } %> <% if(!isEmpty(companyIds)){ %> and ch.companyids = #'$companyIds$'# <% } %> at com.jfinal.plugin.activerecord.Model.find(Model.java:606) at com.funmy.medicine.mvc.product.ProductService.IVAll(ProductService.java:46) at com.funmy.medicine.mvc.product.ProductController.view(ProductController.java:117图片说明

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

1条回答 默认 最新

相关推荐