yangys
2024-11-13 04d53749b21921c9bceebe120d170c2ee6e533af
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?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.qianwen.mdc.mapper.SectionMapper">
  <resultMap id="BaseResultMap" type="com.qianwen.mdc.domain.Section">
    <id column="id" jdbcType="INTEGER" property="id" />
    <result column="name" jdbcType="VARCHAR" property="name" />
    <result column="workshop_id" jdbcType="INTEGER" property="workshopId" />
  </resultMap>
  
  
  <select id="queryByWorkshopId" resultMap="BaseResultMap">
        select id,name,workshop_id from section where workshop_id=#{workshopId}
        order by id
    </select>
</mapper>