老师在做根据openid查询订单列表时我的Data获取不到值
来源:6-12 买家订单-api_C
慕仔3052074
2018-08-24
请教一下,为什么我的data查询不出值,openid也没问题。用的老师的代码页查不出来,不知道是什么原因。
2018-08-24 11:05:36,974 - Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 2018-08-24 11:05:37,303 - ClassTemplateLoader for Spring macros added to FreeMarker configuration 2018-08-24 11:05:37,526 - Started OrderServiceImplTest in 6.354 seconds (JVM running for 7.185) 2018-08-24 11:05:37,590 - HHH000397: Using ASTQueryTranslatorFactory Hibernate: select ordermaste0_.order_id as order_id1_1_, ordermaste0_.buyer_address as buyer_ad2_1_, ordermaste0_.buyer_name as buyer_na3_1_, ordermaste0_.buyer_openid as buyer_op4_1_, ordermaste0_.buyer_phone as buyer_ph5_1_, ordermaste0_.create_time as create_t6_1_, ordermaste0_.order_amount as order_am7_1_, ordermaste0_.order_status as order_st8_1_, ordermaste0_.pay_status as pay_stat9_1_, ordermaste0_.update_time as update_10_1_ from order_master ordermaste0_ where ordermaste0_.buyer_openid=? limit ? Hibernate: select count(ordermaste0_.order_id) as col_0_0_ from order_master ordermaste0_ where ordermaste0_.buyer_openid=? 2018-08-24 11:05:37,966 - 【根据openid查询所有订单】String =Page 1 of 2 containing com.imooc.dto.OrderDTO instances 2018-08-24 11:05:37,971 - Closing org.springframework.web.context.support.GenericWebApplicationContext@3eb91815: startup date [Fri Aug 24 11:05:31 CST 2018]; root of context hierarchy 2018-08-24 11:05:37,976 - Closing JPA EntityManagerFactory for persistence unit 'default'
写回答
6回答
-
慕少8131783
2019-09-09
遇到这个问题的同学,请检查添加订单时openID的前后是否有空格,,查找的时候也检查一下参数
00 -
慕少8131783
2019-09-09
遇到这个问题的同学,请检查添加订单时openID的前后是否有空格,,查找的时候也检查一下参数
00 -
Java业的中学生
2019-06-26
我也是这个问题,但是重启idea就解决了,代码一行没加,一行没减的,所以免费的就这点问题,时不时抽个经
00 -
JGarage
2018-09-27
openid字段前面有一个空格
00 -
廖师兄
2018-08-25
用的老师的代码页查不出来
page和size传一下值试试。如果还不行,
你用是哪个tag的代码?要确认没有再修改过代码
把你的数据库发我,包含数据,push到代码里即可,我来试试
00 -
鸿鹄yyn
2018-08-24
版本跟师兄
00
相似问题