"<if test=\"lessonValueStart!=null and lessonValueStart != ''\"> and lesson_value >= #{lessonValueStart} </if> "+
"<if test=\"lessonValueEnd!=null and lessonValueEnd != ''\"> and lesson_value <= #{lessonValueEnd} </if> "+
"<if test=\"trainValueStart!=null and trainValueStart != ''\"> and train_value >= #{trainValueStart} </if> "+
"<if test=\"trainValueEnd!=null and trainValueEnd != ''\"> and train_value <= #{trainValueEnd} </if> "+
"<if test=\"lessonValueStart!=null and lessonValueStart != ''\"> and CAST(lesson_value AS UNSIGNED) >= #{lessonValueStart} </if> "+
"<if test=\"lessonValueEnd!=null and lessonValueEnd != ''\"> and CAST(lesson_value AS UNSIGNED) <= #{lessonValueEnd} </if> "+
"<if test=\"trainValueStart!=null and trainValueStart != ''\"> and CAST(train_value AS UNSIGNED) >= #{trainValueStart} </if> "+
"<if test=\"trainValueEnd!=null and trainValueEnd != ''\"> and CAST(train_value AS UNSIGNED) <= #{trainValueEnd} </if> "+
" ORDER BY corp_id "+
"<if test=\"lessonSort!=null and lessonSort != '' and lessonSort == '1'.toString()\"> ,lesson_value asc </if> "+
"<if test=\"lessonSort!=null and lessonSort != '' and lessonSort == '0'.toString()\"> ,lesson_value desc </if> "+
"<if test=\"trainSort!=null and trainSort != '' and trainSort == '1'.toString()\"> ,train_value asc </if> "+
"<if test=\"lessonSort!=null and lessonSort != '' and lessonSort == '1'.toString()\"> ,CAST(lesson_value AS UNSIGNED) asc </if> "+
"<if test=\"lessonSort!=null and lessonSort != '' and lessonSort == '0'.toString()\"> ,CAST(lesson_value AS UNSIGNED) desc </if> "+
"<if test=\"trainSort!=null and trainSort != '' and trainSort == '1'.toString()\"> ,CAST(train_value AS UNSIGNED) asc </if> "+
"<if test=\"trainSort!=null and trainSort != '' and trainSort == '0'.toString()\"> ,train_value desc </if> "+
"<if test=\"timeSort!=null and timeSort != '' and timeSort == '1'.toString()\"> ,update_date asc </if> "+
"<if test=\"timeSort!=null and timeSort != '' and timeSort == '0'.toString()\"> ,update_date desc </if> "+
...
...
@@ -111,10 +111,10 @@ public interface BReleaseValueRepository extends BaseMapper<BReleaseValue> {
"from b_lesson bl "+
"left join s_user su on su.business_id = bl.lecturer_id "+
"where bl.del_flag !=1 and bl.flag = 1 "+
"<if test=\"dto.valueConsumeStart!=null and dto.valueConsumeStart != ''\"> and bl.value_consume >= #{dto.valueConsumeStart} </if> "+
"<if test=\"dto.valueConsumeEnd!=null and dto.valueConsumeEnd != ''\"> and bl.value_consume <= #{dto.valueConsumeEnd} </if> "+
"<if test=\"dto.valueGainStart!=null and dto.valueGainStart != ''\"> and bl.value_gain >= #{dto.valueGainStart} </if> "+
"<if test=\"dto.valueGainEnd!=null and dto.valueGainEnd != ''\"> and bl.value_gain <= #{dto.valueGainEnd} </if> "+
"<if test=\"dto.valueConsumeStart!=null and dto.valueConsumeStart != ''\"> and CAST(bl.value_consume AS UNSIGNED) >= #{dto.valueConsumeStart} </if> "+
"<if test=\"dto.valueConsumeEnd!=null and dto.valueConsumeEnd != ''\"> and CAST(bl.value_consume AS UNSIGNED) <= #{dto.valueConsumeEnd} </if> "+
"<if test=\"dto.valueGainStart!=null and dto.valueGainStart != ''\"> and CAST(bl.value_gain AS UNSIGNED) >= #{dto.valueGainStart} </if> "+
"<if test=\"dto.valueGainEnd!=null and dto.valueGainEnd != ''\"> and CAST(bl.value_gain AS UNSIGNED) <= #{dto.valueGainEnd} </if> "+
"<if test=\"dto.lessonName!=null and dto.lessonName != ''\"> and bl.lesson_name like concat('%',#{dto.lessonName},'%') </if> "+
"<if test=\"dto.lecturerName!=null and dto.lecturerName != ''\"> and su.`name` like concat('%',#{dto.lecturerName},'%') </if> "+
"<if test=\"dto.status!=null and dto.status != ''\"> and bl.release_state in(${dto.status}) </if> "+
...
...
@@ -122,10 +122,10 @@ public interface BReleaseValueRepository extends BaseMapper<BReleaseValue> {
"and bl.corp_id = #{curUser.corpId} "+
"and bl.lesson_type = #{dto.type} "+
"ORDER BY bl.corp_id "+
"<if test=\"dto.valueConsumeSort!=null and dto.valueConsumeSort != '' and dto.valueConsumeSort == '1'.toString()\"> ,bl.value_consume asc </if> "+
"<if test=\"dto.valueConsumeSort!=null and dto.valueConsumeSort != '' and dto.valueConsumeSort == '0'.toString()\"> ,bl.value_consume desc </if> "+
"<if test=\"dto.valueGainSort!=null and dto.valueGainSort != '' and dto.valueGainSort == '1'.toString()\"> ,bl.value_gain asc </if> "+
"<if test=\"dto.valueGainSort!=null and dto.valueGainSort != '' and dto.valueGainSort == '0'.toString()\"> ,bl.value_gain desc </if> "+
"<if test=\"dto.valueConsumeSort!=null and dto.valueConsumeSort != '' and dto.valueConsumeSort == '1'.toString()\"> ,CAST(bl.value_consume AS UNSIGNED) asc </if> "+
"<if test=\"dto.valueConsumeSort!=null and dto.valueConsumeSort != '' and dto.valueConsumeSort == '0'.toString()\"> ,CAST(bl.value_consume AS UNSIGNED) desc </if> "+
"<if test=\"dto.valueGainSort!=null and dto.valueGainSort != '' and dto.valueGainSort == '1'.toString()\"> ,CAST(bl.value_gain AS UNSIGNED) asc </if> "+
"<if test=\"dto.valueGainSort!=null and dto.valueGainSort != '' and dto.valueGainSort == '0'.toString()\"> ,CAST(bl.value_gain AS UNSIGNED) desc </if> "+
"<if test=\"dto.updateDateSort!=null and dto.updateDateSort != '' and dto.updateDateSort == '1'.toString()\"> ,bl.value_update_date asc </if> "+
"<if test=\"dto.updateDateSort!=null and dto.updateDateSort != '' and dto.updateDateSort == '0'.toString()\"> ,bl.value_update_date desc </if> "+
"<if test=\"(dto.valueConsumeSort ==null or dto.valueConsumeSort == '') and (dto.valueGainSort == null or dto.valueGainSort == '') and (dto.updateDateSort == null or dto.updateDateSort == '')\"> ,bl.create_date desc </if> "+