mybatis xml配置参数传入
A和B 为一对多
如果向parameterType传入一个对象B,那么在select的where语句中可不可获取到A对象的属性值作为限制条件?是不是不支持#{user.login_id}这种写法,只能取到第一层的属性值?
不考虑使用map传入多个参数。
mybatis??sql??
[解决办法]
网上不详细?你是在国外上网吗?
#就是? $就是拼接
select from table where a = #{pa}等价 "select from table where a = ?"
select from table where a = ${pa}等价 "select from table where a = "+pa+""
[解决办法]