<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.newfiber.api.pc.dao.MeetTaskMapper"> <resultMap id="BaseResultMap" type="com.newfiber.api.pc.model.meet.MeetTask"> <id column="id" jdbcType="BIGINT" property="id" /> <result column="name" jdbcType="VARCHAR" property="name" /> <result column="change_time" jdbcType="TIMESTAMP" property="changeTime" /> <result column="day_user_ids" jdbcType="VARCHAR" property="dayUserIds" /> <result column="night_user_ids" jdbcType="VARCHAR" property="nighUserIds" /> <result column="week" jdbcType="VARCHAR" property="week" /> <result column="day_start_time" jdbcType="TIMESTAMP" property="dayStartTime" /> <result column="day_end_time" jdbcType="TIMESTAMP" property="dayEndTime" /> <result column="start_time" jdbcType="TIMESTAMP" property="startTime" /> <result column="end_time" jdbcType="TIMESTAMP" property="endTime" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> </resultMap> <sql id="Base_Column_List"> id, `name`, change_time, day_user_ids,night_user_ids, week, day_start_time, day_end_time, start_time, end_time, create_time, update_time </sql> <select id="selectByName" resultMap="BaseResultMap"> select <include refid="Base_Column_List"/> from meet_task where name = #{taskName} </select> </mapper>