Commit 4124c51f authored by luzhuang's avatar luzhuang

排序

parent 09ab3917
......@@ -33,7 +33,7 @@ public interface BPersonValueRepository extends BaseMapper<BPersonValue> {
"<if test=\"event !=null and event != '' \"> and ((`event` like concat('%',#{event},'%')) or (ss like concat('%',#{event},'%')) ) </if> "+
" ORDER BY T.person_id " +
"<if test=\" valueSort !=null and valueSort != '' and valueSort == '1'.toString() \"> ,T.type asc,,CAST(if(T.type = 0,`value`,-`value`) AS UNSIGNED) desc </if> "+
"<if test=\" valueSort !=null and valueSort != '' and valueSort == '1'.toString() \"> ,T.type asc,CAST(if(T.type = 0,`value`,-`value`) AS UNSIGNED) desc </if> "+
"<if test=\" valueSort !=null and valueSort != '' and valueSort == '0'.toString() \"> ,T.type desc,CAST(if(T.type = 1,`value`,-`value`) AS UNSIGNED) desc </if> "+
"<if test=\" dateSort !=null and dateSort != '' and dateSort == '1'.toString() \"> ,T.create_date asc</if> "+
"<if test=\" dateSort !=null and dateSort != '' and dateSort == '0'.toString() \"> ,T.create_date desc</if> " +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment