1.页面请求:
数据库查询:
2018-07-16 17:56:25.054 DEBUG 17312 --- [nio-9010-exec-3] c.s.h.m.C.selectSelective : ==> Preparing: select id, card_number, customer_id, customer_name, mobile, `status`, creator_id, creator, create_time, updator_id, updator, update_time, remark, tab1, tab2 from t_customer_card where 1= 1 and card_number = ?
2018-07-16 17:56:25.055 DEBUG 17312 --- [nio-9010-exec-3] c.s.h.m.C.selectSelective : ==> Parameters: '653'(String)
2018-07-16 17:56:25.056 DEBUG 17312 --- [nio-9010-exec-3] c.s.h.m.C.selectSelective : <== Total: 0
Navicat 查询结果
有一条数据
原因是请求的时候加了不必要的字符串
将请求条件换成如下:
http://localhost:8383/sale/autoSalesOrder?cardNo=653&weight=90&floorScaleNo=0987
就没有问题。
当问题出现的时候,不要从一个方面看,也许是最初始的引用出了问题,用浏览器测试的时候需要多注意