大家讲道理2017-04-18 10:14:57
What database are you using?
You replace the parameter (long id) with (Integer id).
The reason why this error is reported is that the type conversion failed.
The long type cannot be converted to the Integer type.
伊谢尔伦2017-04-18 10:14:57
You can convert the id to Integer in the method and then put it into the dc,
String str = id.toString();
Integer id1 = Integer.valueOf(str);
or Integer id1 = new Integer(str);
PHPz2017-04-18 10:14:57
If you really want to force transfer, first long
转成string
,然后string
转integer