Commit 6cf429d4 authored by luzhuang's avatar luzhuang

积分排序

parent 1648bee6
...@@ -41,3 +41,7 @@ ALTER table b_lesson modify column value_consume VARCHAR (16) DEFAULT 0; ...@@ -41,3 +41,7 @@ ALTER table b_lesson modify column value_consume VARCHAR (16) DEFAULT 0;
-- 修改blesson表中 积分是null的值 20-1-6 10:39 -- 修改blesson表中 积分是null的值 20-1-6 10:39
update b_lesson set value_gain = '0' where value_gain is null; update b_lesson set value_gain = '0' where value_gain is null;
update b_lesson set value_consume = '0' where value_consume is null; update b_lesson set value_consume = '0' where value_consume is null;
-- 改变考试详情表中 字段字符集支持表情 20-1-10 20:20
alter table tm_examdata modify column `e_data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
...@@ -33,8 +33,8 @@ public interface BPersonValueRepository extends BaseMapper<BPersonValue> { ...@@ -33,8 +33,8 @@ public interface BPersonValueRepository extends BaseMapper<BPersonValue> {
"<if test=\"event !=null and event != '' \"> and ((`event` like concat('%',#{event},'%')) or (ss like concat('%',#{event},'%')) ) </if> "+ "<if test=\"event !=null and event != '' \"> and ((`event` like concat('%',#{event},'%')) or (ss like concat('%',#{event},'%')) ) </if> "+
" ORDER BY T.person_id " + " ORDER BY T.person_id " +
"<if test=\" valueSort !=null and valueSort != '' and valueSort == '1'.toString() \"> ,T.type asc,CAST(`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(`value` AS UNSIGNED) asc </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 == '1'.toString() \"> ,T.create_date asc</if> "+
"<if test=\" dateSort !=null and dateSort != '' and dateSort == '0'.toString() \"> ,T.create_date desc</if> " + "<if test=\" dateSort !=null and dateSort != '' and dateSort == '0'.toString() \"> ,T.create_date desc</if> " +
"</script>") "</script>")
......
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