xml中是这样写的
Dao类
SmbmsbillQueryvo类
SmbmsbillCustom类
Controller类
jsp
控制台输出
DEBUG [http-apr-8080-exec-3] - ==> Preparing: UPDATE smbms_bill s1 JOIN smbms_provider s2 ON s1.providerId = s2.id SET s1.billCode = ?, s1.productName = ?, s2.proName = ?, s1.productCount = ?, s1.isPayment = ?, s1.creationDate = ? where s1.id = ?
DEBUG [http-apr-8080-exec-3] - ==> Parameters: null, null, null, null, null, null, null
DEBUG [http-apr-8080-exec-3] - <== Updates: 0
求大神指点
sql的参数值没有替换进去,检查一下是否在调用时参数都是有值的,活着是mybatis里面sql模板的占位符写错了
是不是jsp中action路径findupdate.action和controller中的requestmapping("/findupdate"),对不上?
仔细核对参数值和sql,传入的参数没有到sql中
配置文件里面的参数名不需要对象名的,#{submsbillCustom.productcount}
改成#{productcount}
试试
dao层有没有使用@Param,比如在billCode前加@Param("billCode")试试