|
|
@ -66,43 +66,44 @@ public interface MemberMapper {
|
|
|
|
|
|
|
|
|
|
|
|
List<MemberVO> selectByCondition(MemberExample example);
|
|
|
|
List<MemberVO> selectByCondition(MemberExample example);
|
|
|
|
|
|
|
|
|
|
|
|
@Select("<script>" +
|
|
|
|
// @Select("<script>" +
|
|
|
|
"SELECT m.*, t.status AS trainingStatus " +
|
|
|
|
// "SELECT m.*, t.status AS trainingStatus " +
|
|
|
|
"FROM sys_member m " +
|
|
|
|
// "FROM sys_member m " +
|
|
|
|
"LEFT JOIN sys_training t ON m.training_id = t.training_id " +
|
|
|
|
// "LEFT JOIN sys_training t ON m.training_id = t.training_id " +
|
|
|
|
"WHERE m.school_id = #{schoolId} " +
|
|
|
|
// "WHERE m.school_id = #{schoolId} " +
|
|
|
|
"AND (t.status = 'FINISHED') " +
|
|
|
|
// "AND (t.status = 'FINISHED') " +
|
|
|
|
"<if test='className != null and className.trim() != \"\"'> " +
|
|
|
|
// "<if test='className != null and className.trim() != \"\"'> " +
|
|
|
|
"AND m.class_grade = #{className} " +
|
|
|
|
// "AND m.class_grade = #{className} " +
|
|
|
|
"</if> " +
|
|
|
|
// "</if> " +
|
|
|
|
"<if test='trainingName != null and trainingName.trim() != \"\"'> " +
|
|
|
|
// "<if test='trainingName != null and trainingName.trim() != \"\"'> " +
|
|
|
|
"AND t.training_name = #{trainingName} " +
|
|
|
|
// "AND t.training_name = #{trainingName} " +
|
|
|
|
"</if> " +
|
|
|
|
// "</if> " +
|
|
|
|
"<if test='markStatus != null'> " +
|
|
|
|
// "<if test='markStatus != null'> " +
|
|
|
|
"<if test='markStatus == 0'> " +
|
|
|
|
// "<if test='markStatus == 0'> " +
|
|
|
|
"AND m.report_score IS NULL " +
|
|
|
|
// "AND m.report_score IS NULL " +
|
|
|
|
"</if> " +
|
|
|
|
// "</if> " +
|
|
|
|
"<if test='markStatus == 1'> " +
|
|
|
|
// "<if test='markStatus == 1'> " +
|
|
|
|
"AND m.report_score IS NOT NULL " +
|
|
|
|
// "AND m.report_score IS NOT NULL " +
|
|
|
|
"</if> " +
|
|
|
|
// "</if> " +
|
|
|
|
"</if> " +
|
|
|
|
// "</if> " +
|
|
|
|
"<if test='keyword != null and keyword.trim() != \"\"'> " +
|
|
|
|
// "<if test='keyword != null and keyword.trim() != \"\"'> " +
|
|
|
|
"AND (m.name LIKE CONCAT('%', #{keyword}, '%') OR m.student_number LIKE CONCAT('%', #{keyword}, '%')) " +
|
|
|
|
// "AND (m.name LIKE CONCAT('%', #{keyword}, '%') OR m.student_number LIKE CONCAT('%', #{keyword}, '%')) " +
|
|
|
|
"</if>" +
|
|
|
|
// "</if>" +
|
|
|
|
" order by stu_rank " +
|
|
|
|
// " order by stu_rank " +
|
|
|
|
"</script>")
|
|
|
|
// "</script>")
|
|
|
|
@Results(id = "memberVO", value = {
|
|
|
|
// @Results(id = "memberVO", value = {
|
|
|
|
@Result(column = "member_id", property = "memberId", jdbcType = JdbcType.VARCHAR, id = true),
|
|
|
|
// @Result(column = "member_id", property = "memberId", jdbcType = JdbcType.VARCHAR, id = true),
|
|
|
|
@Result(column = "training_id", property = "trainingId", jdbcType = JdbcType.VARCHAR),
|
|
|
|
// @Result(column = "training_id", property = "trainingId", jdbcType = JdbcType.VARCHAR),
|
|
|
|
@Result(column = "name", property = "name", jdbcType = JdbcType.VARCHAR),
|
|
|
|
// @Result(column = "name", property = "name", jdbcType = JdbcType.VARCHAR),
|
|
|
|
@Result(column = "student_number",property = "studentNumber", jdbcType = JdbcType.VARCHAR),
|
|
|
|
// @Result(column = "student_number",property = "studentNumber", jdbcType = JdbcType.VARCHAR),
|
|
|
|
@Result(column = "class_grade",property = "classGrade", jdbcType = JdbcType.VARCHAR),
|
|
|
|
// @Result(column = "class_grade",property = "classGrade", jdbcType = JdbcType.VARCHAR),
|
|
|
|
@Result(column = "stu_rank",property = "stuRank", jdbcType = JdbcType.INTEGER),
|
|
|
|
// @Result(column = "stu_rank",property = "stuRank", jdbcType = JdbcType.INTEGER),
|
|
|
|
@Result(column = "cumulative_profit_loss",property = "cumulativeProfitLoss", jdbcType = JdbcType.DECIMAL),
|
|
|
|
// @Result(column = "cumulative_profit_loss",property = "cumulativeProfitLoss", jdbcType = JdbcType.DECIMAL),
|
|
|
|
@Result(column = "report_score",property = "reportScore", jdbcType = JdbcType.DECIMAL),
|
|
|
|
// @Result(column = "report_score",property = "reportScore", jdbcType = JdbcType.DECIMAL),
|
|
|
|
@Result(column = "yield",property = "yield", jdbcType = JdbcType.DECIMAL),
|
|
|
|
// @Result(column = "yield",property = "yield", jdbcType = JdbcType.DECIMAL),
|
|
|
|
@Result(column = "training_name",property = "trainingName", jdbcType = JdbcType.VARCHAR),
|
|
|
|
// @Result(column = "training_name",property = "trainingName", jdbcType = JdbcType.VARCHAR),
|
|
|
|
})
|
|
|
|
// @Result(column = "training_status",property = "trainingStatus", jdbcType = JdbcType.VARCHAR),
|
|
|
|
|
|
|
|
// })
|
|
|
|
List<MemberVO> pagedListMembers(@Param("className") String className,
|
|
|
|
List<MemberVO> pagedListMembers(@Param("className") String className,
|
|
|
|
@Param("trainingName") String trainingName,
|
|
|
|
@Param("trainingName") String trainingName,
|
|
|
|
@Param("markStatus") Integer markStatus,
|
|
|
|
@Param("markStatus") Integer markStatus,
|
|
|
|