bootstrap Table realization column sorting

A. Front section

 1. The need to add the column portion sortable: true, for example,

 

 

 2. Send a request with the sort parameter name (remove the sortName) and sort (the sortOrder)

 

 

II. Background section, the normal reception on the line, should be noted that when mapper write sql statement, passed as arguments

1. # {}  For acquiring parameters of the user in the SQL statement passed. The acquisition mode is similar to the SQL statements in a JDBC PreparedStatement embodiment. Use? As a placeholder, the dynamic binding parameters

 

 

Print out the log below, the effect of the sort result is invalid

 

 

2. {} $  Similar Statement embodiment JDBC, directly spliced data in SQL statements. No placeholder

 

 

Printed as log

 

 

Here it is required to use $ {} way transmission parameters

 

Guess you like

Origin www.cnblogs.com/arsn/p/12275182.html