标签:
sql 语句拼接报错:
No signature of method: java.lang.String.positive() is applicable for argument types: () values: []
原因:字符串相加时,加号前后有空格
例如(这样是不行的):
sql =+ "and c.efficientStatus = "+courseStatus //错误
要把加号后面的空格去掉就行了,简直了。
标签:
sql 语句拼接报错:
No signature of method: java.lang.String.positive() is applicable for argument types: () values: []
原因:字符串相加时,加号前后有空格
例如(这样是不行的):
sql =+ "and c.efficientStatus = "+courseStatus //错误
要把加号后面的空格去掉就行了,简直了。