正式与测试代码一样,但是测试没有报错,正常查询,正式上查询方法报错
报错如下
500,nested exception is org.apache.ibatis.builder.BuilderException: Error evaluating expressionparams.tenderCode!=null and params.tenderCode!=’‘’. Cause: org.apache.ibatis.ognl.OgnlException: source is null for getProperty(null, “tenderCode”)

代码
DAO:
List selectGdContractInfoList(Param(“params”) Map<String,Object> params);

通过排查代码通过断点数据传入DAO时还有值,走mapper报错发现params 为空最后更改如下:问题解
List selectGdContractInfoList(@org.apache.ibatis.annotations.Param(“params”) Map<String,Object> params);

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注