<?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.panzhihua.service_grid.dao.ComActEasyPhotoTypeRelationMapper">
|
|
<resultMap id="baseResult" type="com.panzhihua.service_grid.model.dos.ComActEasyPhotoTypeRelationDO">
|
<result property="id" column="id"/>
|
<result property="easyId" column="easy_id"/>
|
<result property="easyTypeId" column="easy_type_id"/>
|
<result property="createAt" column="create_at"/>
|
</resultMap>
|
|
<sql id="columns">
|
<![CDATA[
|
id,easy_id,easy_type_id
|
]]>
|
</sql>
|
|
<select id="getEasyPhotoTypeRelationByEasyId" resultType="String">
|
SELECT
|
caept.`name`
|
FROM
|
com_act_easy_photo_type_relation AS caeptr
|
LEFT JOIN com_act_easy_photo_type AS caept ON caept.id = caeptr.easy_type_id
|
<where>
|
<if test="easyId!=null">
|
caeptr.easy_id = #{easyId}
|
</if>
|
</where>
|
ORDER BY caeptr.create_at desc
|
</select>
|
|
<select id="getEasyPhotoClassifyName" resultType="string">
|
select `name` from com_act_easy_photo_classify where id = #{classifyId}
|
</select>
|
|
|
</mapper>
|