<?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.yiboshi.science.dao.ComExpertGroupMembersDAO"> <sql id="allColumns"> t.id as id, t.expert_id as expertId, t.spec_id as specId, t.created as created, t.updated as updated </sql> <select id="getExpertIdListByGroupId" parameterType="java.lang.String" resultType="com.yiboshi.science.entity.SelectListItem"> SELECT a.expert_id as `key`,c.person_name title,false disabled,'' description FROM com_expert_group_members a LEFT JOIN com_expert b on a.expert_id=b.id LEFT JOIN com_person c ON b.person_id = c.id where a.group_id=#{groupId} order by a.created asc </select> </mapper>