Time:10-02
CodePudding user response:
mapping error table and the property name
anomaly and debug log didn't find it slowly
have a look at your Mapper method
first, first take a look at your map of useid, put in, how much is, a string type? Second, look at you again, as useid, found out the useid is string type, because the return type is a string,
see if userId is null or see if type String
List QueryUserIdList (@ Param (value="https://bbs.csdn.net/topics/userId") String userId); So try!!
try PARENT_ID=# {0}
try to remove the jdbcType=VARCHAR. If do not check or data, in the console and see your SQL, look at your parameters.
where is wrong? Try the example joining together
# {} is the incoming value into a string, you directly put (" userid ", 400311)? Still have even if you have not try, can write SQL statements to death see yao, write directly parent_id="400311"; Look have value, or is it parses' '? Make a mistake, ' ',
where stitching parameters failed or type do not match, so useless where can query to all
you give it a change of name, put in userId remove the jdbcType behind to try again, could it parses "?" , is the incoming parameters, analytical problem, become another value, have parsed SQL,
Page link:https//www.codepudding.com/Backend/47504.html