业务逻辑代码遇到异常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
https://www.oschina.net/question/1013233_221281
数据库语法问题,select * mt.name这里,可能是有其他空白字符