问题遇到的现象和发生背景
为什么从业务层测试不能得到结果,但是直接执行其预编译出来的sql语句却可以查到数据
问题相关代码,请勿粘贴截图
String stockInRecordReport = stockInService.getStockInRecordReport("{pk_warehouse:['re2205160002SB89RG1F','re2204080002EDLALY5U','re2204070003CKOULM2E']," +
"startdate:'2000-01-01 00:00:00',enddate:'2022-09-01 00:00:00'}");
System.out.println(stockInRecordReport);
运行结果及报错内容
我的解答思路和尝试过的方法
我想要达到的结果
从业务层测试直接能查出结果