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个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问