|
@@ -48,6 +48,7 @@
|
|
|
<sql id="Base_Column_List">
|
|
|
id, name, phone, address, sys_id, lng, lat, am_time, pm_time, brief_introduction_pic, brief_introduction, class_advantages, indat, head_introduction
|
|
|
</sql>
|
|
|
+ <!--培训机构账号登录后看到的详情-->
|
|
|
<select id="selectDetail" resultMap="BaseResultMapVO">
|
|
|
select
|
|
|
ii.id, ii.name, phone, ii.address, ii.sys_id, ii.lng, ii.lat, ii.am_time, ii.pm_time, ii.brief_introduction_pic,
|
|
@@ -61,4 +62,18 @@
|
|
|
where
|
|
|
ii.sys_id = #{id}
|
|
|
</select>
|
|
|
+ <!--培训机构根据id看到的详情-->
|
|
|
+ <select id="selectDetailById" resultMap="BaseResultMapVO">
|
|
|
+ select
|
|
|
+ ii.id, ii.name, phone, ii.address, ii.sys_id, ii.lng, ii.lat, ii.am_time, ii.pm_time, ii.brief_introduction_pic,
|
|
|
+ ii.brief_introduction, ii.class_advantages, ii.indat, ii.head_introduction,ip.id pid,ip.information_id,ip.indate,ip.pic_url
|
|
|
+ from
|
|
|
+ institutional_information ii
|
|
|
+ left join
|
|
|
+ institutional_pic ip
|
|
|
+ on
|
|
|
+ ii.id = ip.information_id
|
|
|
+ where
|
|
|
+ ii.id = #{id}
|
|
|
+ </select>
|
|
|
</mapper>
|